60 likes | 72 Views
Explore an innovative traffic light simulation to enhance intersection efficiency at various traffic densities. Minimize wait times, optimize green light usage, and visualize efficiency variables graphically. Utilizing Java, the simulation follows road rules, updating speed and space dynamically. An advanced light algorithm incorporates traffic data for optimal cycle length and green light ratios. Evaluate results to refine the system for better traffic flow.
E N D
Lynn Jepsen Traffic Light Simulation
Introduction and Background • Try and find the most efficient way to move cars through an intersection at different traffic densities • Want to see waiting time and queue length go down • Green light usage needs to go up • Many traffic simulations out there, but none that I have seen with a learning light
What it looks like • Simulation that obeys most “rules of the road” • Graph of efficiency variables
Simulation • Cars on each lane take up a certain number of spaces and have a certain speed at each instant • Speed and space is update every .1 sec along with graphics • Speed up when object in front is getting farther away but with a max. accel. • Slow down for red and most yellow lights • Use Java to show graphics
Light Algorithm • Uses previous data (traffic density, efficiency variables, cycle length, and ratio) • Picks best cycle length (length of one cycle in intersection) and ratio(ratio of green light time in each direction) from previous data that has the same traffic density
Results and Conclusions • The simulation looks realistic • Light algorithm does cause slightly fewer backups, but could be improved further • Before light algorithm - >