SlideShare a Scribd company logo
1 of 37
SUMO
SUMO
What is SUMO?
SUMO is an open source traffic simulation package
Was created by the German Aerospace Center (DLR)
The development of SUMO started back in 2001
You can use SUMO to :
- Build a Network and assign routes within a network
- Develop traffic light algorithm
- Simulate and analyze trɑfic within a network, given Origin-Destination (OD)
Matrix
- Etc.
Aimsun Live (Commercial),
TSIS-CORSIM, CORridor SIMulation (Commercial)
Paramics, PARAllel MICroscopic Simulation (Commercial),
PTV Vissim, (Commercial),
SimMobility, (by Singapore-MIT)
Synchro + SimTraffic, (Commercial)
MATSim, Multi-Agent Transport Simulation , (Open Source)
Transims, TRansportation ANalysis SIMulation System (NASA Open Source)
SUMO Simulation of Urban Mobility, (DLR, Open Source)
Overview of Transportation Simulation
Software
Preliminary
 Download and install
 SUMO: http://www.sumo.dlr.de/userdoc/Downloads.html
 Python: https://www.python.org/downloads/
 Python is necessary for some simulations
• In SUMO, road network can be created in three ways:
• Manually by creating our own node, edge, route,
connection files.
• Using netgenerate command.
• Importing road network from external sources such as
OSM, VISSIM, VISUM etc.
Part I:
Manual Node, Edge and Route assignment
Part II:
From OSM to Network +
Random Trips Simulation
Part III:
Origin-Destination to trip Simulation
Part I:
Manual Node, Edge
and Route assignment
(-250, 0)
(-500, 0)
(0, 0)
(-150, 200) (150, 200)
A road network consists of nodes
(junctions) and edges (i.e. roads that
connect various junctions with each
other).
N1
N2
N3
N4
N5
1) Node file creation (.nod.xml)
2) Edge file creation (.edg.xml)
3) Edge type file creation (.type.xml)
4) Network creation from the node, edge and type files
5) Route file (.rou.xml)
<nodes>
<node id=“n1" x = "-500" y="0" type=“priority”/>
<node id=“n2" x = "-250" y="0" type=“traffic_light”/>
<node id=“n3" x = "-150" y="200" type=“traffic_light”/>
<node id=“n4" x ="0" y="0"/>
<node id=“n5" x =“150" y=“200" />
</nodes>
(-250, 0)
(-500, 0)
(0, 0)
(-150, 200) (150, 200)
N1
N2
N3
N4
N5
File name: my_nod.nod.xml
1) node file (.nod.xml)
2) Edge file (.edg.xml) define the connect node together to form links.
Example:
<edges>
<edge from="n1" to="n2" id="1to2" type="3L45"/>
<edge from="n2" to="n3" id="2to3" type="2L15"/>
<edge from="n3" to="n4" id="3to4" type="3L30"/>
<edge from="n4" to="n5" id="out" type="3L30"/>
</edges>
Fine name: my_edge.edg
N1
N2
N3
N4
N5
3) Type file (.type.xml) include road priority, the number of lanes,
speed limit, type of vehicles allow, etc.
Example:
Fine name: my_type.type.xml
<types>
<type id=“3L45" priority="3" numLanes="3" speed="45"/>
<type id=“2L15" priority="3" numLanes="2" speed="15"/>
<type id=“3L30" priority="2" numLanes="3" speed="30"/>
</types>
netconvert --node-files my_nodes.nod.xml --
edge-files my_edge.edg.xml -t
my_type.type.xml -o my_net.net.xml
4) netconvert
my_nodes.nod.xml my_edge.edg.xml my_type.type.xml my_net.net.xml
+ + =
5) Route file (.rou.xml)
<routes>
<vType accel="1.0" decel="5.0" id="Car" length="2.0" maxSpeed="100.0" sigma="0.0" />
<vType accel="1.0" decel="5.0" id="Bus" length="12.0" maxSpeed="1.0" sigma="0.0" />
<route id="route0" edges="1to2 2to3"/>
<vehicle depart="10" id="veh0" route="route0" type="Bus" />
<route id="route1" edges="2to3 3to4"/>
<vehicle depart="10" id="veh1" route="route1" type="Car" />
<route id="route2" edges="3to4 out"/>
<vehicle depart="30" id="veh2" route="route2" type="Car" />
</routes>
Lastly, the Sumo Configuration file
(.sumocfg)
<configuration>
<input>
<net-file value="my_net.net.xml"/>
<route-files value="my_route.rou.xml"/>
</input>
<time>
<begin value="0"/>
<end value="2000"/>
</time>
</configuration>
File name: my_config_file
sumo -c my_config_file.sumocfg
Or
sumo-gui -c my_config_file.sumocfg
Part II:
From OSM to Network
+ Random Trips
Simulation
(-250, 0)
(-500, 0)
(0, 0)
(-150, 200) (150, 200)
N1
N2
N3
N4
N5
Previously, we manually built this network (nodes, edges), and
manually defined the route, the vehicle types and parameters.
But, what if we have a large set of network?
1) Search and Download Open Street Map (OSM)
2) Convert the Map into SUMO Network
netconvert --osm-files map.osm -o test.net.xml
3) Add trip and route to the network using build-in Python
scripts randomTrips.py
python PATHrandomTrips.py -n test.net.xml -r test.rou.xml -e 50 -l
py PATHrandomTrips.py -n test.net.xml -r test.rou.xml -e 50 -l
5) Setup the configuration file and run the Network
Lastly, the Sumo Configuration file
(.sumocfg)
<configuration>
<input>
<net-file value="my_net.net.xml"/>
<route-files value="my_route.rou.xml"/>
</input>
<time>
<begin value="0"/>
<end value="2000"/>
</time>
</configuration>
File name: my_config_file
"randomTrips.py" generates a set of random trips for a given network (option -n).
By default, it does so by choosing source and destination edge uniformly at random
distribution.
The resulting trips are by default stored in an XML file trips.trips.xml
The trips are distributed evenly in an interval defined by the beginning time –b
(default 0) and end time -e (default 3600) in seconds.
py PATHrandomTrips.py -n test.net.xml -r test.rou.xml -e 50 -l
Part III:
Origin-Destination to trip
Simulation
Assumption
We assume here we already have our Sumo
network ready to be used.
If you don’t know how to build a network in
Sumo, please watch our two previous tutorials
1) Make the TAZ (Traffic analysis zone) file (.xml)
2) Make the OD (Origine-Destination) Matrix file (.od)
3) Make the od2trips.config file (.xml)
4) Make the duarouter.config file (.duarcfg)
0) Make/have the network file ready (.net.xml)
TAZ_file.taz.xml OD_file.od od2trips.config.xml od_file.odtrips.xml
+ + =
od2trips -c PATHod2trips.config.xml -n PATHtaz_file.taz.xml -d
PATHOD_file.od -o PATHod_file.odtrips.xml
Trip Generation, from OD matrix
duarcfg_file.trips2routes.duarcfg
network_file.net.xml od_file.odtrips.xml od_route_file.odtrips.rou.xml
+ =
duarouter –c PATHduarcfg_file.trips2routes.duarcfg – o od_route_file.odtrips.rou.xml
<configuration>
<input>
<net-file value=“network_file.net.xml"/>
<route-files value=“od_file.odtrips.xml"/>
</input>
</configuration>
Route assignment, using DUAROUTER
(shortest length path)
duarcfg_file.trips2routes.duarcfg
network_file.net.xml od_file.odtrips.xml od_route_file.odtrips.rou.xml
+ =
duarouter –c PATHduarcfg_file.trips2routes.duarcfg
<configuration>
<input>
<net-file value=“network_file.net.xml"/>
<route-files value=“od_file.odtrips.xml"/>
</input>
</configuration>
– o od_route_file.odtrips.rou.xml
<output>
<output-file value="od_route_file.odtrips.rou.xml"/>
</output>
The output can be specified either in the xml configuration file, or from the command line
duarouter –c PATHduarcfg_file.trips2routes.duarcfg
Recap
od2trips -c PATHod2trips.config.xml -n PATHtaz_file.taz.xml -d
PATHOD_file.od -o PATHod_file.odtrips.xml
By default, duarouter calculates the shortest length path
for each trip.
<additional>
<tazs>
<taz id="1" edges="put_your_taz_edge_id_here">
</taz>
<taz id="2" edges="put_your_taz_edge_id_here">
</taz>
<taz id="3" edges="put_your_taz_edge_id_here">
</taz>
<taz id="4" edges="put_your_taz_edge_id_here">
</taz>
<taz id="5" edges="put_your_taz_edge_id_here">
</taz>
</tazs>
</additional>
File name: TAZ_file.taz.xml
Traffic Assignment Zone (TAZ) definition
1
$O;D2
* From-Time To-Time
0.00 1.00
* Factor
1.00
*
* some
* additional
* comments
1 3 10
4 2 10
File name: OD_file.od
Origin-Destination Matrix
2
<configuration>
<input>
<taz-files value="taz_file.taz.xml"/>
<od-matrix-files value="OD_file.od"/>
</input>
<!--
<output>
<output-file value="od_file.odtrips.xml"/>
</output>
-->
</configuration>
File name: od2trips.config.xml
Trips generation
3
<configuration>
<!-- The duarouter configuration file takes as input your network and the OD Trips File and output
the route file -->
<input>
<net-file value="my_net.net.xml"/> <!-- Your SUMO Network File -->
<route-files value="od_file.odtrips.xml"/> <!-- Your SUMO OD Trips File -->
</input>
<output>
<output-file value="od_route_file.odtrips.rou.xml"/>
</output>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</configuration>
File name: duarcfg_file.trips2routes.duarcfg
Route assignment
4
The Sumo Configuration file
(.sumocfg)
<configuration>
<input>
<net-file value="my_net.net.xml"/>
<route-files value="od_route_file.odtrips.rou.xml"/>
</input>
<time>
<begin value="0"/>
<end value="2000"/>
</time>
</configuration>
File name: config_file.sumocfg
5
6 Your Network

