Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MacrOutput MacrOutput This code which is called MacrOutput describes the relationship between density, flow, and speed based on sumo Edge-based output. Edge-base output includes some information about density, speed, travel time and etc. to extract fundamental diagrams based on Edge-based data, mean density, mean speed, and mean flow should be calculated. To calculate the mean of every component, data must be aggregated for all segments. In SUMO there is not any module to aggregate data and show fundamental diagrams. Also, aggregating data with some software like Excel is time-consuming. Therefore macrOutput is developed to cover this gap. MacrOutput aggregate data and show macroscopic fundamental diagram (density vs flow, density vs speed, speed vs flow) based on simulation data. Also, MacrOutput demonstrates fundamental diagrams based on both density and lane density. Moreover, MacrOutput generates two output file which shows mean density, mean speed, mean flow results. The calculation process and relationships are taken from [1]. To use this feature execute the following steps: 1. Put MacrOutput.py in the simulation folder. 2. Run cmd 3. Run this code (MacrOutput.py -i <input file (for example : OUTPUT_FILE.xml)>) Reference 1. Qiong Lu, Tamás Tettamanti, Dániel Hörcher & István Varga (2019): The impact of autonomous vehicles on urban traffic network capacity: an experimental analysis by microscopic traffic simulation, Transportation Letters, DOI: 10.1080/19427867.2019.1662561. Required packages pandas_read_xml pandas numpy collections matplotlib.pyplot * Revert "MacrOutput" * Modify macrOutput file * Revert date to its creation date
- Loading branch information