SlideShare a Scribd company logo
1 of 24
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
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
"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
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) Convert the OD to trips.
od2trips -c PATHod2trips.config.xml -n PATHfdr.taz.xml -d
PATHtrial.od -o PATHtrial.odtrips.xml
6) Generate the route for each trip using duarouter command
duarouter -n PATHfdr.taz.xml –c
PATHFDR.trips2routes.duarcfg -o PATHtrial.odtrips.rou.xml
5) Make the duarouter.config file (.duarcfg)
By default, duarouter calculates the shortest length
path for each trip.

More Related Content

What's hot

Vehicle counting for traffic management
Vehicle counting for traffic management Vehicle counting for traffic management
Vehicle counting for traffic management ADEEBANADEEM
 
Traffic Volume Study
Traffic Volume StudyTraffic Volume Study
Traffic Volume StudyWaliur Rahman
 
Study of urban traffic flow
Study of urban traffic flowStudy of urban traffic flow
Study of urban traffic flowSukhdeep Jat
 
Route Optimization Algorithm..
Route Optimization Algorithm..Route Optimization Algorithm..
Route Optimization Algorithm..Mazhar Nazik
 
Vehicle detection through image processing
Vehicle detection through image processingVehicle detection through image processing
Vehicle detection through image processingGhazalpreet Kaur
 
Automatic vehicle locator
Automatic vehicle locatorAutomatic vehicle locator
Automatic vehicle locatoraishwarya yadav
 
Traffic volume study
Traffic volume studyTraffic volume study
Traffic volume studyStone Rayhan
 
VANETs Presentation
VANETs PresentationVANETs Presentation
VANETs PresentationiQra Rafaqat
 
TE ITS 2018-lesson 7 car following models v01
TE ITS 2018-lesson 7 car following models v01TE ITS 2018-lesson 7 car following models v01
TE ITS 2018-lesson 7 car following models v01Gaetano Fusco
 
Advance Public Transportation System
Advance Public Transportation SystemAdvance Public Transportation System
Advance Public Transportation Systemsaranshshah
 
Origin and destination survey
Origin and destination surveyOrigin and destination survey
Origin and destination surveyraj balar
 
Intelligent transportation system
Intelligent transportation systemIntelligent transportation system
Intelligent transportation systemNeha Reddy A
 
Travel speed report by pronob ghosh buet 1204011
Travel speed report by pronob ghosh buet 1204011Travel speed report by pronob ghosh buet 1204011
Travel speed report by pronob ghosh buet 1204011Pronob Ghosh
 
Transportation modeling and planning ( The Four-Step Model )
Transportation modeling and planning ( The Four-Step Model )Transportation modeling and planning ( The Four-Step Model )
Transportation modeling and planning ( The Four-Step Model )Ahmad Ali Miftah
 
Simulation of traffic engg.
Simulation of traffic engg.Simulation of traffic engg.
Simulation of traffic engg.vijay reddy
 

What's hot (20)

Vehicle counting for traffic management
Vehicle counting for traffic management Vehicle counting for traffic management
Vehicle counting for traffic management
 
Intelligent Traffic Management
Intelligent Traffic ManagementIntelligent Traffic Management
Intelligent Traffic Management
 
Traffic Volume Study
Traffic Volume StudyTraffic Volume Study
Traffic Volume Study
 
Study of urban traffic flow
Study of urban traffic flowStudy of urban traffic flow
Study of urban traffic flow
 
Route Optimization Algorithm..
Route Optimization Algorithm..Route Optimization Algorithm..
Route Optimization Algorithm..
 
Clustering
ClusteringClustering
Clustering
 
Its architecture
Its architectureIts architecture
Its architecture
 
Intelligent Transportation system
Intelligent Transportation systemIntelligent Transportation system
Intelligent Transportation system
 
Vehicle detection through image processing
Vehicle detection through image processingVehicle detection through image processing
Vehicle detection through image processing
 
Automatic vehicle locator
Automatic vehicle locatorAutomatic vehicle locator
Automatic vehicle locator
 
Traffic volume study
Traffic volume studyTraffic volume study
Traffic volume study
 
VANETs Presentation
VANETs PresentationVANETs Presentation
VANETs Presentation
 
TE ITS 2018-lesson 7 car following models v01
TE ITS 2018-lesson 7 car following models v01TE ITS 2018-lesson 7 car following models v01
TE ITS 2018-lesson 7 car following models v01
 
Advance Public Transportation System
Advance Public Transportation SystemAdvance Public Transportation System
Advance Public Transportation System
 
