Multi-agent simulation of traffic density using the Nagel-Schreckenberg-Model
What?
An implementation of 2 types of multi-agent traffic simulation, the Nagel-Schreckenberg model, and an expanded version with 2 lanes. Details on the design (in Dutch) can be found in the documents folder.
Why?
University course.
Who?
Sjoerd Beetsma, Quincey Mok, Maarten de Jeu.
Where?
- The simulation code can be found in trafficsim/lib/sim.
- A 'main' script that shows a single simulation through a GUI can be found in the root folder.
- A Jupyter Notebook that creates graphs and stats about the simulation through batch excecution is also in the root folder.
- A more detailed document on the research etc. can be found (in Dutch) in the documents folder.
How
Using at least Python 3.9:
- Run main.py to view a single simulation through a GUI. Don't forget to enter a number in the terminal to select a number of lanes.
- If you'd like to gain some insight in the process of batch-executing the simulation, and some graphs about the results, have al ook experiment.ipynb.
- If you want to have a look at the research itself (in Dutch), have a look in the documenten folder.