Home Download Help Resources Extensions FAQ References Contact Us Donate Models: Library Community Modeling Commons User Manuals: Web Printable Chinese Czech Japanese |
## NetLogo User Community Models(back to the NetLogo User Community Models) ## Freeway Traffic CAby Iain Weaver (Submitted: 01/28/2010)
This is a replication of Kai Nagel and Michael Schreckenberg's model of traffic flow, as presented in "A cellular automaton model for freeway traffic".
Initially, patches are occupied by stationary cars with a density determined by the density slider.
The order of actions is as follows:
The patches are arranged linearly, but represent a ring. Cars leaving on the right return on the left.
Setup occupies a proportion 'density' of patches with a car with an initial velocity of 0.
The plot "Positions" places a point for each site occupied by a car over the last 1,000 ticks. Points are shaded from red to black for stationary and high speed cars, allowing fine structure to be seen in jams with many cars.
"Flow" shows the total flow rate along the road over the last 1,000 ticks given by the mean speed of cars multiplied by the density. The red line shows the time average of the flow.
Try setting p to 0.5, and changing the density over a range of values. What different behavior can you see in the plots?
For a low density such as 0.1, try varying p during the animation. Can you see any sudden changes in the plots?
Try increasing the world width to 500, or 1,000 patches.
Density < 0.1
Density ~ 0.1
Density > 0.1
Altering p during the animation has a very similar effect to altering the density. Close to the critical density ~0.1, the system is very sensitive. Increasing p from 0 to 0.5 shows gradual decrease in flow rate. Further increase shows a sudden decrease, and phase transition to congested-flow.
The model scales appropriately with world-width. Very long roads help remove the effects of the periodic boundary, and allow us to see very interest fractal structures in the model traffic jams with the "Positions" plot.
Kai Nagel and Michael Schreckenberg, "A cellular automaton model for freeway traffic"
Any suggestions of questions? e-mail: isw3@le.ac.uk |

(back to the NetLogo User Community Models)