A lightweight traffic assignment and simulation engine for networks encoded in GMNS
Project description
TAPLite
TAPLite is a lightweight traffic assignment and simulation engine for networks encoded in GMNS.
Quick Start
Installation
pip install taplite
Traffic Assignment
One-Time Call
import taplite as tap
tap.assignment()
Recursive Call
import taplite as tap
from multiprocessing import freeze_support
if __name__ == '__main__':
freeze_support()
while True:
tap.assignment()
Traffic Simulation
Note that assignment() must be invoked in the same code block prior to simulation().
import taplite as tap
tap.assignment()
tap.simulation()
Build TAPLite from Scratch
1. Build the C++ Shared Library
# from the root directory of TAPLite
cmake -S . -B build -DBUILD_EXE=OFF
cmake --build build
2. Build and Install the Python Package
# from the root directory of TAPLite
python -m pip install .
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.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
taplite-0.1.0-py3-none-any.whl
(394.6 kB
view details)
File details
Details for the file taplite-0.1.0-py3-none-any.whl.
File metadata
- Download URL: taplite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 394.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4d90c17ddce2160d1418665d13b5604c1761c96fa752aa28e08a7333f45144e
|
|
| MD5 |
cb300951dfdabed309edf8641010117a
|
|
| BLAKE2b-256 |
6222cbe46d7ca57739eea8feba60676071db52faec46089d47e836899536e046
|