Origin and destination survey
Origin and destination surveyOrigin and destination survey
Origin and destination survey
 
Intelligent transportation system
Intelligent transportation systemIntelligent transportation system
Intelligent transportation system
 
Travel speed report by pronob ghosh buet 1204011
Travel speed report by pronob ghosh buet 1204011Travel speed report by pronob ghosh buet 1204011
Travel speed report by pronob ghosh buet 1204011
 
Transportation modeling and planning ( The Four-Step Model )
Transportation modeling and planning ( The Four-Step Model )Transportation modeling and planning ( The Four-Step Model )
Transportation modeling and planning ( The Four-Step Model )
 
Simulation of traffic engg.
Simulation of traffic engg.Simulation of traffic engg.
Simulation of traffic engg.
 
Vehicle detection
Vehicle detectionVehicle detection
Vehicle detection
 

Similar to Sumo, Simulation of Urban Mobility, (DLR, Open Source) tutorial

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
 
Introduction to NS2 - Cont..
Introduction to NS2 - Cont..Introduction to NS2 - Cont..
Introduction to NS2 - Cont..cscarcas
 
Python과 node.js기반 데이터 분석 및 가시화
Python과 node.js기반 데이터 분석 및 가시화Python과 node.js기반 데이터 분석 및 가시화
Python과 node.js기반 데이터 분석 및 가시화Tae wook kang
 
Web Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdfWeb Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdfSamHoney6
 
Network Simulator Tutorial
Network Simulator TutorialNetwork Simulator Tutorial
Network Simulator Tutorialcscarcas
 
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
 
Reitit - Clojure/North 2019
Reitit - Clojure/North 2019Reitit - Clojure/North 2019
Reitit - Clojure/North 2019Metosin Oy
 

Similar to Sumo, Simulation of Urban Mobility, (DLR, Open Source) tutorial (20)

Glomosim scenarios
Glomosim scenariosGlomosim scenarios
Glomosim scenarios
 
Introduction to ns2
Introduction to ns2Introduction to ns2
Introduction to ns2
 
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
 
Ns2 introduction 2
Ns2 introduction 2Ns2 introduction 2
Ns2 introduction 2
 
~Ns2~
~Ns2~~Ns2~
~Ns2~
 
Tut hemant ns2
Tut hemant ns2Tut hemant ns2
Tut hemant ns2
 
Introduction to NS2 - Cont..
Introduction to NS2 - Cont..Introduction to NS2 - Cont..
Introduction to NS2 - Cont..
 
Ns 2 Network Simulator An Introduction
Ns 2 Network Simulator An IntroductionNs 2 Network Simulator An Introduction
Ns 2 Network Simulator An Introduction
 
Venkat ns2
Venkat ns2Venkat ns2
Venkat ns2
 
Ns2
Ns2Ns2
Ns2
 
Python과 node.js기반 데이터 분석 및 가시화
Python과 node.js기반 데이터 분석 및 가시화Python과 node.js기반 데이터 분석 및 가시화
Python과 node.js기반 데이터 분석 및 가시화
 
Guide to glo mosim
Guide to glo mosimGuide to glo mosim
Guide to glo mosim
 
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
 
Web Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdfWeb Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdf
 
Network Simulator Tutorial
Network Simulator TutorialNetwork Simulator Tutorial
Network Simulator Tutorial
 
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
 
Ns network simulator
Ns network simulatorNs network simulator
Ns network simulator
 
Reitit - Clojure/North 2019
Reitit - Clojure/North 2019Reitit - Clojure/North 2019
Reitit - Clojure/North 2019
 
Aimaf
AimafAimaf
Aimaf
 

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

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
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
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
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
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
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
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
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
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
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
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(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
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 

Recently uploaded (20)

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
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 )
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
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🔝
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
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
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
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
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
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
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
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
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(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...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 

Sumo, Simulation of Urban Mobility, (DLR, Open Source) tutorial

  • 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. 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
  • 20. 5) Setup the configuration file and run the Network
  • 21. "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
  • 23. 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) Convert the OD to trips. od2trips -c PATHod2trips.config.xml -n PATHfdr.taz.xml -d PATHtrial.od -o PATHtrial.odtrips.xml
  • 24. 6) Generate the route for each trip using duarouter command duarouter -n PATHfdr.taz.xml –c PATHFDR.trips2routes.duarcfg -o PATHtrial.odtrips.rou.xml 5) Make the duarouter.config file (.duarcfg) By default, duarouter calculates the shortest length path for each trip.

Editor's Notes

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