Question: USE MATLAB: 3 . Traffic Flow Simulation ( traffic . m ) Before running the programs for each part, increase the simulation time from 8
USE MATLAB:
Traffic Flow Simulation trafficmBefore running the programs for each part, increase the simulation time from to minutes by doubling the number of intervals ie changing n to na Simulation shows that for a probability of car arrival in any one second, a second green and second red cycle ie p GREEN RED appears to lead to traffic congestion. Run this case for the minute total time to see if the congestion gets worse or eases.b Investigate the flow for lighter traffic cases where p and You may want to extend the time intervals further to see if a steady state condition is reached.c For p change the cycle to have green and red for equal time ie set GREEN and RED For each run, only submit the printout of the last to redgreen intervalsnot all intervals Discuss your results. For part d run the program guislidertrafficsimulationm d Instead of setting green and red lights to a fixed interval, for the dynamic approach the green interval is extended only if the traffic builds up This approach may be more practical if there is concern about perpendicular traffic density at the intersection. This change will effectively add another second green light interval when there are at least MIN cars at the end of the current green interval. The slider in the GUI program controls the value of MIN. The display will still show the status after each second interval. Investigate this approach for the case in a Try to relieve the congestion without making MIN smaller than necessary. Assume that congestion means more than about cars are waiting during the last few light cycles. Submit the resulting slider and graph. Extra credit if you can come up with any other novel approaches to relieving the congestion.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