More Related Content

What's hot

Traffic signal
Traffic signalTraffic signal
Traffic signalaloknitb
 
Road safety improvement in india
Road safety improvement in indiaRoad safety improvement in india
Road safety improvement in indiaNiranjan Reddy
 
Intelligent transport system (ITS)
Intelligent transport system (ITS)Intelligent transport system (ITS)
Intelligent transport system (ITS)Aravind Samala
 
Automated traffic control system
Automated traffic control systemAutomated traffic control system
Automated traffic control systemLikithe
 
Capacity & Level of Service: Highways & Signalized Intersections (Indo-HCM)
Capacity & Level of Service: Highways & Signalized Intersections (Indo-HCM)Capacity & Level of Service: Highways & Signalized Intersections (Indo-HCM)
Capacity & Level of Service: Highways & Signalized Intersections (Indo-HCM)Vijai Krishnan V
 
Simulation of Traffic Flow - Density
Simulation of Traffic Flow - DensitySimulation of Traffic Flow - Density
Simulation of Traffic Flow - DensityAzdeen Najah
 
UTS- Transportation Surveys by Manjurali
UTS- Transportation Surveys by ManjuraliUTS- Transportation Surveys by Manjurali
UTS- Transportation Surveys by ManjuraliManjurali Balya
 
