matsim-scenario-template

MATSim Scenario Template

https://github.com/matsim-scenarios/matsim-scenario-template

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.4%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

MATSim Scenario Template

Basic Info
  • Host: GitHub
  • Owner: matsim-scenarios
  • License: agpl-3.0
  • Language: Java
  • Default Branch: main
  • Size: 139 KB
Statistics
  • Stars: 4
  • Watchers: 8
  • Forks: 1
  • Open Issues: 1
  • Releases: 0
Created about 3 years ago · Last pushed 10 months ago
Metadata Files
Readme License Citation

README.md

The MATSim Open Template Scenario

Build Status license JDK

This template was developed in 2023. We find it quite difficult to update because there are no regression tests. At VSP, we instead prefer to start from an existing more modern scenario. As of now (may'25), this is the matsim-lausitz scenario. So if you are at VSP, please do not start from this scenario-template, but talk with your collegues and/or to Kai Nagel. kai, gregorL, may'25

MATSim network and agents


When using this template make sure to adapt it as needed:

  • [ ] Rename Run-Class in src/main/java folder
  • [ ] Modify config in input
  • [ ] Update pom.xml
    • [ ] Name, description and version
    • [ ] Main class
  • [ ] Makefile
  • [ ] Update CITATION.cff (Authors and version)
  • [ ] Modify calibration.py in src/main/python
  • [ ] If you would like to chain jobs in SLURM, you can find the corresponding bash script for this functionality in src/main/sh
    • [ ] In this script, you can specify the number of chained jobs (max_nojob), which can be found at the top.
    • [ ] Then you'll have to define your job script. The current setup calls runCalib.sh, which in turn calls the calibrate.py script.
  • [ ] Update README.md (This file)
    • [ ] Change Name and URLs
    • [ ] Check whether you are using Senozon data and change it according to your license agreement.
    • [ ] Badges
    • [ ] Remove this TODO list when done

About this project

This repository provides an open MATSim transport model for [name], provided by the Transport Systems Planning and Transport Telematics group of Technische Universität Berlin.

This scenario contains a 25pct sample of [name] and its surrounding area; 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 Affero General Public License v3.0. The MATSim program code are files that reside in the src directory hierarchy and typically end with *.java.

The MATSim input population is licensed under the Creative Commons Attribution CC-BY-NC 3.0 DE License and was provided in its initial version by Senozon Deutschland GmbH.

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.

Other data files, in particular in original-input-data, have their own individual licenses that need to be individually clarified with the copyright holders.

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/leipzig .


Run the MATSim Template scenario

The [name] scenario has a command line interface providing the following options:

Scenario CLI

It can be used by using either of these methods:

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

(Requires either cloning or downloading the 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/RunTemplateScenario.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.
... using a runnable jar file

(Requires either cloning or downloading the repository and java)

  1. Open the cmd and go to your project directory
  2. Build the scenario using mvnw package
  3. There should be a file directly in the matsim-template directory with name approximately as matsim-template-1.0.jar.
  4. Run this file from the command line using java -jar matsim-template-1.0.jar --help to see all possible options.
    1. For example, one can disable lanes or run the 25pct scenario using the available options
  5. Start this scenario using the default config by running java -jar matsim-template-1.0.jar
  6. "Open" the output directory. You can drag files into VIA as was already done above.

Owner

  • Name: matsim-scenarios
  • Login: matsim-scenarios
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
title: MATSim Scenario Template (Adjust title)
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Christian
    family-names: Rakow
    email: rakow@vsp.tu-berlin.de
    affiliation: Technische Universität Berlin
    orcid: 'https://orcid.org/0000-0003-3760-2243'
  - given-names: Surname
    family-names: Name
    email: yourmail@somewhere.com

url: "https://github.com/matsim-scenarios/matsim-scenario-template"
date-released: 2023-01-01
year: 2023
version: 1.0
license: AGPL-3.0

GitHub Events

Total
  • Watch event: 1
  • Delete event: 2
  • Issue comment event: 2
  • Push event: 7
  • Pull request event: 5
  • Create event: 2
Last Year
  • Watch event: 1
  • Delete event: 2
  • Issue comment event: 2
  • Push event: 7
  • Pull request event: 5
  • Create event: 2

Dependencies

.github/workflows/build.yaml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
  • actions/upload-artifact v3 composite
.github/workflows/publish.yaml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
pom.xml maven
  • org.matsim.contrib:application 15.0-SNAPSHOT
  • org.matsim:matsim 15.0-SNAPSHOT
  • junit:junit test
  • org.assertj:assertj-core test
  • org.matsim:matsim 15.0-SNAPSHOT test