Macroscopic Static and Dynamic Traffic Assignment in Python
Project description
Dyntapy - Dynamic Traffic Assignment in Python
Provided functionalities:
- Network generation from OSM using OSMnx complying with GMNS attribute names.
- Static Assignments (deterministic user equilibrium: FW, DialB, MSA; stochastic, uncongested: Dial's Algorithm)
- Dynamic User Equilibrium using the iterative link transmission model [^1]
- Visualization of real and toy networks with Static and Dynamic attributes using Bokeh, including bidirectional flow visualization
[^1]: convergence according to the provided excess cost criteria cannot be guaranteed for a reasonable amount of iterations
There are demo tutorials available that you can run in Binder.
How to install
If you want this to be part of a particular conda environment, activate it first.
conda activate your-environment
from PyPi
dyntapy is available from PyPi
python -m pip install dyntapy
from this repository
Download the repository we now can install the package with
python -m pip install -e path-to-folder
pip automatically pulls all the dependencies that are listed in the setup.py. Using -e makes the repo editable. If you make changes or add a functionality it will be available in a fresh session or if you reload the module. verify that importing works as expected, open the interpreter
python
and try
import dyntapy
voila!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.