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 below $10^{-2}
$ 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
Download the provided environment.yml. We assume you have conda installed. navigate to the folder containing the environment.yml or pass on the full path.
conda env create environment.yml
This will sort out dyntapy's dependencies using conda and install dyntapy itself via pip.
from this repository
Download the repository, follow the steps above to get all of dyntapy's dependencies. we now can install the package with
python -m pip install -e path-to-folder
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.