Coder Social home page Coder Social logo

Comments (7)

mrieser avatar mrieser commented on August 20, 2024

are you running it on Linux or Windows? If on windows, replace the : with ; For example:

java -Xmx500m -cp matsim-0.10.1.jar;dvrp-0.10.1/dvrp-0.10.1.jar org.matsim.contrib.dvrp

Also, I think that command is not complete, as it only specifies a package name in the end, but not a main class.

from matsim-code-examples.

Sharmeela16 avatar Sharmeela16 commented on August 20, 2024

I am using it on windows, and tried it with ; still didn't work
how do I specify main class?

from matsim-code-examples.

jfbischoff avatar jfbischoff commented on August 20, 2024

In general, we do not support the use of Contribs via the Command line anymore. It's error prune and support is hard to provide.
Please consider checking out https://github.com/matsim-org/matsim-code-examples or, if your specifically interested in DVRP / Taxi / DRT, https://github.com/matsim-org/matsim-maas , which contains some more guidance of using Dynamic Transport Modes in MATSim.

from matsim-code-examples.

Sharmeela16 avatar Sharmeela16 commented on August 20, 2024

yes i am interested in DRT, but i am unable to run dvrp jar file of matsim extension, I am using dvrp-0.10.1 version

from matsim-code-examples.

jfbischoff avatar jfbischoff commented on August 20, 2024

Please try to check out the matsim-maas repository using git and an IDE. This is your best bet to get going.

from matsim-code-examples.

Sharmeela16 avatar Sharmeela16 commented on August 20, 2024

I tried to run java eg mentioned above, I loaded matsim dvrp, drt jars into my java project i am getting some errors, let me know if I am missing some parameters.
Exception in thread "main" javax.validation.ConstraintViolationException: Errors in config: dvrp.mode: must not be null at org.matsim.contrib.util.BeanValidationConfigConsistencyChecker.checkConsistency(BeanValidationConfigConsistencyChecker.java:55) at org.matsim.contrib.dynagent.run.DynQSimConfigConsistencyChecker.checkConsistency(DynQSimConfigConsistencyChecker.java:34) at org.matsim.contrib.dvrp.run.DvrpConfigConsistencyChecker.checkConsistency(DvrpConfigConsistencyChecker.java:32) at org.matsim.contrib.drt.run.DrtConfigConsistencyChecker.checkConsistency(DrtConfigConsistencyChecker.java:35) at org.matsim.core.config.Config.checkConsistency(Config.java:227) at org.matsim.contrib.drt.run.DrtControlerCreator.adjustConfig(DrtControlerCreator.java:119) at org.matsim.contrib.drt.run.DrtControlerCreator.createControler(DrtControlerCreator.java:68) at com.sharmeela.drt.taxi.run(taxi.java:44) at com.sharmeela.drt.taxi.main(taxi.java:51)

config.txt

from matsim-code-examples.

jfbischoff avatar jfbischoff commented on August 20, 2024

You are mixing up versions here, it seems.
If you use the release version (by using the 0.10.1 jars), you need to use config file that work for 0.10.
You can find example files within the resource path of the DRT jar or here:
https://github.com/matsim-org/matsim/tree/0.10.x/contribs/drt/src/main/resources

The matsim-maas runs on the snapshot, where some config parameters have changed in the last weeks. To use these, check out the git project and use maven within your IDE.

from matsim-code-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.