An open API service indexing awesome lists of open source software.

https://github.com/dakostu/cellularfreeway

Simulation of Nagel and Schreckenberg's cellular automaton model for freeway traffic simulation
https://github.com/dakostu/cellularfreeway

cellular-automata cellular-automation cellular-automaton cellular-automatons cellular-network freeway simulation traffic traffic-simulation trafficsim

Last synced: about 1 month ago
JSON representation

Simulation of Nagel and Schreckenberg's cellular automaton model for freeway traffic simulation

Awesome Lists containing this project

README

        

# CellularFreeway

![preview pic](preview.png)

This program is an attempt at programming a cellular automaton model for freeway traffic as laid out by Kai Nagel and Michael Schreckenberg [in their abstract](http://www.pd.infn.it/~agarfa/didattica/met_comp/lab_20140108/1992_origca.pdf).

This simulation can be run indefinitely or up to a certain amount of steps with an optional launch parameter.

## How to launch CellularFreeway

Use the Main class to launch the program. You need to enter at least four numerical values as command line arguments to successfully start the simulation. The source code itself can also be compiled using the Java 1.8 SDK.

Launching the program in a command-line interface, for example, would look like this:

"./Java main [length of street in cells] [amount of cars on street] [decimal probability number] [time interval between simulation steps] [optional: amount of steps]"