INTELLIGENT TRANSPORT SYSTEM (ITS)
INTELLIGENT TRANSPORT SYSTEM (ITS)INTELLIGENT TRANSPORT SYSTEM (ITS)
INTELLIGENT TRANSPORT SYSTEM (ITS)Chaitanya Sasetti
 
Introduction of gps global navigation satellite systems
Introduction of gps   global navigation satellite systems Introduction of gps   global navigation satellite systems
Introduction of gps global navigation satellite systems DocumentStory
 
Research Paper - Civil Engineering
Research Paper - Civil EngineeringResearch Paper - Civil Engineering
Research Paper - Civil EngineeringKen Guinto
 
Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)
Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)
Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)Hossam Shafiq I
 
Carsharing Presentation
Carsharing PresentationCarsharing Presentation
Carsharing Presentationnesmia
 
Vehicle Identification and Classification System
Vehicle Identification and Classification SystemVehicle Identification and Classification System
Vehicle Identification and Classification SystemVishal Polley
 
Introduction of vissim software
Introduction of vissim softwareIntroduction of vissim software
Introduction of vissim softwareashahit
 
Intelligent Transportation System
Intelligent Transportation SystemIntelligent Transportation System
Intelligent Transportation Systemguest6d72ec
 
Intelligent transport system himanshi
Intelligent transport system   himanshiIntelligent transport system   himanshi
Intelligent transport system himanshiPreeti Rashmi
 
Ca code and its properties
Ca code and its propertiesCa code and its properties
Ca code and its propertiesKSINDHU6
 

What's hot (20)

Traffic signal
Traffic signalTraffic signal
Traffic signal
 
Road safety improvement in india
Road safety improvement in indiaRoad safety improvement in india
Road safety improvement in india
 
