This is a GitHub repository for a traffic simulation project. The project aims to simulate and analyze traffic patterns using a customizable simulation environment.
The Traffic Simulation project provides a platform to simulate and study various aspects of traffic behavior. It allows users to create custom scenarios, modify parameters, and observe how different factors affect traffic flow, congestion, and other related metrics.
-
Scenario Creation: Users can create custom traffic scenarios by defining road networks, intersections, traffic signals, and vehicle types.
-
Realistic Simulation: The simulation engine provides a realistic representation of traffic behavior, taking into account factors such as vehicle acceleration, deceleration, lane changing, and interaction with traffic signals.
-
Visualization: The simulation results are visualized using interactive graphs and maps, enabling users to analyze traffic patterns, congestion levels, and other metrics.
-
Metrics and Analysis: The project includes built-in tools to measure and analyze various traffic-related metrics, including traffic flow, average speed, travel time, and vehicle density.
To use this project, follow these steps:
- Clone the repository:
git clone https://github.com/GarettPF/Traffic-Simulation.git- Navigate to the project directory:
cd Traffic-Simulation- Install the required dependencies:
pip install -r requirements.txt- Run the simulation:
python simulation.pyOnce the simulation is running, you can interact with it using the command-line interface or the provided graphical user interface (GUI). The GUI allows you to create scenarios, modify parameters, and observe the simulation results in real-time.
To create a new scenario, follow these steps:
-
Launch the simulation.
-
Use the GUI or the command-line interface to define the road network, intersections, traffic signals, and vehicle types.
-
Start the simulation and observe the traffic behavior.
-
Analyze the results using the provided visualization tools.
This project is licensed under the MIT License. See the LICENSE file for more information.