Difference between revisions of "SUMO"

From Sumo
Jump to navigation Jump to search
Line 14: Line 14:
 
==Options==
 
==Options==
 
You may use a XML schema definition file for setting up a SUMO configuration: [http://sumo.sf.net/doc/current/docs/xsd/sumoConfiguration.xsd sumoConfiguration.xsd].
 
You may use a XML schema definition file for setting up a SUMO configuration: [http://sumo.sf.net/doc/current/docs/xsd/sumoConfiguration.xsd sumoConfiguration.xsd].
 
 
===Configuration===
 
===Configuration===
All applications of the '''SUMO'''-suite handle configuration options the same way. These options are discussed at [[Basics/Using the Command Line Applications#Configuration Files]].
+
{| cellspacing="0" border="1" width="90%" align="center"                                                                                                                          
 
+
|-                                                                                                                                                                                
{| cellspacing="0" border="1" width="90%" align="center"
+
! style="background:#ddffdd;" valign="top" | Option                                                                                                                               
|-
+
! style="background:#ddffdd;" valign="top" | Default Value                                                                                                                         
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Description                                                                                                                          
! style="background:#ddffdd;" valign="top" | Description
+
|-                                                                                                                                                                                
|-
+
| valign="top" | {{Option|-c {{DT_FILE}}}}<br/> {{Option|--configuration-file {{DT_FILE}}}}                                                                                        
| valign="top" | {{Option|-c {{DT_FILE}}}}<br/>
+
| valign="top" |                                                                                                                                                                   
{{Option|--configuration-file {{DT_FILE}}}}
 
 
| valign="top" | Loads the named config on startup
 
| valign="top" | Loads the named config on startup
 
|-
 
|-
 
| valign="top" | {{Option|--save-configuration {{DT_FILE}}}}
 
| valign="top" | {{Option|--save-configuration {{DT_FILE}}}}
 +
| valign="top" |
 
| valign="top" | Saves current configuration into FILE
 
| valign="top" | Saves current configuration into FILE
 
|-
 
|-
 
| valign="top" | {{Option|--save-template {{DT_FILE}}}}
 
| valign="top" | {{Option|--save-template {{DT_FILE}}}}
 +
| valign="top" |
 
| valign="top" | Saves a configuration template (empty) into FILE
 
| valign="top" | Saves a configuration template (empty) into FILE
 
|-
 
|-
 
| valign="top" | {{Option|--save-schema {{DT_FILE}}}}
 
| valign="top" | {{Option|--save-schema {{DT_FILE}}}}
 +
| valign="top" |
 
| valign="top" | Saves the configuration schema into FILE
 
| valign="top" | Saves the configuration schema into FILE
 
|-
 
|-
 
| valign="top" | {{Option|--save-commented {{DT_BOOL}}}}
 
| valign="top" | {{Option|--save-commented {{DT_BOOL}}}}
| valign="top" | Adds comments to saved template, configuration, or schema; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Adds comments to saved template, configuration, or schema
 
|-
 
|-
 
|}
 
|}
Line 44: Line 46:
 
{| cellspacing="0" border="1" width="90%" align="center"
 
{| cellspacing="0" border="1" width="90%" align="center"
 
|-
 
|-
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Option
 +
! style="background:#ddffdd;" valign="top" | Default Value
 
! style="background:#ddffdd;" valign="top" | Description
 
! style="background:#ddffdd;" valign="top" | Description
 
|-
 
|-
| valign="top" | {{Option|-n {{DT_FILE}}}}<br/>
+
| valign="top" | {{Option|-n {{DT_FILE}}}}<br/> {{Option|--net-file {{DT_FILE}}}}
{{Option|--net-file {{DT_FILE}}}}
+
| valign="top" |
 
| valign="top" | Load road network description from FILE
 
| valign="top" | Load road network description from FILE
 
|-
 
|-
| valign="top" | {{Option|-r {{DT_FILE}}}}<br/>
+
| valign="top" | {{Option|-r {{DT_FILE}}}}<br/> {{Option|--route-files {{DT_FILE}}}}
{{Option|--route-files {{DT_FILE}}}}
+
| valign="top" |
 
| valign="top" | Load routes descriptions from FILE(s)
 
| valign="top" | Load routes descriptions from FILE(s)
 
|-
 
|-
| valign="top" | {{Option|-a {{DT_FILE}}}}<br/>
+
| valign="top" | {{Option|-a {{DT_FILE}}}}<br/> {{Option|--additional-files {{DT_FILE}}}}
{{Option|--additional-files {{DT_FILE}}}}
+
| valign="top" |
 
| valign="top" | Load further descriptions from FILE(s)
 
| valign="top" | Load further descriptions from FILE(s)
 
|-
 
|-
| valign="top" | {{Option|-w {{DT_FILE}}}}<br/>
+
| valign="top" | {{Option|-w {{DT_FILE}}}}<br/> {{Option|--weight-files {{DT_FILE}}}}
{{Option|--weight-files {{DT_FILE}}}}
+
| valign="top" |
 
| valign="top" | Load edge/lane weights for online rerouting from FILE
 
| valign="top" | Load edge/lane weights for online rerouting from FILE
 
|-
 
|-
| valign="top" | {{Option|-x {{DT_STR}}}}<br/>
+
| valign="top" | {{Option|-x {{DT_STR}}}}<br/> {{Option|--weight-attribute {{DT_STR}}}}
{{Option|--weight-attribute {{DT_STR}}}}
+
| valign="top" | traveltime
| valign="top" | Name of the xml attribute which gives the edge weight; ''default: '''traveltime'''''
+
| valign="top" | Name of the xml attribute which gives the edge weight
 
|-
 
|-
 
|}
 
|}
Line 72: Line 75:
 
{| cellspacing="0" border="1" width="90%" align="center"
 
{| cellspacing="0" border="1" width="90%" align="center"
 
|-
 
|-
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Option
 +
! style="background:#ddffdd;" valign="top" | Default Value
 
! style="background:#ddffdd;" valign="top" | Description
 
! style="background:#ddffdd;" valign="top" | Description
 
|-
 
|-
 
| valign="top" | {{Option|--netstate-dump {{DT_FILE}}}}
 
| valign="top" | {{Option|--netstate-dump {{DT_FILE}}}}
 +
| valign="top" |
 
| valign="top" | Save complete network states into FILE
 
| valign="top" | Save complete network states into FILE
 
|-
 
|-
 
| valign="top" | {{Option|--netstate-dump.empty-edges {{DT_BOOL}}}}
 
| valign="top" | {{Option|--netstate-dump.empty-edges {{DT_BOOL}}}}
| valign="top" | Write also empty edges completely when dumping; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Write also empty edges completely when dumping
 +
|-
 +
| valign="top" | {{Option|--emission-output {{DT_FILE}}}}
 +
| valign="top" |
 +
| valign="top" | Save the emission values of each vehicle
 +
|-
 +
| valign="top" | {{Option|--fcd-output {{DT_FILE}}}}
 +
| valign="top" |
 +
| valign="top" | Save the Floating Car Data
 +
|-
 +
| valign="top" | {{Option|--fcd-output.geo {{DT_BOOL}}}}
 +
| valign="top" | false
 +
| valign="top" | Save the Floating Car Data using geo-coordinates (lon/lat)
 +
|-
 +
| valign="top" | {{Option|--full-output {{DT_FILE}}}}
 +
| valign="top" |
 +
| valign="top" | Save a lot of information for each timestep (very redundant)
 +
|-
 +
| valign="top" | {{Option|--queue-output {{DT_FILE}}}}
 +
| valign="top" |
 +
| valign="top" | Save the vehicle queues at the junctions (experimental)
 +
|-
 +
| valign="top" | {{Option|--vtk-output {{DT_FILE}}}}
 +
| valign="top" |
 +
| valign="top" | Save complete vehicle positions in VTK Format (usage: /file/out will produce /file/out_$NR$.vtp files)
 
|-
 
|-
 
| valign="top" | {{Option|--summary-output {{DT_FILE}}}}
 
| valign="top" | {{Option|--summary-output {{DT_FILE}}}}
 +
| valign="top" |
 
| valign="top" | Save aggregated vehicle departure info into FILE
 
| valign="top" | Save aggregated vehicle departure info into FILE
 
|-
 
|-
 
| valign="top" | {{Option|--tripinfo-output {{DT_FILE}}}}
 
| valign="top" | {{Option|--tripinfo-output {{DT_FILE}}}}
 +
| valign="top" |
 
| valign="top" | Save single vehicle trip info into FILE
 
| valign="top" | Save single vehicle trip info into FILE
 
|-
 
|-
 
| valign="top" | {{Option|--vehroute-output {{DT_FILE}}}}
 
| valign="top" | {{Option|--vehroute-output {{DT_FILE}}}}
 +
| valign="top" |
 
| valign="top" | Save single vehicle route info into FILE
 
| valign="top" | Save single vehicle route info into FILE
 
|-
 
|-
 
| valign="top" | {{Option|--vehroute-output.exit-times {{DT_BOOL}}}}
 
| valign="top" | {{Option|--vehroute-output.exit-times {{DT_BOOL}}}}
| valign="top" | Write the exit times for all edges; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Write the exit times for all edges
 
|-
 
|-
 
| valign="top" | {{Option|--vehroute-output.last-route {{DT_BOOL}}}}
 
| valign="top" | {{Option|--vehroute-output.last-route {{DT_BOOL}}}}
| valign="top" | Write the last route only; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Write the last route only
 
|-
 
|-
 
| valign="top" | {{Option|--vehroute-output.sorted {{DT_BOOL}}}}
 
| valign="top" | {{Option|--vehroute-output.sorted {{DT_BOOL}}}}
| valign="top" | Sorts the output by departure time; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Sorts the output by departure time
 +
|-
 +
| valign="top" | {{Option|--vehroute-output.write-unfinished {{DT_BOOL}}}}
 +
| valign="top" | false
 +
| valign="top" | Write vehroute output for vehicles which have not arrived at simulation end
 
|-
 
|-
 
|}
 
|}
Line 104: Line 144:
 
{| cellspacing="0" border="1" width="90%" align="center"
 
{| cellspacing="0" border="1" width="90%" align="center"
 
|-
 
|-
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Option
 +
! style="background:#ddffdd;" valign="top" | Default Value
 
! style="background:#ddffdd;" valign="top" | Description
 
! style="background:#ddffdd;" valign="top" | Description
 
|-
 
|-
| valign="top" | {{Option|-b {{DT_TIME}}}}<br/>{{Option|--begin {{DT_TIME}}}}
+
| valign="top" | {{Option|-b {{DT_TIME}}}}<br/> {{Option|--begin {{DT_TIME}}}}
| valign="top" | Defines the begin time; The simulation starts at this time; ''default: '''0'''''
+
| valign="top" | 0
 +
| valign="top" | Defines the begin time; The simulation starts at this time
 
|-
 
|-
| valign="top" | {{Option|-e {{DT_TIME}}}}<br/>{{Option|--end {{DT_TIME}}}}
+
| valign="top" | {{Option|-e {{DT_TIME}}}}<br/> {{Option|--end {{DT_TIME}}}}
| valign="top" | Defines the end time; The simulation ends at this time; ''default: '''-1'''''
+
| valign="top" | -1
 +
| valign="top" | Defines the end time; The simulation ends at this time
 
|-
 
|-
 
| valign="top" | {{Option|--step-length {{DT_TIME}}}}
 
| valign="top" | {{Option|--step-length {{DT_TIME}}}}
| valign="top" | Defines the step duration; ''default: '''1'''''
+
| valign="top" | 1
 +
| valign="top" | Defines the step duration
 
|-
 
|-
 
|}
 
|}
Line 121: Line 165:
 
{| cellspacing="0" border="1" width="90%" align="center"
 
{| cellspacing="0" border="1" width="90%" align="center"
 
|-
 
|-
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Option
 +
! style="background:#ddffdd;" valign="top" | Default Value
 
! style="background:#ddffdd;" valign="top" | Description
 
! style="background:#ddffdd;" valign="top" | Description
 
|-
 
|-
| valign="top" | {{Option|-s {{DT_INT}}}}<br/>{{Option|--route-steps {{DT_INT}}}}
+
| valign="top" | {{Option|-s {{DT_TIME}}}}<br/> {{Option|--route-steps {{DT_TIME}}}}
| valign="top" | Load routes for the next INT seconds ahead; ''default: '''200'''''
+
| valign="top" | 200
 +
| valign="top" | Load routes for the next number of seconds ahead
 
|-
 
|-
 
| valign="top" | {{Option|--no-internal-links {{DT_BOOL}}}}
 
| valign="top" | {{Option|--no-internal-links {{DT_BOOL}}}}
| valign="top" | Disable (junction) internal links; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Disable (junction) internal links
 
|-
 
|-
 
| valign="top" | {{Option|--ignore-accidents {{DT_BOOL}}}}
 
| valign="top" | {{Option|--ignore-accidents {{DT_BOOL}}}}
| valign="top" | Do not check whether accidents occure more deeply; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Do not check whether accidents occure more deeply
 
|-
 
|-
 
| valign="top" | {{Option|--ignore-route-errors {{DT_BOOL}}}}
 
| valign="top" | {{Option|--ignore-route-errors {{DT_BOOL}}}}
| valign="top" | Do not check whether routes are connected; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Do not check whether routes are connected
 
|-
 
|-
 
| valign="top" | {{Option|--max-num-vehicles {{DT_INT}}}}
 
| valign="top" | {{Option|--max-num-vehicles {{DT_INT}}}}
| valign="top" | Quit simulation if this number of vehicles is exceeded; ''default: '''-1'''''
+
| valign="top" | -1
 +
| valign="top" | Quit simulation if this number of vehicles is exceeded
 
|-
 
|-
 
| valign="top" | {{Option|--incremental-dua-step {{DT_INT}}}}
 
| valign="top" | {{Option|--incremental-dua-step {{DT_INT}}}}
 +
| valign="top" |
 
| valign="top" | Perform the simulation as a step in incremental DUA
 
| valign="top" | Perform the simulation as a step in incremental DUA
 
|-
 
|-
 
| valign="top" | {{Option|--incremental-dua-base {{DT_INT}}}}
 
| valign="top" | {{Option|--incremental-dua-base {{DT_INT}}}}
| valign="top" | Base value for incremental DUA; ''default: '''10'''''
+
| valign="top" | 10
 +
| valign="top" | Base value for incremental DUA
 
|-
 
|-
 
| valign="top" | {{Option|--scale {{DT_FLOAT}}}}
 
| valign="top" | {{Option|--scale {{DT_FLOAT}}}}
 +
| valign="top" |
 
| valign="top" | Scale demand by the given factor (0..1)
 
| valign="top" | Scale demand by the given factor (0..1)
 
|-
 
|-
 
| valign="top" | {{Option|--time-to-teleport {{DT_TIME}}}}
 
| valign="top" | {{Option|--time-to-teleport {{DT_TIME}}}}
| valign="top" | Specify how long a vehicle may wait until being teleported, non-positive values disable teleporting; ''default: '''300'''''
+
| valign="top" | 300
 +
| valign="top" | Specify how long a vehicle may wait until being teleported, defaults to 300, non-positive values disable teleporting
 
|-
 
|-
 
| valign="top" | {{Option|--max-depart-delay {{DT_TIME}}}}
 
| valign="top" | {{Option|--max-depart-delay {{DT_TIME}}}}
| valign="top" | How long vehicles wait for departure before being skipped, defaults to -1 which means vehicles are never skipped; ''default: '''-1'''''
+
| valign="top" | -1
 +
| valign="top" | How long vehicles wait for departure before being skipped, defaults to -1 which means vehicles are never skipped
 
|-
 
|-
 
| valign="top" | {{Option|--sloppy-insert {{DT_BOOL}}}}
 
| valign="top" | {{Option|--sloppy-insert {{DT_BOOL}}}}
| valign="top" | Whether insertion on an edge shall not be repeated in same step once failed; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Whether insertion on an edge shall not be repeated in same step once failed.
 
|-
 
|-
 
| valign="top" | {{Option|--lanechange.allow-swap {{DT_BOOL}}}}
 
| valign="top" | {{Option|--lanechange.allow-swap {{DT_BOOL}}}}
| valign="top" | Whether blocking vehicles trying to change lanes may be swapped; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Whether blocking vehicles trying to change lanes may be swapped.
 +
|-
 +
| valign="top" | {{Option|--routing-algorithm {{DT_STR}}}}
 +
| valign="top" | dijkstra
 +
| valign="top" | Select among routing algorithms ['dijkstra', 'astar']
 +
|-
 +
| valign="top" | {{Option|--routeDist.maxsize {{DT_INT}}}}
 +
| valign="top" |
 +
| valign="top" | Restrict the maximum size of route distributions
 
|-
 
|-
 
|}
 
|}
  
 
===Report===
 
===Report===
All applications of the '''SUMO'''-suite handle most of the reporting options the same way. These options are discussed at [[Basics/Using the Command Line Applications#Reporting Options]].
 
 
 
{| cellspacing="0" border="1" width="90%" align="center"
 
{| cellspacing="0" border="1" width="90%" align="center"
 
|-
 
|-
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Option
 +
! style="background:#ddffdd;" valign="top" | Default Value
 
! style="background:#ddffdd;" valign="top" | Description
 
! style="background:#ddffdd;" valign="top" | Description
 
|-
 
|-
| valign="top" | {{Option|-v {{DT_BOOL}}}}<br/>
+
| valign="top" | {{Option|-v {{DT_BOOL}}}}<br/> {{Option|--verbose {{DT_BOOL}}}}
{{Option|--verbose {{DT_BOOL}}}}
+
| valign="top" | false
| valign="top" | Switches to verbose output; ''default: '''false'''''
+
| valign="top" | Switches to verbose output
 +
|-
 +
| valign="top" | {{Option|-p {{DT_BOOL}}}}<br/> {{Option|--print-options {{DT_BOOL}}}}
 +
| valign="top" | false
 +
| valign="top" | Prints option values before processing
 
|-
 
|-
| valign="top" | {{Option|-p {{DT_BOOL}}}}<br/>{{Option|--print-options {{DT_BOOL}}}}
+
| valign="top" | {{Option|-? {{DT_BOOL}}}}<br/> {{Option|--help {{DT_BOOL}}}}
| valign="top" | Prints option values before processing; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Prints this screen
 
|-
 
|-
| valign="top" | {{Option|-? {{DT_BOOL}}}}<br/>{{Option|--help {{DT_BOOL}}}}
+
| valign="top" | {{Option|-V {{DT_BOOL}}}}<br/> {{Option|--version {{DT_BOOL}}}}
| valign="top" | Prints this screen; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Prints the current version
 
|-
 
|-
| valign="top" | {{Option|-V {{DT_BOOL}}}}<br/>{{Option|--version {{DT_BOOL}}}}
+
| valign="top" | {{Option|-X {{DT_BOOL}}}}<br/> {{Option|--xml-validation {{DT_BOOL}}}}
| valign="top" | Prints the current version; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Enable schema validation of XML inputs
 
|-
 
|-
| valign="top" | {{Option|-W {{DT_BOOL}}}}<br/>{{Option|--no-warnings {{DT_BOOL}}}}
+
| valign="top" | {{Option|-W {{DT_BOOL}}}}<br/> {{Option|--no-warnings {{DT_BOOL}}}}
| valign="top" | Disables output of warnings; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Disables output of warnings
 
|-
 
|-
| valign="top" | {{Option|-l {{DT_FILE}}}}<br/>{{Option|--log {{DT_FILE}}}}
+
| valign="top" | {{Option|-l {{DT_FILE}}}}<br/> {{Option|--log {{DT_FILE}}}}
| valign="top" | Writes all messages to FILE
+
| valign="top" |
 +
| valign="top" | Writes all messages to FILE (implies verbose)
 
|-
 
|-
 
| valign="top" | {{Option|--message-log {{DT_FILE}}}}
 
| valign="top" | {{Option|--message-log {{DT_FILE}}}}
| valign="top" | Writes all non-error messages to FILE
+
| valign="top" |
 +
| valign="top" | Writes all non-error messages to FILE (implies verbose)
 
|-
 
|-
 
| valign="top" | {{Option|--error-log {{DT_FILE}}}}
 
| valign="top" | {{Option|--error-log {{DT_FILE}}}}
 +
| valign="top" |
 
| valign="top" | Writes all warnings and errors to FILE
 
| valign="top" | Writes all warnings and errors to FILE
 
|-
 
|-
 
| valign="top" | {{Option|--no-duration-log {{DT_BOOL}}}}
 
| valign="top" | {{Option|--no-duration-log {{DT_BOOL}}}}
| valign="top" | Disable performance reports for individual simulation steps; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Disable performance reports for individual simulation steps
 
|-
 
|-
 
| valign="top" | {{Option|--no-step-log {{DT_BOOL}}}}
 
| valign="top" | {{Option|--no-step-log {{DT_BOOL}}}}
| valign="top" | Disable console output of current simulation step; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Disable console output of current simulation step
 
|-
 
|-
 
|}
 
|}
Line 206: Line 283:
 
{| cellspacing="0" border="1" width="90%" align="center"
 
{| cellspacing="0" border="1" width="90%" align="center"
 
|-
 
|-
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Option
 +
! style="background:#ddffdd;" valign="top" | Default Value
 
! style="background:#ddffdd;" valign="top" | Description
 
! style="background:#ddffdd;" valign="top" | Description
 
|-
 
|-
 
| valign="top" | {{Option|--device.rerouting.probability {{DT_FLOAT}}}}
 
| valign="top" | {{Option|--device.rerouting.probability {{DT_FLOAT}}}}
| valign="top" | The probability for a vehicle to have a routing device; ''default: '''0'''''
+
| valign="top" | 0
 +
| valign="top" | The probability for a vehicle to have a routing device
 
|-
 
|-
 
| valign="top" | {{Option|--device.rerouting.explicit {{DT_STR}}}}
 
| valign="top" | {{Option|--device.rerouting.explicit {{DT_STR}}}}
 +
| valign="top" |
 
| valign="top" | Assign a device to named vehicles
 
| valign="top" | Assign a device to named vehicles
 
|-
 
|-
 
| valign="top" | {{Option|--device.rerouting.deterministic {{DT_BOOL}}}}
 
| valign="top" | {{Option|--device.rerouting.deterministic {{DT_BOOL}}}}
| valign="top" | The devices are set deterministic using a fraction of 1000; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | The devices are set deterministic using a fraction of 1000
 
|-
 
|-
 
| valign="top" | {{Option|--device.rerouting.period {{DT_TIME}}}}
 
| valign="top" | {{Option|--device.rerouting.period {{DT_TIME}}}}
| valign="top" | The period with which the vehicle shall be rerouted; ''default: '''0'''''
+
| valign="top" | 0
 +
| valign="top" | The period with which the vehicle shall be rerouted
 
|-
 
|-
 
| valign="top" | {{Option|--device.rerouting.pre-period {{DT_TIME}}}}
 
| valign="top" | {{Option|--device.rerouting.pre-period {{DT_TIME}}}}
| valign="top" | The rerouting period before depart; ''default: '''0'''''
+
| valign="top" | 0
 +
| valign="top" | The rerouting period before depart
 
|-
 
|-
 
| valign="top" | {{Option|--device.rerouting.adaptation-weight {{DT_FLOAT}}}}
 
| valign="top" | {{Option|--device.rerouting.adaptation-weight {{DT_FLOAT}}}}
| valign="top" | The weight of prior edge weights; ''default: '''0.5'''''
+
| valign="top" | 0.5
 +
| valign="top" | The weight of prior edge weights.
 
|-
 
|-
 
| valign="top" | {{Option|--device.rerouting.adaptation-interval {{DT_TIME}}}}
 
| valign="top" | {{Option|--device.rerouting.adaptation-interval {{DT_TIME}}}}
| valign="top" | The interval for updating the edge weights; ''default: '''1'''''
+
| valign="top" | 1
 +
| valign="top" | The interval for updating the edge weights.
 
|-
 
|-
 
| valign="top" | {{Option|--device.rerouting.with-taz {{DT_BOOL}}}}
 
| valign="top" | {{Option|--device.rerouting.with-taz {{DT_BOOL}}}}
| valign="top" | Use zones (districts) as routing end points; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Use zones (districts) as routing end points
 +
|-
 +
| valign="top" | {{Option|--device.rerouting.init-with-loaded-weights {{DT_BOOL}}}}
 +
| valign="top" | false
 +
| valign="top" | Use given weight files for initializing edge weights
 
|-
 
|-
 
|}
 
|}
Line 238: Line 328:
 
{| cellspacing="0" border="1" width="90%" align="center"
 
{| cellspacing="0" border="1" width="90%" align="center"
 
|-
 
|-
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Option
 +
! style="background:#ddffdd;" valign="top" | Default Value
 
! style="background:#ddffdd;" valign="top" | Description
 
! style="background:#ddffdd;" valign="top" | Description
 
|-
 
|-
 
| valign="top" | {{Option|--device.hbefa.probability {{DT_FLOAT}}}}
 
| valign="top" | {{Option|--device.hbefa.probability {{DT_FLOAT}}}}
| valign="top" | The probability for a vehicle to have an emission logging device; ''default: '''0'''''
+
| valign="top" | 0
 +
| valign="top" | The probability for a vehicle to have an emission logging device
 
|-
 
|-
 
| valign="top" | {{Option|--device.hbefa.explicit {{DT_STR}}}}
 
| valign="top" | {{Option|--device.hbefa.explicit {{DT_STR}}}}
 +
| valign="top" |
 
| valign="top" | Assign a device to named vehicles
 
| valign="top" | Assign a device to named vehicles
 
|-
 
|-
 
| valign="top" | {{Option|--device.hbefa.deterministic {{DT_BOOL}}}}
 
| valign="top" | {{Option|--device.hbefa.deterministic {{DT_BOOL}}}}
| valign="top" | The devices are set deterministic using a fraction of 1000; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | The devices are set deterministic using a fraction of 1000
 
|-
 
|-
 
|}
 
|}
Line 255: Line 349:
 
{| cellspacing="0" border="1" width="90%" align="center"
 
{| cellspacing="0" border="1" width="90%" align="center"
 
|-
 
|-
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Option
 +
! style="background:#ddffdd;" valign="top" | Default Value
 
! style="background:#ddffdd;" valign="top" | Description
 
! style="background:#ddffdd;" valign="top" | Description
 
|-
 
|-
 
| valign="top" | {{Option|--remote-port {{DT_INT}}}}
 
| valign="top" | {{Option|--remote-port {{DT_INT}}}}
| valign="top" | Enables TraCI Server if set; ''default: '''0'''''
+
| valign="top" | 0
 +
| valign="top" | Enables TraCI Server if set
 
|-
 
|-
 
|}
 
|}
  
 
===Random Number===
 
===Random Number===
All applications of the '''SUMO'''-suite handle randomisation options the same way. These options are discussed at [[Basics/Using the Command Line Applications#Random Number Options]].
 
 
 
{| cellspacing="0" border="1" width="90%" align="center"
 
{| cellspacing="0" border="1" width="90%" align="center"
 
|-
 
|-
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Option
 +
! style="background:#ddffdd;" valign="top" | Default Value
 
! style="background:#ddffdd;" valign="top" | Description
 
! style="background:#ddffdd;" valign="top" | Description
 
|-
 
|-
 
| valign="top" | {{Option|--random {{DT_BOOL}}}}
 
| valign="top" | {{Option|--random {{DT_BOOL}}}}
| valign="top" | Initialises the random number generator with the current system time; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Initialises the random number generator with the current system time
 
|-
 
|-
 
| valign="top" | {{Option|--seed {{DT_INT}}}}
 
| valign="top" | {{Option|--seed {{DT_INT}}}}
| valign="top" | Initialises the random number generator with the given value; ''default: '''23423'''''
+
| valign="top" | 23423
 +
| valign="top" | Initialises the random number generator with the given value
 
|-
 
|-
 
|}
 
|}
Line 282: Line 379:
 
{| cellspacing="0" border="1" width="90%" align="center"
 
{| cellspacing="0" border="1" width="90%" align="center"
 
|-
 
|-
! style="background:#ddffdd;" valign="top" width="350" | Option
+
! style="background:#ddffdd;" valign="top" | Option
 +
! style="background:#ddffdd;" valign="top" | Default Value
 
! style="background:#ddffdd;" valign="top" | Description
 
! style="background:#ddffdd;" valign="top" | Description
 
|-
 
|-
 
| valign="top" | {{Option|--gui-settings-file {{DT_FILE}}}}
 
| valign="top" | {{Option|--gui-settings-file {{DT_FILE}}}}
 +
| valign="top" |
 
| valign="top" | Load visualisation settings from FILE
 
| valign="top" | Load visualisation settings from FILE
 
|-
 
|-
| valign="top" | {{Option|-Q {{DT_BOOL}}}}<br/>{{Option|--quit-on-end {{DT_BOOL}}}}
+
| valign="top" | {{Option|-Q {{DT_BOOL}}}}<br/> {{Option|--quit-on-end {{DT_BOOL}}}}
| valign="top" | Quits the GUI when the simulation stops; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Quits the GUI when the simulation stops
 
|-
 
|-
| valign="top" | {{Option|-G {{DT_BOOL}}}}<br/>{{Option|--game {{DT_BOOL}}}}
+
| valign="top" | {{Option|-G {{DT_BOOL}}}}<br/> {{Option|--game {{DT_BOOL}}}}
| valign="top" | Start the GUI in gaming mode; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Start the GUI in gaming mode
 
|-
 
|-
| valign="top" | {{Option|-S {{DT_BOOL}}}}<br/>{{Option|--start {{DT_BOOL}}}}
+
| valign="top" | {{Option|-S {{DT_BOOL}}}}<br/> {{Option|--start {{DT_BOOL}}}}
| valign="top" | Start the simulation after loading; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Start the simulation after loading
 
|-
 
|-
| valign="top" | {{Option|-T {{DT_BOOL}}}}<br/>{{Option|--disable-textures {{DT_BOOL}}}}
+
| valign="top" | {{Option|-T {{DT_BOOL}}}}<br/> {{Option|--disable-textures {{DT_BOOL}}}}
| valign="top" | Do not load background pictures; ''default: '''false'''''
+
| valign="top" | false
 +
| valign="top" | Do not load background pictures
 
|-
 
|-
 
|}
 
|}

Revision as of 20:53, 3 December 2012

From 30.000 feet

SUMO is the simulation itself; it is a microscopic, space-continuous, and time-discrete traffic flow simulation.

Purpose: Simulates a defined scenario
System: portable (Linux/Windows is tested); runs on command line
Input (mandatory):
A) a road network as generated via NETCONVERT or NETGENERATE, see Building Networks
B) a set of routes (as generated by DUAROUTER, JTRROUTER, DFROUTER, or ACTIVITYGEN, see also Definition of Vehicles, Vehicle Types, and Routes)
Input (optional): Additional definitions of traffic lights, variable speed signs, output detectors etc.
Output: SUMO allows to generate a wide set of outputs; visualization is done using SUMO-GUI
Programming Language: c++

Usage Description

Options

You may use a XML schema definition file for setting up a SUMO configuration: sumoConfiguration.xsd.

Configuration

Option Default Value Description
-c <FILE>
--configuration-file <FILE>
Loads the named config on startup
--save-configuration <FILE> Saves current configuration into FILE
--save-template <FILE> Saves a configuration template (empty) into FILE
--save-schema <FILE> Saves the configuration schema into FILE
--save-commented <BOOL> false Adds comments to saved template, configuration, or schema

Input

Option Default Value Description
-n <FILE>
--net-file <FILE>
Load road network description from FILE
-r <FILE>
--route-files <FILE>
Load routes descriptions from FILE(s)
-a <FILE>
--additional-files <FILE>
Load further descriptions from FILE(s)
-w <FILE>
--weight-files <FILE>
Load edge/lane weights for online rerouting from FILE
-x <STRING>
--weight-attribute <STRING>
traveltime Name of the xml attribute which gives the edge weight

Output

Option Default Value Description
--netstate-dump <FILE> Save complete network states into FILE
--netstate-dump.empty-edges <BOOL> false Write also empty edges completely when dumping
--emission-output <FILE> Save the emission values of each vehicle
--fcd-output <FILE> Save the Floating Car Data
--fcd-output.geo <BOOL> false Save the Floating Car Data using geo-coordinates (lon/lat)
--full-output <FILE> Save a lot of information for each timestep (very redundant)
--queue-output <FILE> Save the vehicle queues at the junctions (experimental)
--vtk-output <FILE> Save complete vehicle positions in VTK Format (usage: /file/out will produce /file/out_$NR$.vtp files)
--summary-output <FILE> Save aggregated vehicle departure info into FILE
--tripinfo-output <FILE> Save single vehicle trip info into FILE
--vehroute-output <FILE> Save single vehicle route info into FILE
--vehroute-output.exit-times <BOOL> false Write the exit times for all edges
--vehroute-output.last-route <BOOL> false Write the last route only
--vehroute-output.sorted <BOOL> false Sorts the output by departure time
--vehroute-output.write-unfinished <BOOL> false Write vehroute output for vehicles which have not arrived at simulation end

Time

Option Default Value Description
-b <TIME>
--begin <TIME>
0 Defines the begin time; The simulation starts at this time
-e <TIME>
--end <TIME>
-1 Defines the end time; The simulation ends at this time
--step-length <TIME> 1 Defines the step duration

Processing

Option Default Value Description
-s <TIME>
--route-steps <TIME>
200 Load routes for the next number of seconds ahead
--no-internal-links <BOOL> false Disable (junction) internal links
--ignore-accidents <BOOL> false Do not check whether accidents occure more deeply
--ignore-route-errors <BOOL> false Do not check whether routes are connected
--max-num-vehicles <INT> -1 Quit simulation if this number of vehicles is exceeded
--incremental-dua-step <INT> Perform the simulation as a step in incremental DUA
--incremental-dua-base <INT> 10 Base value for incremental DUA
--scale <FLOAT> Scale demand by the given factor (0..1)
--time-to-teleport <TIME> 300 Specify how long a vehicle may wait until being teleported, defaults to 300, non-positive values disable teleporting
--max-depart-delay <TIME> -1 How long vehicles wait for departure before being skipped, defaults to -1 which means vehicles are never skipped
--sloppy-insert <BOOL> false Whether insertion on an edge shall not be repeated in same step once failed.
--lanechange.allow-swap <BOOL> false Whether blocking vehicles trying to change lanes may be swapped.
--routing-algorithm <STRING> dijkstra Select among routing algorithms ['dijkstra', 'astar']
--routeDist.maxsize <INT> Restrict the maximum size of route distributions

Report

Option Default Value Description
-v <BOOL>
--verbose <BOOL>
false Switches to verbose output
-p <BOOL>
--print-options <BOOL>
false Prints option values before processing
-? <BOOL>
--help <BOOL>
false Prints this screen
-V <BOOL>
--version <BOOL>
false Prints the current version
-X <BOOL>
--xml-validation <BOOL>
false Enable schema validation of XML inputs
-W <BOOL>
--no-warnings <BOOL>
false Disables output of warnings
-l <FILE>
--log <FILE>
Writes all messages to FILE (implies verbose)
--message-log <FILE> Writes all non-error messages to FILE (implies verbose)
--error-log <FILE> Writes all warnings and errors to FILE
--no-duration-log <BOOL> false Disable performance reports for individual simulation steps
--no-step-log <BOOL> false Disable console output of current simulation step

Routing

Option Default Value Description
--device.rerouting.probability <FLOAT> 0 The probability for a vehicle to have a routing device
--device.rerouting.explicit <STRING> Assign a device to named vehicles
--device.rerouting.deterministic <BOOL> false The devices are set deterministic using a fraction of 1000
--device.rerouting.period <TIME> 0 The period with which the vehicle shall be rerouted
--device.rerouting.pre-period <TIME> 0 The rerouting period before depart
--device.rerouting.adaptation-weight <FLOAT> 0.5 The weight of prior edge weights.
--device.rerouting.adaptation-interval <TIME> 1 The interval for updating the edge weights.
--device.rerouting.with-taz <BOOL> false Use zones (districts) as routing end points
--device.rerouting.init-with-loaded-weights <BOOL> false Use given weight files for initializing edge weights

Emissions

Option Default Value Description
--device.hbefa.probability <FLOAT> 0 The probability for a vehicle to have an emission logging device
--device.hbefa.explicit <STRING> Assign a device to named vehicles
--device.hbefa.deterministic <BOOL> false The devices are set deterministic using a fraction of 1000

Traci Server

Option Default Value Description
--remote-port <INT> 0 Enables TraCI Server if set

Random Number

Option Default Value Description
--random <BOOL> false Initialises the random number generator with the current system time
--seed <INT> 23423 Initialises the random number generator with the given value

Gui Only

Option Default Value Description
--gui-settings-file <FILE> Load visualisation settings from FILE
-Q <BOOL>
--quit-on-end <BOOL>
false Quits the GUI when the simulation stops
-G <BOOL>
--game <BOOL>
false Start the GUI in gaming mode
-S <BOOL>
--start <BOOL>
false Start the simulation after loading
-T <BOOL>
--disable-textures <BOOL>
false Do not load background pictures

Subtopics