Professional Documents
Culture Documents
SUMO Presentation March 9 2017
SUMO Presentation March 9 2017
(SUMO)
2
Downloading Softwares
• Download SUBLIME TEXT for xml reader
link: https://www.sublimetext.com/3
• Download SUMO
LINK:
https://sourceforge.net/projects/sumo/files/sum
o/version%200.29.0/sumo-doc-0.29.0.tar.gz/do
wnload?use_mirror=excellmedia&download
=
3
Creating Network
• Open NET EDIT
• Create a new network
• Steps-
Select the Left/right hand driving
(Processing Options Processing)
Create edge
(select two way accordingly)
Create given Network
4
5
EDITING NETWORK
Select INSPECT
select any edge
6
7
Creating XML files
• Create Flow file by using commands to define
the flow parameters
• Create Trip file by using commands to define
the “trip” and “vehicle” parameters
• Create a Detector file by using commands to
introduce the detectors
• Save these files in the same folder
8
Creating FLOW FILE
9
Flow definitions
• “departlane” : the lane on which the vehicle shall be
inserted
• "random": a random lane is chosen; please note that a
vehicle insertion is not retried if it could not be inserted
• "free": the most free (least occupied) lane is chosen
• "allowed": the "free" lane of those lane of the depart edge
which allow vehicles of the class the vehicle belongs to
• "best": the "free" lane of those who allow the vehicle the
longest ride without the need to lane change
• "first": the rightmost lane the vehicle may use
10
Creating TRIP FILE
11
• accel: The acceleration ability of vehicles of this type (in
m/s^2)
• decel: The deceleration ability of vehicles of this type
(in m/s^2)
• length: The vehicle's length (in m)
• maxspeed: The vehicle's maximum velocity (in m/s)
• mingap: Empty space after leader
• speedfactor: The vehicles expected multiplicator for
lane speed limits
• speeddev: The deviation of the speedFactor
• tau : The driver's desired (minimum) time headway
12
Car-Following Models
13
Creating DETECTOR FILE
14
Creating CFG file
• Open in SUBLIME TEXT Input the COMMANDS
Save the file as .CFG
For running the programme
15
COMMAND PROMPT
• Open CMD
• Type CD<space>(location of folder where all
files are saved)
• Type CD<space>(name of folder)
• Type the following COMMAND
duarouter --flows=“flow file name”.flow.xml --
trip-files=“trip file name”.trip.xml --
net=“network file name”.net.xml --output-
file=“output file name”.rou.xml --ignore-errors
16
SUMO
• Open SUMO
• Select OPEN SIMULATION
• Select CFG file
• Set a required delay
• Run the simulation
17
SELECTING CFG FILE
18
SIMULATION
19
Solution
20
DETECTOR SOLUTION
21
Fundamental Traffic Parameters
Flow (veh/hr) Speed(m/sec) Density(veh /km)
flow speed density
311
311 5.5
5.5 56.55
56.55
421
421 7.57
7.57 55.61
55.61
690
690 16.73
16.73 41.24
41.24
596
596 28.2
28.2 21.13
21.13
435
435 29.97
29.97 14.51
14.51
340 31.39 10.83
340 31.39 10.83
314 33.36 9.41
314 33.36 9.41
22
Density vs Flow
750
q max
700
650
600
flow (veh/hr)
550
500
450
400
350
300
5 15 25 35 45 55 65
density (veh/km)
23
Density vs Speed
35
Uf
30
25
speed (m/sec)
20
15
10
5
8.00 18.00 28.00 38.00 48.00 58.00 68.00
24
speed vs Flow
40
35
Uf
30
speed(m/sec)
25
20
15
10
0
275 325 375 425 475 525 575 625 675 725
flow(veh/hr) q max
25
yo u
h a n k
T
26