This page was automatically generated by NetLogo 4.0.4. Questions, problems? Contact feedback@ccl.northwestern.edu.

The applet requires Java 1.4.1 or higher. It will not run on Windows 95 or Mac OS 8 or 9. Mac users must have OS X 10.2.6 or higher and use a browser that supports Java 1.4. (Safari works, IE does not. Mac OS X comes with Safari. Open Safari and set it as your default web browser under Safari/Preferences/General.) On other operating systems, you may obtain the latest Java plugin from Sun's Java site.


powered by NetLogo

view/download model file: trafficCA.nlogo

WHAT IS IT?

This is model of city traffic based on elementary cellular automata (ECA).
More info at http://turing.iimas.unam.mx/~cgg/
Read preprint at http://arxiv.org/abs/0907.1925


HOW TO USE IT

Click on "Setup" and then on "Go". The controls above these buttons should be set before "Setup", the others can be changed anytime.

GRID-SIZE-X and GRID-SIZE-Y determine how many streets will be with each orientation (vertical and horizontal). Use GRID-SIZE-X=0 for freeway model (Rule 184), i.e. no intersections

FOUR-DIRS? If true, streets flow in four directions (alternating). If false, only south and eastboud.

DENSITY. Determines probabilistically how many cells are occupied by vehicles.

%VERTICAL Determines probabilistically the percentage of cars on vertical streets (complementary to horizontal ones)

METHOD. Choose between following methods:
"Marching": all lights march in step, either vertical or horizontal
"Green-wave": Lights are synchronized so that vehicels flowing eastbound or southbound would not need to stop (at a flow speed of 1)

The next parameter affects the marching or green wave methods

P Duration of a green light, i.e. half a period (T/2). To avoid stopping of vehicels, set this equal to half the length of the street or equal to a factor of half the length of the street.

The following parameters affect the self-organizing method. See paper for a description.

SENSOR-DISTANCE (d)

TOLERANCE (n)

MINGREEN (t_min)

KEEP-PLATOON (m)

CUT-PLATOON (r)

CUT-AHEAD (e)


THINGS TO NOTICE

The Velocity plot shows the percentage of vehicles moving, i.e. if v=1, no vehicle stops, and if v=0, all vehicles are stopped.

The Flux plot shows the velocity multiplied by the density. In the rule 184 model of highway traffic (i.e. no intersections, grid-size-x = 0), the maximum possible flux is $J=0.5$, at a density $\rho=0.5$. This is because vehicles need at least one cell between them to move. If there are less vehicles, the flux will be lower, since there is no movement in free space. If there are more vehicles, then the flux will also be lower, since stopped vehicles do not move.


THINGS TO TRY

The green wave method works fine for only two directions (set FOUR-DIRS? to false). However, when vehicles flow in four directions (and there are more than two streets in any orientation), the performance is relatively bad, because vehicles going opposite to the green wave face anti-correlated lights.

The self-organizing mehtod can achieve free flow in four directions for low densities.

At which densities each method reaches a gridlock (flow=0)?

See how performance varies as more streets are added (for different methods).


CREDITS AND REFERENCES

Based on: Wilensky, U. (1998). NetLogo CA 1D Elementary model. http://ccl.northwestern.edu/netlogo/models/CA1DElementary. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.

About ECA:
http://mathworld.wolfram.com/ElementaryCellularAutomaton.html
http://en.wikipedia.org/wiki/Cellular_automata



Carlos Gershenson's homepage