This repository provides an open MATSim transport model for Mexico City, provided by the Transport Systems Planning and Transport Telematics group of Technische Universität Berlin.
This scenario contains a 1pct sample of Mexico City (CDMX) and its surrounding metropolitan area (ZMVM); road capacities are reduced accordingly. The scenario is calibrated taking into consideration the traffic counts and modal split for Mexico City.
The MATSim program code in this repository is distributed under the terms of the GNU Affero General Public License v3.0. The MATSim program code are files that reside in the src
directory hierarchy and typically end with *.java
, *.py
or *.R
.
The MATSim input files, output files, analysis data and visualizations are licensed under a Creative Commons Attribution 4.0 International 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 input
or 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
.
Other data files, in particular in original-input-data
or https://svn.vsp.tu-berlin.de/repos/public-svn/
, have their own individual licenses that need to be individually clarified with the copyright holders.
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/mx/mexico-city/ .
The Mexico City scenario has a command line interface providing the following options:
It can be used by using either of these methods:
... using an IDE, e.g. Eclipse, IntelliJ - Alternative 1: use cloned/downloaded matsim-Mexico City repository
(Requires either cloning or downloading the repository.)
- Set up the project in your IDE.
- Make sure the project is configured as maven project.
- Run the JAVA class
src/main/java/org/matsim/run/RunMexicoCityScenario.java
. - "Open" the output directory. You can drag files into VIA as was already done above.
- Edit the config file or adjust the run class. Re-run MATSim.
(Requires either cloning or downloading the repository and java)
- Open the cmd and go to your project directory
- Build the scenario using
mvnw package
- There should be a file directly in the
matsim-mexico-city
directory with name approximately asmatsim-mexico-city-1.0.jar
. - Run this file from the command line using
java -jar matsim-mexico-city-1.0.jar --help
to see all possible options.- For example, one can disable lanes or run the 10pct scenario using the available options
- Start this scenario using the default config by running
java -jar matsim-mexico-city-1.0.jar
- "Open" the output directory. You can drag files into VIA as was already done above.
Internal documentation can be found here: https://docs.google.com/document/d/1MQHB30u0zm8IiBhKM3qcC0V67Tk_xiXxwGbFUGMQ2g0/edit