The Simulation of Traffic Patterns and Optimizing Traffic Lights by Gregg Tabot

Download The Simulation of Traffic Patterns and Optimizing Traffic Lights by Gregg Tabot

Post on 28-Jan-2016

212 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • The Simulation of Traffic Patterns and Optimizing Traffic Lightsby Gregg Tabot

  • What is traffic?The movement of motorized vehicles, unmotorized vehicles and pedestrians on roads.

  • My Basic SimulationTwo road intersectionTwo laned roadsNo turning lanesMotorized vehicles only (no pedestrians)

  • Three Methods of Traffic Lights Optimization

    Manual Method

    Timed Method

    Frequency Formula Method

  • Manual MethodMake sure that the auto_switch? option is OffPress the East-West Switch button and the traffic lights for the cars moving east or west switch from red to green or vice versaSimilar function with the North-South Switch button

  • Manual Method

  • Manual MethodBased solely on user inputIf the user presses switch, the lights switch

  • Manual MethodAdvantagesGood for situational trafficDisadvantagesBack up the entire systemHuman errorIts manual!

  • Timed MethodMake sure that the auto-switch? option is OnMake sure that the formula? option is OffSet the amount of time a switch stays green by adjusting the light_timer slider (measured in units)

  • Timed Method

  • Timed MethodCompares the amount of time a light has been green with the light timer option setIf the amount of time a light has been green is greater than or equal to the light timer option the lights switch

  • Timed MethodAdvantagesNot manualDisadvantagesDoesnt account for busier roadsIf theres only one car, it may have to wait a long time

  • Frequency Formula MethodMake sure that the auto-switch? option is OnMake sure that the formula? option is OnAdjust the max_wait slider (measured in different units)

  • Frequency Formula Method

  • Frequency Formula MethodCompares flowing traffic frequency multiplied by a timer with the stopped traffic frequency multiplied by the quantity of the timer subtracted from maximum wait time.If the first quantity is greater than or equal to the second quantity the light switches.

  • Frequency Formula MethodAdvantagesGood for situational trafficTakes into account heavily trafficated roadsKeeps traffic flowingDisadvantagesCould take a while if you were on a less populated road

  • Bugs/Errors/Fixes for LaterSometimes the program will display an error randomly before beginningCars do not slow to a stop, they just instantaneously stopThere is no wait time in between traffic light switchesCar crashes are not yet implemented

  • The End