/DB-Sim

A data drvien and queue-based simulation tool for traffic

Primary LanguageC++GNU General Public License v3.0GPL-3.0

	  	  _____  ____        _____ _            
	  	 |  __ \|  _ \      / ____(_)           
	  	 | |  | | |_) |____| (___  _ _ __ ___   
	  	 | |  | |  _ <______\___ \| | '_ ` _ \  
	  	 | |__| | |_) |     ____) | | | | | | | 
	  	 |_____/|____/     |_____/|_|_| |_| |_| 

DB-Sim

A data driven and queue-based simulation tool for ETE

Goals

calculate evacuation time faster and more accurately

Methods

  • build basic iterator model[db-sim Framework]
  • build ml model
  • data driven model integration
  • Experiment

TODOLISTS

Framework

  • parse xml from config
  • boost library support
  • logging support
  • basic iterator develop
  • xgboost,randomforest c++ support
  • refacting db-sim manage
  • refacting config manage

Model

  • poolnum -> buffernum
  • buffernum -> outflow
  • sample for every link and node
  • add pool and buffer sample
  • train model for each node
  • import ml model(trained by python and predict by c++)

Plans

V0.1.3

  • add param configure for better tune.
  • add super-dest-point process

V0.1.4

  • add [poolnum -> buffernum] Model
  • finished basic iteration for simulation.

V0.1.5

  • add 2out->1in intersection analyais(discard)
  • add rotary island intersection analysis(discard)

V0.1.6

  • add long path analysis
  • add circle module
  • precise link desc with buffersize
  • update vehicle generator

V0.1.7

  • road condition display

To Be Continue~

Usage

Settings

  • config privoid traffic network and evacuation demand with xml.
  • src do simulation
    • core core code for simulation
    • utils some userdefined or 3rd necessary tools ,example parse xml tools
  • test some test case for this project
  • data train and test data
dbsim [options] [ceil|test|gawron|fete] :
  -h [ --help ]           show help
  -c [ --config ] arg     user defined config file
  -s [ --sample ] arg     sample for node and link
  -S [ --simulation ] arg simulation for fast ete
  -t [ --test ]           Test each model

build

cd ${PROJECT_DIR}
mkdir build
cd build
cmake ..
make

Result

link 2571 and 2581

The DB-Sim method is closed with origin mathod ,but run much faster.

result

Reference

  • Papers To be add.