Demand/Routing by Turn Probabilities

The JTRROUTER is a routing applications which uses flows and turning percentages at junctions as input. The following parameter must be supplied:
 * the network to route the vehicles through,
 * the description of the turning ratios for the junctions (defaults may be used for this, too), and
 * the descriptions of the flows.

A call may look like this:

jtrrouter --flow-files= --turn-ratio-files= --net-file= \ --output-file=MySUMORoutes.rou.xml --begin  --end 

Turn Definitions
To describe the turn definitions, one has to build a further file. Within this file, for each interval and each edge the list of percentages to use a certain follower has to be given. An example:      

... any other edges ...

... some further intervals ...

The snippet defines that vehicles coming at the end of edge " myEdge0 " within the time interval between 0s and 3600s will choose the edge " myEdge1 " with a probability of 20%, " myEdge2 " with a probability of 70% and " myEdge3 " with a probability of 10%. Another possibility to save time on preparing the description is to use default values. The parameter can be used to describe the default ratios that will be used for all junctions for all time steps.  is a list of doubles, separated by a ','. To achieve the same behaviour as in the example above, use. The values will be applied to an edge's following edges beginning at the right edge (20%) and ending at the leftmost edge (10%). As the number of possible followers changes for different edges, the values are resampled for edges which number of following edges differs from the number of given turning probability defaults. Given a vehicle using an edge that has two followers would use the follower to the right with 55% probability, the one to the left with 45%.

Sinks Definitions
A vehicle leaves the network as soon as it comes to a sink edge. As not all networks have sink edges defined, one can support a list of edges to be declared as sinks using. You may also add your sink definitions to a turn-file (XML only): ... some further turning definitions as above ... [ ]*"/> ... further sink definitions ...

Flow Definitions
The definitions of the flow is the same as for the DUAROUTER with just a single difference: as it is not known where the vehicle will leave the network as the route it uses is randomly computed, the destination parameter has no meaning for jtr-routing and so may be left off.

Specific Options
As theoretically a route may get infinitely long when a vehicle is forced to take always the same direction, it is possible to limit the route's size using max-edges-factor. This factor, multiplied with the number of the used network's edges is the maximum number of edges a route may have. With the default of 2.0, a route may contain twice as many edges as the network has. Any route longer than this size will be marked as invalid. We assume that for each network this number has to be chosen again.

Further notes

 * For automatic, yet artificial, turn definitions generation based on the network structure, see turn-def tools.