Skip to content

Commit

Permalink
Update macrOutput file (#14303)
Browse files Browse the repository at this point in the history
* 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
Amirhoseinkr73 committed Feb 19, 2024
1 parent 6906c1e commit 737f97c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/visualization/macrOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later

# @file macrOutput.py
# @author Amirhosein Karbasi
# @author Amir hossein Karbasi
# @author Mirko Barthauer
# @date 2021-04-20

Expand Down

0 comments on commit 737f97c

Please sign in to comment.