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


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.1.tar.gz (2.2 MB view hashes)

Uploaded Source

Built Distribution

dyntapy-0.1.1-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