Simulation/VehicleInsertion

generated on 2016-11-01 01:15:33.010065 from the wiki page for Simulation/VehicleInsertion for SUMO 0.28.0


Loading

Vehicles are either loaded from XML inputs or added at runtime via TraCI. When loading from XML, not all vehicles are loaded at once. Instead, vehicles are loaded in chunks, the size of which can be configured with the option --route-steps. This is done to conserve memory when performing long simulations.

Once vehicles are loaded they can be accessed and manipulated via TraCI (to some degree). Using the functions 'move to' or 'move to XY' they can even be forcefully inserted into the network.

Insertion (Departure)

In order for a vehicle to be inserted into the road network, some necessary constraints must be fulfilled:

  • The vehicle (from its rear to its front position + minGap) must not intersect with other vehicles (including their minGap
  • The vehicle must be at a safe distance to any leader vehicles according to its carFollowModel
  • Any follower vehicles must be at a safe distance according to their carFollowModel
  • The vehicle must be able to brake for any upcoming non-prioritized intersections along its route
  • The vehicle must be able to brake for any scheduled stops along its route

If a vehicle cannot be inserted due to any of the above reasons it's insertion is delayed. This departDelay is recorded in the tripinfo-output and can also be inspected in SUMO-GUI via the vehicle parameter dialog. If the option --max-depart-delay <TIME> is set, vehicles are discarded if they could not be inserted after the specified time.

The precise nature of insertion in regard to position, speed and depart time depend on many parameters as well as on the current state of the road network.

Global options that affect Departure

  • --random-depart-offset <TIME>: randomly delays departure time for all vehicles
  • --max-num-vehicles <INT>: limits the total amount of vehicles which may cause delayed insertion
  • --max-depart-delay <TIME>: removes vehicles from the insertion queue after a set amount of time
  • --eager-insert <BOOL>: tries to insert all vehicles that are insertion-delayed on each edge. By default, insertion on an edge stops after the first failure in each time step

Miscellaneous


This page was last modified on 12 October 2016, at 09:48.