Intelligent transport system (ITS)
Intelligent transport system (ITS)Intelligent transport system (ITS)
Intelligent transport system (ITS)
 
Traffic engineering
Traffic engineeringTraffic engineering
Traffic engineering
 
Automated traffic control system
Automated traffic control systemAutomated traffic control system
Automated traffic control system
 
Capacity & Level of Service: Highways & Signalized Intersections (Indo-HCM)
Capacity & Level of Service: Highways & Signalized Intersections (Indo-HCM)Capacity & Level of Service: Highways & Signalized Intersections (Indo-HCM)
Capacity & Level of Service: Highways & Signalized Intersections (Indo-HCM)
 
Simulation of Traffic Flow - Density
Simulation of Traffic Flow - DensitySimulation of Traffic Flow - Density
Simulation of Traffic Flow - Density
 
UTS- Transportation Surveys by Manjurali
UTS- Transportation Surveys by ManjuraliUTS- Transportation Surveys by Manjurali
UTS- Transportation Surveys by Manjurali
 
INTELLIGENT TRANSPORT SYSTEM (ITS)
INTELLIGENT TRANSPORT SYSTEM (ITS)INTELLIGENT TRANSPORT SYSTEM (ITS)
INTELLIGENT TRANSPORT SYSTEM (ITS)
 
Introduction of gps global navigation satellite systems
Introduction of gps   global navigation satellite systems Introduction of gps   global navigation satellite systems
Introduction of gps global navigation satellite systems
 
Research Paper - Civil Engineering
Research Paper - Civil EngineeringResearch Paper - Civil Engineering
Research Paper - Civil Engineering
 
Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)
Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)
Lec 13 Traffic Light Signals (Transportation Engineering Dr.Lina Shbeeb)
 
Carsharing Presentation
Carsharing PresentationCarsharing Presentation
Carsharing Presentation
 
Vehicle Identification and Classification System
Vehicle Identification and Classification SystemVehicle Identification and Classification System
Vehicle Identification and Classification System
 
Introduction of vissim software
Introduction of vissim softwareIntroduction of vissim software
Introduction of vissim software
 
Intelligent Transportation System
Intelligent Transportation SystemIntelligent Transportation System
Intelligent Transportation System
 
Intelligent transport system himanshi
Intelligent transport system   himanshiIntelligent transport system   himanshi
Intelligent transport system himanshi
 
Ca code and its properties
Ca code and its propertiesCa code and its properties
Ca code and its properties
 
L17.2 Synchro10
L17.2 Synchro10 L17.2 Synchro10
L17.2 Synchro10
 
Key Issues to Address Road Safety
Key Issues to Address Road SafetyKey Issues to Address Road Safety
Key Issues to Address Road Safety
 

Similar to Sumo tutorial: 1) Manual Network creation, 2) OSM to Netwrok, 3) OD Matrix to trip Generation

Reitit - Clojure/North 2019
Reitit - Clojure/North 2019Reitit - Clojure/North 2019
Reitit - Clojure/North 2019Metosin Oy
 
Eclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science ProjectEclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science ProjectMatthew Gerring
 
Mobility insights at Swisscom - Understanding collective mobility in Switzerland
Mobility insights at Swisscom - Understanding collective mobility in SwitzerlandMobility insights at Swisscom - Understanding collective mobility in Switzerland
Mobility insights at Swisscom - Understanding collective mobility in SwitzerlandFrançois Garillot
 
Spark Summit EU talk by Francois Garillot and Mohamed Kafsi
Spark Summit EU talk by Francois Garillot and Mohamed KafsiSpark Summit EU talk by Francois Garillot and Mohamed Kafsi
Spark Summit EU talk by Francois Garillot and Mohamed KafsiSpark Summit
 
study-of-network-simulator.pdf
study-of-network-simulator.pdfstudy-of-network-simulator.pdf
study-of-network-simulator.pdfJayaprasanna4
 
Cloud Observation and Performance Analysis using Solaris 11 DTrace
Cloud Observation and Performance Analysis using Solaris 11 DTraceCloud Observation and Performance Analysis using Solaris 11 DTrace
Cloud Observation and Performance Analysis using Solaris 11 DTraceOrgad Kimchi
 
DDS Advanced Tutorial - OMG June 2013 Berlin Meeting
DDS Advanced Tutorial - OMG June 2013 Berlin MeetingDDS Advanced Tutorial - OMG June 2013 Berlin Meeting
DDS Advanced Tutorial - OMG June 2013 Berlin MeetingJaime Martin Losa
 
