Code Monkey home page Code Monkey logo

Comments (7)

Janekdererste avatar Janekdererste commented on September 23, 2024

We have an example, where a population is created from commuter data.

https://github.com/matsim-org/matsim-code-examples/tree/15.x/src/main/java/org/matsim/codeexamples/population/demandGenerationFromShapefile

from matsim-code-examples.

cnabu avatar cnabu commented on September 23, 2024

Thank you for sharing this. I want to create all the aforementioned xml files with the help of NTS Travel Survey data (link below). Is it possible to do this by following the procedure given in the example you shared in your post?

https://beta.ukdataservice.ac.uk/datacatalogue/studies/study?id=5340

from matsim-code-examples.

Janekdererste avatar Janekdererste commented on September 23, 2024

The example above only creates a population file. "Plans" and "population" file reference the same thing. Those terms are used interchangeably. I think "population" conforms to the most recent nomenclature.

What exactly are you planning on doing with the vehicles file? The vehicles file contains two types of information:

  1. Vehicle types: The different vehicle types used in your simulation. Types contain the specification of a vehicle such as max velocity, length, width, etc. This could be something like "car" or "bicycle". Or, if your model requires this, you could split the specification for individual modes into more detailed categories like "car_large", "car_medium", and so forth.
  2. Vehicles: This is a very simple container with a vehicleId and a vehicleTypeId. Usually, we don't include individual vehicles into the file, as per default MATSim will generate vehicles of each network mode for each person before the simulation starts. However, you can specify vehicles in your vehicle file and assign vehicles to persons manually. Most of the time this level of control is not necessary, but it depends on what you are trying to model

In case you only need vehicle types, you can easily create this file by hand, using any vehicles file in our public repositories as a starting point. For example this one

from matsim-code-examples.

cnabu avatar cnabu commented on September 23, 2024

Thank you for your explanation. I want to figure out emissions in my simulation so I believe I need vehicleTypes.xml. Is there a good example that you can share with me for that?

from matsim-code-examples.

Janekdererste avatar Janekdererste commented on September 23, 2024

The Open-Berlin-Scenario contains emission calculations. The simple use case is in this file. The folder contains more complicated setups.

Please note, that you need your own emission factors. Unfortunately, we can't provide these factors, as one needs to buy a license for them.

from matsim-code-examples.

cnabu avatar cnabu commented on September 23, 2024

from matsim-code-examples.

Janekdererste avatar Janekdererste commented on September 23, 2024

I have no idea. You can check here https://www.hbefa.net/en/software#licensing

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.