The purpose of the above simulation is to find out suitable time for yellow light.
The maximum speed and maximum acceleration for each car is randomly selected in the simulation, so the number of cars passing the juntcton is not the same even with all the same parameters.
The red light duration is set to be twice the green light duration in the above simulation.
It is not necessary that read light duration= green light duration+ yellow light duration.