Demand/Dynamic User Assignment

generated on 2015-09-02 00:02:07.708752 from the wiki page for Demand/Dynamic_User_Assignment for SUMO 0.24.0

The tool <SUMO_HOME>/tools/assign/duaIterate.py can be used to compute the (approximate) dynamic user equilibrium.

Caution:
This script will require copious amounts of disk space
python duaIterate.py -n <network-file> -t <trip-file> -l <nr-of-iterations>

duaIterate.py supports many of the same options as SUMO. Any options not listed when calling duaIterate.py --help can be passed to SUMO by adding sumo--long-option-name arg after the regular options (i.e. sumo--step-length 0.5.

General behavior

This script tries to calculate a user equilibrium, that is, it tries to find a route for each vehicle (each trip from the trip-file above) such that each vehicle cannot reduce its travel cost (usually the travel time) by using a different route. It does so iteratively (hence the name) by first routing the vehicles in a network with default edge costs (usually the travel time if driving with maximum speed) then simulating the calculated routes resulting in "real" edge costs which are fed back into the router for calculating new routes and so forth. The number of iterations is fixed by a parameter see above. In order to ensure convergence there are different methods employed to calculate the route choice probability from the route cost (so the vehicle does not always choose the "cheapest" route). In general, new routes will be added by the router to the route set of each vehicle in each iteration (at least if none of the present routes is the "cheapest") and may be chosen according to the route choice mechanisms described below.

The two methods which are implemented are called Gawron and Logit (reference needed!!!) in the following. The input for each of the methods is a weight or cost function w on the edges of the net, coming from the simulation or default costs (in the first step or for edges which have not been traveled yet), and a set of routes R where each route r has an old cost c_r and an old probability p_r (from the last iteration) and needs a new cost c_r' and a new probability p_r'.

Logit

The Logit mechanism applies a fixed formula to each route to calculate the new probability. It ignores old costs and old probabilities and takes the route cost directly as the sum of the edge costs from the last simulation.

c_r' = \sum_{e\in r}w(e)

The probabilities are calculated from an exponential function with parameter \theta scaled by the sum over all route values:

p_r' = \frac{\exp(\theta c_r')}{\sum_{s\in R}\exp(\theta c_s')}

Gawron

Parameters

oneShot-assignment

An alternative to the iterative user assignment above is incremental assignment. This happens automatically when using <trip> input directly in SUMO instead of <vehicle>s with pre-defined routes. In this case each vehicle will compute a fastest-path computation at the time of departure which prevents all vehicles from driving blindly into the same jam and works pretty well empirically (for larger scenarios). See also Tools/Assign#one-shot.py.


This page was last modified on 19 February 2015, at 09:03.