Tshark pen testing, very good insight of the pent test
Tshark pen testing, very good insight of the pent testTshark pen testing, very good insight of the pent test
Tshark pen testing, very good insight of the pent testclaudiu59
 

Similar to Sumo tutorial: 1) Manual Network creation, 2) OSM to Netwrok, 3) OD Matrix to trip Generation (20)

Ns2 introduction 2
Ns2 introduction 2Ns2 introduction 2
Ns2 introduction 2
 
Reitit - Clojure/North 2019
Reitit - Clojure/North 2019Reitit - Clojure/North 2019
Reitit - Clojure/North 2019
 
Eclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science ProjectEclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science Project
 
Glomosim scenarios
Glomosim scenariosGlomosim scenarios
Glomosim scenarios
 
Mobility insights at Swisscom - Understanding collective mobility in Switzerland
Mobility insights at Swisscom - Understanding collective mobility in SwitzerlandMobility insights at Swisscom - Understanding collective mobility in Switzerland
Mobility insights at Swisscom - Understanding collective mobility in Switzerland
 
Spark Summit EU talk by Francois Garillot and Mohamed Kafsi
Spark Summit EU talk by Francois Garillot and Mohamed KafsiSpark Summit EU talk by Francois Garillot and Mohamed Kafsi
Spark Summit EU talk by Francois Garillot and Mohamed Kafsi
 
Virtual lab - Routing in Mobile Adhoc Networks
Virtual lab - Routing in Mobile Adhoc NetworksVirtual lab - Routing in Mobile Adhoc Networks
Virtual lab - Routing in Mobile Adhoc Networks
 
Guide to glo mosim
Guide to glo mosimGuide to glo mosim
Guide to glo mosim
 
study-of-network-simulator.pdf
study-of-network-simulator.pdfstudy-of-network-simulator.pdf
study-of-network-simulator.pdf
 
BSTM-MM in VISUM
BSTM-MM in VISUMBSTM-MM in VISUM
BSTM-MM in VISUM
 
Ns 2 Network Simulator An Introduction
Ns 2 Network Simulator An IntroductionNs 2 Network Simulator An Introduction
Ns 2 Network Simulator An Introduction
 
Skyline queries
Skyline queriesSkyline queries
Skyline queries
 
Introduction to ns2
Introduction to ns2Introduction to ns2
Introduction to ns2
 
Cloud Observation and Performance Analysis using Solaris 11 DTrace
Cloud Observation and Performance Analysis using Solaris 11 DTraceCloud Observation and Performance Analysis using Solaris 11 DTrace
Cloud Observation and Performance Analysis using Solaris 11 DTrace
 
DDS Advanced Tutorial - OMG June 2013 Berlin Meeting
DDS Advanced Tutorial - OMG June 2013 Berlin MeetingDDS Advanced Tutorial - OMG June 2013 Berlin Meeting
DDS Advanced Tutorial - OMG June 2013 Berlin Meeting
 
Decision Support Systems for evacuation planning: supply, assignment and rout...
Decision Support Systems for evacuation planning: supply, assignment and rout...Decision Support Systems for evacuation planning: supply, assignment and rout...
Decision Support Systems for evacuation planning: supply, assignment and rout...
 
Computer network
Computer networkComputer network
Computer network
 
cscn1819.pdf
cscn1819.pdfcscn1819.pdf
cscn1819.pdf
 
Tshark pen testing, very good insight of the pent test
Tshark pen testing, very good insight of the pent testTshark pen testing, very good insight of the pent test
Tshark pen testing, very good insight of the pent test
 
Osmit2009 Mapnik
Osmit2009 MapnikOsmit2009 Mapnik
Osmit2009 Mapnik
 

More from Rodrigue Tchamna

Recursion Algorithms Derivation
Recursion Algorithms DerivationRecursion Algorithms Derivation
Recursion Algorithms DerivationRodrigue Tchamna
 
Mets camerounais (bamilekes) en langue fe'efe'e (nufi)
Mets camerounais (bamilekes) en langue fe'efe'e (nufi)Mets camerounais (bamilekes) en langue fe'efe'e (nufi)
Mets camerounais (bamilekes) en langue fe'efe'e (nufi)Rodrigue Tchamna
 
