Optimal timing would require knowing the destinations of all vehicles to be routed through an intersection, i.e. vehicle may be going to gas station just before a light on the corner; some do not even know their destinations or it changes in transit.