An open-source, agent-based simulator for multimodal dynamic traffic assignment: car, bicycle, pedestrian and public-transport trips, with park-and-ride and bike-and-ride, on one supernetwork. A Python interface on a Rust core.
Every traveller is an individual agent. Mode, itinerary and route are chosen by discrete choice models (a nested logit, a path-size logit over enumerated route choice sets, or your own model in Python); transit journeys are planned on GTFS timetables with RAPTOR; cars and buses are loaded one vehicle at a time, event by event in continuous time, under the link conditions of the link transmission model (Yperman, 2007; Raadsen, Bliemer and Bell, 2016); choice and loading are iterated by the method of successive averages towards a stochastic dynamic user equilibrium, with a verdict on convergence. Networks come from OpenStreetMap, GMNS or your own tables; demand from trip tables or origin–destination matrices, with an optional persons table for traveller attributes; results are Parquet tables, indicators and figures. Runs are deterministic and fingerprinted, and every parameter is named, documented and overridable. Built for research on multimodal urban mobility and the infrastructure that carries it.
Status: 0.1, an alpha for testing by students and colleagues. The tests are not complete and the interface may still change before 1.0 (each release says what changed). Feel free to use it, and please report issues: what goes wrong, and what is unclear.
Start here
-
Read the first tutorial,
notebooks/00_getting_started.ipynb, here on GitHub, before installing anything: it lists the ten tutorials and the order to read them in. -
Install and open the tutorials (Python 3.11 or newer). Copy the block for your system, in order. One install is all there is:
openmobisim[all]brings everything the tutorials use (JupyterLab, matplotlib, pandas, polars, pyarrow); the last command copies the ten notebooks into./openmobisim-notebooksand opens the first in JupyterLab.conda (any system):
conda create -y -n openmobisim python=3.12 conda activate openmobisim pip install "openmobisim[all]" openmobisim notebooks
macOS or Linux (venv, in a terminal):
python3 -m venv openmobisim source openmobisim/bin/activate pip install "openmobisim[all]" openmobisim notebooks
Windows (venv, in the Command Prompt):
py -m venv openmobisim openmobisim\Scripts\activate pip install "openmobisim[all]" openmobisim notebooksopenmobisimalone says what else it can do; from Python, in any editor,openmobisim.notebooks()copies the tutorials and links the first.
What it does
- Every mode on one supernetwork. Road, bike and walk networks (also referred to as layers) from OpenStreetMap (or GMNS, or your own tables); public transport from GTFS; park-and-ride and bike-and-ride through parkings with capacity. Transfers happen at transfer locations (also referred to as hubs): stops and parkings.
- Bicycles are first-class. Bike assignment on the bike network, with separated tracks, painted lanes and mixed traffic told apart, both in route choice and in what mode choice sees.
- Dynamic network loading. The link transmission model (Yperman 2007) applied to individual vehicles, event by event in continuous time, as Raadsen, Bliemer and Bell (2016) do for flows: every car and bus enters and leaves every link at its exact moment, and there is no time step. A vertical queue (also referred to as a point queue: a bottleneck in Vickrey's 1969 sense at the end of every link) by default, or the full model with queues that take road space and spill back; buses ride the roads they share with cars.
- Choice. Route, mode chain (also referred to as itinerary) and mode choice by a logit model (or your own model in Python), seeing each alternative's times by part, its money, the network along it and the traveller; user classes (also referred to as traveller classes) with their own modes and preferences.
- Dynamic traffic assignment. Choice and network loading are repeated (the method of successive averages) until the pattern settles, with a verdict on convergence.
- Reproducible. The same inputs give the same results and the same run fingerprint; every parameter has a name and an uncalibrated default you can override; units are metric throughout.
Install
pip install openmobisim # the simulator alone (Python 3.11 or later; macOS, Linux, Windows)
pip install "openmobisim[viz]" # with matplotlib: the figures, without Jupyter
pip install "openmobisim[all]" # everything: JupyterLab, matplotlib, pandas, polars, pyarrow; the tutorial
# notebooks (openmobisim notebooks) and the starter cases, ready to explore
A first run
import openmobisim as ms
net = ms.examples.toy_network() # sixteen links, every number checkable by hand
o, d = net.node_lonlat("W"), net.node_lonlat("D1")
trips = [ms.Trip(f"t{i}", 0, *o, *d, 7 * 3600 + 4 * i, "driver") for i in range(450)]
run = ms.Scenario.from_parts(net, trips, classes={"driver": (True, False, False)}).run("first-run")
print(run.completion)
print(f"mean trip {run.mean_travel_time_s / 60:.1f} min, verdict: {run.convergence_verdict}")
Starter cases
Six cases to learn on, each a checked network with what runs on it: Delft, Amsterdam, Paris and Lyon (OpenStreetMap, their transit feeds, and a synthetic morning built from open data and the cities' travel surveys, congested like a real one), Sioux Falls and Nguyen–Dupuis (the benchmarks). They download once, checked against the checksums the package carries.
case = ms.examples.case("amsterdam")
run = case.scenario("base").run("amsterdam-base")
openmobisim cases # what is there
openmobisim run amsterdam # run one, and write its summary page and interactive map (each linked when written)
openmobisim check # run the default scenarios and compare with this version's reference results
The starter cases' demand is synthetic: for learning the tool and comparing methods, not for studying the cities. For a study, bring your own network, timetable and demand in the standard formats.
Learn more
- Documentation: openmobisim.github.io: the tutorials, guides to each task, how the models work, and the reference of every function, parameter, input and output file.
- Tutorials: ten notebooks in
notebooks/, from a first run to validation and applications; start with00_getting_started. - For AI agents:
AGENTS.md. - Contributing:
CONTRIBUTING.md. Issues are welcome; outside pull requests wait for a contributor agreement.
Cite
If you use openmobisim in work you publish, cite the version you used — GitHub's "Cite this repository" gives the
reference from CITATION.cff with its DOI ⟨Zenodo DOI at the release⟩ — and keep the run fingerprint
of every result you report. If you use the starter cases, cite their data too : Madadi, B. (2026). openmobisim starter cases: multimodal networks and synthetic demand for four European cities and two benchmark networks
(v1). Zenodo. https://doi.org/10.5281/zenodo.23472146.
Licence
Apache-2.0. See LICENSE. The starter cases' data keep their own licences (OpenStreetMap: ODbL; each
transit feed its operator's), listed with the cases.
Metadata
Release files for openmobisim 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openmobisim-0.1.0.tar.gz | 1.0 MB | With provenance | Details for openmobisim-0.1.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| openmobisim-0.1.0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for openmobisim-0.1.0-cp311-abi3-win_amd64.whl |
| openmobisim-0.1.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ x86-64 | Details for openmobisim-0.1.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| openmobisim-0.1.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ ARM64 | Details for openmobisim-0.1.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| openmobisim-0.1.0-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for openmobisim-0.1.0-cp311-abi3-macosx_11_0_arm64.whl |
| openmobisim-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details for openmobisim-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl |
Total release size: 23.6 MB
Release files / openmobisim-0.1.0.tar.gz
| Download URL | openmobisim-0.1.0.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
267d1d31c874e614abf1350b15ee1a2f8278e4f9a93c8f3505c6c5e82b26c01f
|
|
BLAKE2b-256 checksum How to use checksums |
74187f62d263c6b00f06cce1001e18dff50f24769c353a8d4f75fa8fd79ccd4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / openmobisim-0.1.0-cp311-abi3-win_amd64.whl
| Download URL | openmobisim-0.1.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9b754269a97978be4b7bcbf9aa0c327b72d33f2b639766ca9f7de33a3698468c
|
|
BLAKE2b-256 checksum How to use checksums |
d058819574d38b906240383cac7dbae9e41c38084e5e8002190ba4d8ff675e7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / openmobisim-0.1.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | openmobisim-0.1.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 4.7 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
18226b3240a0e2c8a3478dd6b244173ca9f9ecee3c6d0c6b413c4c94ddbdd31a
|
|
BLAKE2b-256 checksum How to use checksums |
cdafcba4995e9859e151c94bce7af9af7f0f23c87e921ae45f48cf96505b1c14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / openmobisim-0.1.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | openmobisim-0.1.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
64116ef063b6269f78835f4901ae360d67b6614da9f532da400aca6267c73522
|
|
BLAKE2b-256 checksum How to use checksums |
1e8441074e485a4c02e689d9e5cfde1d41ca9a931e92c77f8011c33174800eca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / openmobisim-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | openmobisim-0.1.0-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a7b97ed492f3844304412e1b2428a1cad264c659e80d4fc6ddce62b4687a3a8a
|
|
BLAKE2b-256 checksum How to use checksums |
9e2946d30ba91344581250b56785144bc8ca52e87de52c6257d8cc08f5a451aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / openmobisim-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | openmobisim-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
b01c5fcf7d4cd5bd25c4ce707d5714207d022c98ed013b93fdbe1633524ff381
|
|
BLAKE2b-256 checksum How to use checksums |
167aca13f33acb2e0dadffabeae3ec51ff58f1cae8d4593524451dbd1b395924
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logSecurity for openmobisim 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for openmobisim-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.