Les animaux en langue bamileke nufi (fe'efe'e)
Les animaux en langue bamileke nufi (fe'efe'e)Les animaux en langue bamileke nufi (fe'efe'e)
Les animaux en langue bamileke nufi (fe'efe'e)Rodrigue Tchamna
 
Constraint optimal control
Constraint optimal controlConstraint optimal control
Constraint optimal controlRodrigue Tchamna
 
Salutations en langues camerounaises short
Salutations en langues camerounaises shortSalutations en langues camerounaises short
Salutations en langues camerounaises shortRodrigue Tchamna
 
Mbɑ̄' yòh yì á ntáb pʉ̄h lɑ́, dhì zǒ mʉ̀ ! Notre père qui est aux cieux, rest...
Mbɑ̄' yòh yì á ntáb pʉ̄h lɑ́, dhì zǒ mʉ̀ ! Notre père qui est aux cieux, rest...Mbɑ̄' yòh yì á ntáb pʉ̄h lɑ́, dhì zǒ mʉ̀ ! Notre père qui est aux cieux, rest...
Mbɑ̄' yòh yì á ntáb pʉ̄h lɑ́, dhì zǒ mʉ̀ ! Notre père qui est aux cieux, rest...Rodrigue Tchamna
 

More from Rodrigue Tchamna (6)

Recursion Algorithms Derivation
Recursion Algorithms DerivationRecursion Algorithms Derivation
Recursion Algorithms Derivation
 
Mets camerounais (bamilekes) en langue fe'efe'e (nufi)
Mets camerounais (bamilekes) en langue fe'efe'e (nufi)Mets camerounais (bamilekes) en langue fe'efe'e (nufi)
Mets camerounais (bamilekes) en langue fe'efe'e (nufi)
 
Les animaux en langue bamileke nufi (fe'efe'e)
Les animaux en langue bamileke nufi (fe'efe'e)Les animaux en langue bamileke nufi (fe'efe'e)
Les animaux en langue bamileke nufi (fe'efe'e)
 
Constraint optimal control
Constraint optimal controlConstraint optimal control
Constraint optimal control
 
Salutations en langues camerounaises short
Salutations en langues camerounaises shortSalutations en langues camerounaises short
Salutations en langues camerounaises short
 
Mbɑ̄' yòh yì á ntáb pʉ̄h lɑ́, dhì zǒ mʉ̀ ! Notre père qui est aux cieux, rest...
Mbɑ̄' yòh yì á ntáb pʉ̄h lɑ́, dhì zǒ mʉ̀ ! Notre père qui est aux cieux, rest...Mbɑ̄' yòh yì á ntáb pʉ̄h lɑ́, dhì zǒ mʉ̀ ! Notre père qui est aux cieux, rest...
Mbɑ̄' yòh yì á ntáb pʉ̄h lɑ́, dhì zǒ mʉ̀ ! Notre père qui est aux cieux, rest...
 

Recently uploaded

Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 

Recently uploaded (20)

Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 

