Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dyntapy-0.1.0.tar.gz (2.2 MB view hashes)

Uploaded Source

Built Distribution

dyntapy-0.1.0-py3-none-any.whl (2.3 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page