next up previous
Next: Random City Up: CiudadSim Examples Previous: Nguyen Dupuis Net

Normal Random City

$net={\rm TrafficExample}('Normal\;Random\;City',nn,mna,var,nd,nf)$
The parameters have the following meaning:
nn: number of nodes
mna: mean value of the exterior degree of each node (numbers of leaving arcs)
var: variance of the exterior degree of each node
nd: number of OD-pairs (origin-destination)
nf: model chosen for the computation of the travel time

This example generates randomly the data for a net. For each node an exterior degree is chosen randomly with a normal distribution of mean mna and variance var, then the successors are chosen without repetition. The value of nf indicates the formula chosen for the computation of the travel time, by default it is 6. This way of generating randomly the net if very much slower than for the example 'Random City'. If we execute the following sentence:

$ net={\rm TrafficExample}('Normal\;Random\;City',3,3,1,2);$
it is generated a network with 3 nodes,2 OD-pairs and for each node the number of leaving arcs is normally distributed with mean 3 and variance 1. In the following picture it is shown the obtained net before and after the traffic assignment. ShowNet(net);

Figure 5: Non-assigned and Assigned Normal Random City Net
\includegraphics[width=60mm]{nrnet} \includegraphics[width=60mm]{nrnetassig}

Link performance function: \(c=t0+ca F+ma F^{2}.\)


next up previous
Next: Random City Up: CiudadSim Examples Previous: Nguyen Dupuis Net
2002-09-12