Skip to content

Simulation and visualization of multilane traffic jams using a cellular automaton (created by Valentin Bauer, Dario Giovannini, Julia Putz and Philip Vonderlind)

Notifications You must be signed in to change notification settings

va-li/Traffic-Jam-Simulation

 
 

Repository files navigation

Traffic Jam Simulation

Running the simulation

After activating the virtual envrionment run

python main.py

and a browser window should open at localhost:8001 that looks like this:

User Interface screenshot

User Interface

The user interface you see above is divided into two sections:

  • The left section contains the simulation parameters and controls
  • The center section contains the simulation visualization and metrics

As a start, click the blue "Simulate" button on the bottom left. The simulation will be calculated for all time steps and you will shortly see the stree visualization and metrics update. Replay the simulation, by clicking the "▶" button below the visualization.

Installation

Requirements

  • Python 3.8 or higher
  • Python virtual environment

Setup (bash on Linux)

  1. Clone the repository

    git clone https://github.com/pvonderlind/ModSim_Exercise_Group04.git
  2. Create a virtual environment

    python3 -m venv venv
  3. Activate the virtual environment

    source venv/bin/activate
  4. Install the requirements

    pip install -r requirements.txt

Documentation

The report can be found in Report_Group4_TrafficJam.pdf and the source is available in Overleaf.

About

Simulation and visualization of multilane traffic jams using a cellular automaton (created by Valentin Bauer, Dario Giovannini, Julia Putz and Philip Vonderlind)

Resources

Stars

Watchers

Forks

Languages

  • Jupyter Notebook 96.2%
  • Python 3.8%