Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skelmis/traffic-management-simulator
A former assignment where given a base for a traffic light, create and find the best solution for traffic management.
https://github.com/skelmis/traffic-management-simulator
Last synced: about 1 month ago
JSON representation
A former assignment where given a base for a traffic light, create and find the best solution for traffic management.
- Host: GitHub
- URL: https://github.com/skelmis/traffic-management-simulator
- Owner: Skelmis
- Created: 2020-08-05T04:07:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-07T04:10:56.000Z (about 4 years ago)
- Last Synced: 2024-10-16T15:04:01.672Z (3 months ago)
- Language: Python
- Size: 4.88 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Traffic-Management-Simulator
A project devoted to fun times and creating a program to handle the efficient & safe control of traffic lights at a given intersection.
---
We were given a baseline set of code, see [here](https://github.com/Skelmis/Traffic-Management-Simulator/tree/master/Baseline%20Traffic%20code). Then, based off of that we were asked to create the best simulator we could, that was both as efficient as possible and also conformed to the [nzta road rules](https://www.nzta.govt.nz/roadcode).
Some cool stats about our implementation:
> Required Knowledge
> Concept 1 being lights just rotate through clockwise changing lights
> Concept 3 being based on both lane length & wait times
Using a set traffic amount of 25 new cars everytime the intersection was clear we found the following.
Concept 1 had a total cars count of: `210 after 5 minutes`
Concept 3 had a total cars count of: `285 after 5 minutes`
This means Concept 3 had 75 more cars then Concept 1 are running for the same timeframe
This means Concept 3 is 135% more efficient then Concept 1Our final design implementation is 135% more efficient then all comparisions & the efficiency increases over time as it slowly gets further and further ahead of prior implementations.
After running for about 15 minutes:
[![GRAPHIC](https://i.imgur.com/za2FIxM.png)]()After running for around 101 hours:
[![GRAPHIC](https://i.imgur.com/U7kqvSf.png)]()After 141 hours:
[![GRAPHIC](https://i.imgur.com/WDYJNkx.png)]()