Skip to content

flschnepf/matsim-berlin

 
 

Repository files navigation

Build Status license JDK

The MATSim Open Berlin Scenario

Berlin MATSim network and agents)

About this project

This repository provides an open MATSim transport model for Berlin, provided by the Transport Systems Planning and Transport Telematics group of Technische Universität Berlin. Please reference/cite the scenario based on this paper.

Currently, there are multiple versions of the MATSim Open Berlin model:

10pct scenario (input/v6.1)

This scenario contains both 10pct and 1pct sample of the Greater Berlin population; road capacities are accordingly reduced. The scenario is calibrated taking into consideration the traffic counts, modal split and mode-specific trip distance distributions.

Licenses

The MATSim program code in this repository is distributed under the terms of the GNU General Public License as published by the Free Software Foundation (version 2). The MATSim program code are files that reside in the src directory hierarchy and typically end with *.java.

The MATSim input files, output files, analysis data and visualizations are licensed under a Creative Commons Attribution 4.0 International License Creative Commons License.


MATSim input files are those that are used as input to run MATSim. They often, but not always, have a header pointing to matsim.org. They typically reside in the scenarios directory hierarchy. MATSim output files, analysis data, and visualizations are files generated by MATSim runs, or by postprocessing. They typically reside in a directory hierarchy starting with output.

Note

Handling of large files within git is not without problems (git lfs files are not included in the zip download; we have to pay; ...). In consequence, large files, both on the input and on the output side, reside at https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/berlin .


Simple things (without installing/running MATSim)

Use SimWrapper dashboards

  1. Open SimWrapper at https://simwrapper.github.io/site/ .
  2. Select Explore Data Sources -> VSP Public-SVN .
  3. Navigate to de -> berlin -> berlin-v6.1 (https://simwrapper.github.io/site/public/de/berlin/berlin-v6.1).
  4. Enjoy the dashboards and visualizations.

Run VIA on output files

  1. Get VIA from https://www.simunto.com/via/. (There is a free license for a small number of agents; that will probably work but only display a small number of vehicles/agents.)
  2. Go to https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/berlin/ .
  3. Decide for a scenario that you find interesting (e.g. berlin-v6.1) and go into that directory.
  4. Inside there, look for an output-* directory that you find interesting and go into that directory.
  5. Download *.output_network.xml.gz and *.output_events.xml.gz. Best make sure that they do not uncompress, e.g. by "Download linked file as ...".
  6. Get these files into VIA. This can be achieved in various ways; one is to open VIA and then drag the files from a file browser into VIA.
  7. Run VIA and enjoy.

Downloading the repository - Alternative 1: Download ZIP

  1. Click on Clone or download and then on Download ZIP.
  2. Unzip the repository.
  3. Go to "Run the MATSim Berlin scenario" below.

Downloading the repository - Alternative 2: Clone the repository

Initial stuff (needs to be done once)

  1. Install git for the command line.
  2. Type git clone https://github.com/matsim-scenarios/matsim-berlin.git in the command line.

(Or use your IDE, e.g. Eclipse, IntelliJ, to clone the repository.)

This will result in a new matsim-berlin directory. Memorize where you have put it. You can move it, as a whole, to some other place.

Update your local clone of the repository.

  1. Go into the matsim-berlin directory.
  2. Type git pull

(Or use your IDE, e.g. Eclipse, IntelliJ, to update the repository.)

This will update your repository to the newest version.


Run the MATSim Berlin scenario ...

(Requires either cloning or downloading the repository.)

... using a runnable jar file

  1. Depending on the version of matsim-berlin you have selected, you might have to create the jar file yourself.

    1. You can build an executable jar-file by executing one of the following commands in the top directory. This will download all necessary dependencies (it might take a while the first time it is run) and dump the jar into the top directory.
      1. ./mvnw clean package -DskipTests=true
      2. or on Windows: mvnw.cmd clean package -DskipTests=true
  2. Double-click on that .jar file (in a file system browser). Alternatively, try opening it with the following command:java -jar [FILENAME].jar

  3. A simple GUI should open.

  4. In the GUI, click on the "Choose" button for configuration file. Navigate to one of the scenario directories and load one of the configuration files.

  5. Increase memory in the GUI.

  6. Press the "Start MATSim" button. This should run MATSim. Note that MATSim accepts URLs as filenames in its config, so while the config files are part of the git repo, running them will pull additional material from our server.

  7. "Open" the output directory. You can drag files into VIA as was already done above.

  8. "Edit..." (in the GUI) the config file. Re-run MATSim.

... using an IDE, e.g. Eclipse, IntelliJ - Alternative 1: use cloned/downloaded matsim-berlin repository

  1. Set up the project in your IDE.
  2. Make sure the project is configured as maven project.
  3. Run the JAVA class src/main/java/org/matsim/run/RunOpenBerlinScenario.java or src/main/java/org/matsim/gui/RunOpenBerlinScenarioGUI.java.
  4. "Open" the output directory. You can drag files into VIA as was already done above.
  5. Edit the config file or adjust the run class. Re-run MATSim.

More information

For more information about MATSim, see here: https://www.matsim.org/

Internal documentation

Internal documentation can be found here: https://docs.google.com/document/d/133CuXaMuWL0NcstyFHodk4y7J5yFLy9nrLtbBVpNWzM/edit?usp=drive_link

About

The MATSim Open Berlin Scenario

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 88.6%
  • Python 9.5%
  • Other 1.9%