Self-organizing cellular automaton traffic flow model
(wiki article).
Project was developed in Python 3.6 using basic libraries.
See requirements file for details.
To install all the libraries with preinstalled Python and pip cd to project's folder and run command in Terminal:
pip install -r requirements.txt
Basic examples are shown in Jupyter Notebook. Running simulations in terminal:
python main.py -fcols 50 -frows 50 -d 40 -i 100 -p 1
where:
-fcols: number of fields' columns
-frows: number of fields' rows
-d: density
-i: number of iterations
-p: save plot flag
- add possibility to init various direction cars (+ to move left / up);
- pass args to plot_matrix function to save plots with normal names.
- Nazarii Nyzhnyk - Initial work - nazariinyzhnyk
This project is licensed under the MIT License - see the LICENSE file for details