Code Monkey home page Code Monkey logo

Comments (5)

golanbendor avatar golanbendor commented on May 28, 2024

If I am not mistaken, currently the Qsim is the default mobility simulator in MATSim.
The JDEQSim output config parameters are printed by default (those parameters are not used) to the output config file (even if JDEQSim is not specified as the current mobsim)

Check out the MATSim book which I think covers this (page 6):
image

You can always use the controller to set the mobsim to use Qsim:
config.controler().setMobsim("qsim");

from matsim-code-examples.

gregmacfarlane avatar gregmacfarlane commented on May 28, 2024

I'm aware of QSIM being the default mobsim, but I am curious to know when and in what cases it is overridden, and how can I know when that is happening, if the JDEQSIM is still printing to the config, for instance.

from matsim-code-examples.

mrieser avatar mrieser commented on May 28, 2024

JDEQSim is an alternative implementation of a mobility simulation for MATSim, but it does not provide support for all the features. Public Transport and Traffic lights for example are only supported when QSim is used, not in JDEQSim.

In the configuration output, in the controler-module, there should be a parameter "mobsim" which specifies which mobility simulation is used. Make sure it is set to "qsim" to be sure that QSim is used.

from matsim-code-examples.

gregmacfarlane avatar gregmacfarlane commented on May 28, 2024

Okay, that's good to know. Is there a way to turn off printing modules to the config when they are not used?

from matsim-code-examples.

mrieser avatar mrieser commented on May 28, 2024

Is there a way to turn off printing modules

None that I'm aware of.

If you want to exclude a single module, you could try something like this:

Config config = ConfigUtils.loadConfig("path/to/my/config.xml");
config.removeModule(JDEQSimConfigGroup.NAME);

But that's rather cumbersome.

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.