Traffic-toolbox Function

Regular - Generation of regular city traffic network data

Calling Sequence

net=Regular(hs,vs,nd)

Parameters

Description

Generates a NetList consisting in a regular city whose graph is a hsxvs grid For the link travel time functions, the data is the same for all links and given by t0=ca=ma,ba=1. The lpf_model is 3. It is possible to generated 4 different types of Regular City depending on parameter nd:

- nd=[] -> The net has all possible O-D pairs all of them with demand equal to 1

- nd=1 -> There is only one O-D pair joining the most distant nodes. Demand's value equal to 1.

- nd in (0,1) -> The parameter nd represent the density of O-D pairs present in the net. Demands value equal to 1

- nd>1 -> There are [nd] random demands generated. Demands value in the interval [0,15].

EXAMPLES

See Also