Comments (7)
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.
I am using it on windows, and tried it with ; still didn't work
how do I specify main class?
from matsim-code-examples.
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.
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.
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.
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)
from matsim-code-examples.
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)
- Effect of car ownership , having drivers license or car availability
- Use case of income attribute HOT 2
- Visualize the output files in MATSim 15.0 HOT 1
- How to get the real-time vehicle's location data๏ผ
- MATSim over AWS/Azure HOT 2
- VolumesAnalyzer for count the vehicles leave links HOT 1
- plans file HOT 1
- Issue with the GUI HOT 1
- switch from one drt mode to another one during the same trip HOT 4
- Error while running code in MATSim HOT 4
- Trouble with the simulation
- Help with Obtaining Real Origin-Destination Data HOT 4
- Strange long walking behaviour in multimodal scenario! HOT 8
- MATSIM Beginner user HOT 3
- Snapping distance /tolerance to edge from origin/destination location HOT 11
- Route through resticted/private roads HOT 3
- Problem with Car availability attribute
- Score function calculation HOT 3
- The steps to apply DVRP extensions
- Pedestrian modeling and simulation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matsim-code-examples.