Sumo tutorial: 1) Manual Network creation, 2) OSM to Netwrok, 3) OD Matrix to trip Generation

  • 3. What is SUMO? SUMO is an open source traffic simulation package Was created by the German Aerospace Center (DLR) The development of SUMO started back in 2001 You can use SUMO to : - Build a Network and assign routes within a network - Develop traffic light algorithm - Simulate and analyze trɑfic within a network, given Origin-Destination (OD) Matrix - Etc.
  • 4. Aimsun Live (Commercial), TSIS-CORSIM, CORridor SIMulation (Commercial) Paramics, PARAllel MICroscopic Simulation (Commercial), PTV Vissim, (Commercial), SimMobility, (by Singapore-MIT) Synchro + SimTraffic, (Commercial) MATSim, Multi-Agent Transport Simulation , (Open Source) Transims, TRansportation ANalysis SIMulation System (NASA Open Source) SUMO Simulation of Urban Mobility, (DLR, Open Source) Overview of Transportation Simulation Software
  • 5. Preliminary  Download and install  SUMO: http://www.sumo.dlr.de/userdoc/Downloads.html  Python: https://www.python.org/downloads/  Python is necessary for some simulations
  • 6. • In SUMO, road network can be created in three ways: • Manually by creating our own node, edge, route, connection files. • Using netgenerate command. • Importing road network from external sources such as OSM, VISSIM, VISUM etc.
  • 7. Part I: Manual Node, Edge and Route assignment Part II: From OSM to Network + Random Trips Simulation Part III: Origin-Destination to trip Simulation
  • 8. Part I: Manual Node, Edge and Route assignment
  • 9. (-250, 0) (-500, 0) (0, 0) (-150, 200) (150, 200) A road network consists of nodes (junctions) and edges (i.e. roads that connect various junctions with each other). N1 N2 N3 N4 N5
  • 10. 1) Node file creation (.nod.xml) 2) Edge file creation (.edg.xml) 3) Edge type file creation (.type.xml) 4) Network creation from the node, edge and type files 5) Route file (.rou.xml)
  • 11. <nodes> <node id=“n1" x = "-500" y="0" type=“priority”/> <node id=“n2" x = "-250" y="0" type=“traffic_light”/> <node id=“n3" x = "-150" y="200" type=“traffic_light”/> <node id=“n4" x ="0" y="0"/> <node id=“n5" x =“150" y=“200" /> </nodes> (-250, 0) (-500, 0) (0, 0) (-150, 200) (150, 200) N1 N2 N3 N4 N5 File name: my_nod.nod.xml 1) node file (.nod.xml)
  • 12. 2) Edge file (.edg.xml) define the connect node together to form links. Example: <edges> <edge from="n1" to="n2" id="1to2" type="3L45"/> <edge from="n2" to="n3" id="2to3" type="2L15"/> <edge from="n3" to="n4" id="3to4" type="3L30"/> <edge from="n4" to="n5" id="out" type="3L30"/> </edges> Fine name: my_edge.edg N1 N2 N3 N4 N5
  • 13. 3) Type file (.type.xml) include road priority, the number of lanes, speed limit, type of vehicles allow, etc. Example: Fine name: my_type.type.xml <types> <type id=“3L45" priority="3" numLanes="3" speed="45"/> <type id=“2L15" priority="3" numLanes="2" speed="15"/> <type id=“3L30" priority="2" numLanes="3" speed="30"/> </types>
  • 14. netconvert --node-files my_nodes.nod.xml -- edge-files my_edge.edg.xml -t my_type.type.xml -o my_net.net.xml 4) netconvert my_nodes.nod.xml my_edge.edg.xml my_type.type.xml my_net.net.xml + + =
  • 15. 5) Route file (.rou.xml) <routes> <vType accel="1.0" decel="5.0" id="Car" length="2.0" maxSpeed="100.0" sigma="0.0" /> <vType accel="1.0" decel="5.0" id="Bus" length="12.0" maxSpeed="1.0" sigma="0.0" /> <route id="route0" edges="1to2 2to3"/> <vehicle depart="10" id="veh0" route="route0" type="Bus" /> <route id="route1" edges="2to3 3to4"/> <vehicle depart="10" id="veh1" route="route1" type="Car" /> <route id="route2" edges="3to4 out"/> <vehicle depart="30" id="veh2" route="route2" type="Car" /> </routes>
  • 16. Lastly, the Sumo Configuration file (.sumocfg) <configuration> <input> <net-file value="my_net.net.xml"/> <route-files value="my_route.rou.xml"/> </input> <time> <begin value="0"/> <end value="2000"/> </time> </configuration> File name: my_config_file
  • 17. sumo -c my_config_file.sumocfg Or sumo-gui -c my_config_file.sumocfg
  • 18. Part II: From OSM to Network + Random Trips Simulation
  • 19. (-250, 0) (-500, 0) (0, 0) (-150, 200) (150, 200) N1 N2 N3 N4 N5 Previously, we manually built this network (nodes, edges), and manually defined the route, the vehicle types and parameters.
  • 20. But, what if we have a large set of network?
  • 21. 1) Search and Download Open Street Map (OSM) 2) Convert the Map into SUMO Network netconvert --osm-files map.osm -o test.net.xml 3) Add trip and route to the network using build-in Python scripts randomTrips.py python PATHrandomTrips.py -n test.net.xml -r test.rou.xml -e 50 -l py PATHrandomTrips.py -n test.net.xml -r test.rou.xml -e 50 -l
  • 22. 5) Setup the configuration file and run the Network
  • 23. Lastly, the Sumo Configuration file (.sumocfg) <configuration> <input> <net-file value="my_net.net.xml"/> <route-files value="my_route.rou.xml"/> </input> <time> <begin value="0"/> <end value="2000"/> </time> </configuration> File name: my_config_file
  • 24. "randomTrips.py" generates a set of random trips for a given network (option -n). By default, it does so by choosing source and destination edge uniformly at random distribution. The resulting trips are by default stored in an XML file trips.trips.xml The trips are distributed evenly in an interval defined by the beginning time –b (default 0) and end time -e (default 3600) in seconds. py PATHrandomTrips.py -n test.net.xml -r test.rou.xml -e 50 -l
  • 26. Assumption We assume here we already have our Sumo network ready to be used. If you don’t know how to build a network in Sumo, please watch our two previous tutorials
  • 27. 1) Make the TAZ (Traffic analysis zone) file (.xml) 2) Make the OD (Origine-Destination) Matrix file (.od) 3) Make the od2trips.config file (.xml) 4) Make the duarouter.config file (.duarcfg) 0) Make/have the network file ready (.net.xml)
  • 28. TAZ_file.taz.xml OD_file.od od2trips.config.xml od_file.odtrips.xml + + = od2trips -c PATHod2trips.config.xml -n PATHtaz_file.taz.xml -d PATHOD_file.od -o PATHod_file.odtrips.xml Trip Generation, from OD matrix
  • 29. duarcfg_file.trips2routes.duarcfg network_file.net.xml od_file.odtrips.xml od_route_file.odtrips.rou.xml + = duarouter –c PATHduarcfg_file.trips2routes.duarcfg – o od_route_file.odtrips.rou.xml <configuration> <input> <net-file value=“network_file.net.xml"/> <route-files value=“od_file.odtrips.xml"/> </input> </configuration> Route assignment, using DUAROUTER (shortest length path)
  • 30. duarcfg_file.trips2routes.duarcfg network_file.net.xml od_file.odtrips.xml od_route_file.odtrips.rou.xml + = duarouter –c PATHduarcfg_file.trips2routes.duarcfg <configuration> <input> <net-file value=“network_file.net.xml"/> <route-files value=“od_file.odtrips.xml"/> </input> </configuration> – o od_route_file.odtrips.rou.xml <output> <output-file value="od_route_file.odtrips.rou.xml"/> </output> The output can be specified either in the xml configuration file, or from the command line
  • 31. duarouter –c PATHduarcfg_file.trips2routes.duarcfg Recap od2trips -c PATHod2trips.config.xml -n PATHtaz_file.taz.xml -d PATHOD_file.od -o PATHod_file.odtrips.xml By default, duarouter calculates the shortest length path for each trip.
  • 32. <additional> <tazs> <taz id="1" edges="put_your_taz_edge_id_here"> </taz> <taz id="2" edges="put_your_taz_edge_id_here"> </taz> <taz id="3" edges="put_your_taz_edge_id_here"> </taz> <taz id="4" edges="put_your_taz_edge_id_here"> </taz> <taz id="5" edges="put_your_taz_edge_id_here"> </taz> </tazs> </additional> File name: TAZ_file.taz.xml Traffic Assignment Zone (TAZ) definition 1
  • 33. $O;D2 * From-Time To-Time 0.00 1.00 * Factor 1.00 * * some * additional * comments 1 3 10 4 2 10 File name: OD_file.od Origin-Destination Matrix 2
  • 34. <configuration> <input> <taz-files value="taz_file.taz.xml"/> <od-matrix-files value="OD_file.od"/> </input> <!-- <output> <output-file value="od_file.odtrips.xml"/> </output> --> </configuration> File name: od2trips.config.xml Trips generation 3
  • 35. <configuration> <!-- The duarouter configuration file takes as input your network and the OD Trips File and output the route file --> <input> <net-file value="my_net.net.xml"/> <!-- Your SUMO Network File --> <route-files value="od_file.odtrips.xml"/> <!-- Your SUMO OD Trips File --> </input> <output> <output-file value="od_route_file.odtrips.rou.xml"/> </output> <report> <xml-validation value="never"/> <no-step-log value="true"/> </report> </configuration> File name: duarcfg_file.trips2routes.duarcfg Route assignment 4
  • 36. The Sumo Configuration file (.sumocfg) <configuration> <input> <net-file value="my_net.net.xml"/> <route-files value="od_route_file.odtrips.rou.xml"/> </input> <time> <begin value="0"/> <end value="2000"/> </time> </configuration> File name: config_file.sumocfg 5

Editor's Notes

  1. Traffic simulations facilitate the evaluation of infrastructure changes as well as policy changes before implementing them on the road