Skip to content

Open-source Python package designed for integration of deep learning (first DL) and traffic simulation, by extending original C++ based structure of DTALite (second DL)

License

Notifications You must be signed in to change notification settings

asu-trans-ai-lab/DLSim-MRM

Repository files navigation

alt text

"Dynamic Traffic Simulation Package with Multi-Resolution Modelling" (DLSim-MRM) is an open source, high-fidelity multi-resolution (i.e., macroscopic, mesoscopic, and microscopic simulation) traffic simulation package which users jointly apply varying temporal and spatial resolutions to solve a single question or set of questions that mirror the physical world with complex intersections. Users can perform traffic assignments and feed results from one model to another while maintaining consistency between the model assumptions. DLSim-MRM typically takes the following steps for simulation based on General Modeling Network Specification (GMNS) format, as shown in Figure 1:

  1. Use demand forecasting models to determine overall trip patterns in a regional network, including trip generation, trip distribution, mode split, and initial O-D matrices.
  2. Use mesoscopic simulation-based dynamic traffic assignment (DTA) to realistically assign traffic to the network by accounting for strategic traveler behavior.
  3. Use microscopic analysis of traffic at the corridor level or subnetwork level.

alt text

Figure 1: Different levels of sample road networks for Phoenix, AZ.

DLSim-MRM uses 3 open-source packages; OSM2GMNS, Path4GMNS and Vol2Timing with the additional developments along the multi-resolution modelling and dyanmic traffic simulation.

-OSM2GMNS can help users easily convert networks from OpenStreetMap to .csv files with standard GMNS format for visualization, traffic simulation and planning purpose.

-Path4GMNS is an open-source AMS library for efficiently macroscopic and mesoscopic traffic assignment based on General Modeling Network Specification (GMNS) format.

-Vol2Timing is a python tool aims to offer a light-weight computational engine to generate optimize signal control timing data, and analyze the effectiveness of signal control strategies.

DLSim-MRM has 4 main steps in the simulation process from the beginning as shown in Fig. 2.

  1. After generating GMNS structured node and link files for all simulation levels, first step is reading nodes, links, lanes and agents (auto, walk, bike, bus, truck, cav or ev).

  2. In the second step, DLSim-MRM reads the agents demand for desired OD pairs, demand period and cumulative level as presented in input file.

  3. Checking OD connectivity and accesibility in the microscopic level, column generation and column-pool based flow updating for traffic assingmnet, and finally OD estimation are the key processes for the traffic assignment in 3rd step.

  4. DLSim-MRM simulate the agents behaviour along the multi-resolution network by using queue-VDF, parallel processing, re-routing based memeory management, trajectory generation focusing internal consistency of multi-resolution road network.

alt text

Figure 2: Key processes of DLSim-MRM.

Remarks:

Developers:

Dr. Cafer Avci

Jiawei (Jay) LU

Dr. Peiheng Li

Dr. Xuesong (Simon) Zhou

Introductory Videos & Slides

Recent Advances by Dr. Cafer Avci

Tutorials in *ASU Transportation AI Lab by Dr. Xuesong (Simon) Zhou

Mini-lessson by Dr. Cafer Avci and Dr. Xuesong (Simon) Zhou : What is the best way to learn dynamic traffic simulation and network assignment for a beginner? Do you want to integrate a powerful traffic simulator in your deep learning framework? We would like to offer a collaborative learning experience through 500 lines of python codes and real-life data sets. This is part of our mini-lessons through teaching dialog.

In-Depth Video Discussions

Slides introducing DLSIM

Theory

DLSim-MRM-Theory

In-Depth Learning from References

Data flow chart

User Guide

Tutorials

DDI Simulation

I-10 Corridor Simulation

3 Corridor Simulation

Vehicle Routing

Levels of DLSIM:

Levels of modeling elements:

Category Element GMNS File Names Learning Goals
A Network node.csv, link.csv Free-flow speed, capacity, multiresolution network
B Demand input_path.csv Zone structure, OD demand matrix mapping to road network
C Signal Timing in link.csv Micro
D Scenario setting.csv
E1 Link output link_performance.csv Macro
E2 Route assignment output Route_assignment.csv Macro
E3 Agent output agent.csv Agent
E4 Trajectory output trajectory.csv, trace.csv Micro

A. Network Generation

Network basics

Network generation with osm2gmns

Modification of networks

Visualization of networks with NeXTA

B. Demand Generation

Trip generation

OD demand estimation

C. Traffic Signal Modelling

Traffic-Signal-Timing-Modeling

D. Scenario Management

Settings of DLSIM

E. Output

E1. Link Output

E2. Route Assignment Output

E3. Agent Output

E4. Trajectory Output

Appendices

FAQ

ChangeLog

Streamlined-Workflow

License

License

About

Open-source Python package designed for integration of deep learning (first DL) and traffic simulation, by extending original C++ based structure of DTALite (second DL)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •