🚦 Traffic-Signal Timing

Four signalised intersections along a main road share a common cycle. For each we pick the green split between the main and side streets, and an offset for when its cycle starts. Webster's formula gives the delay per approach from the split and saturation; coordinating the offsets to the travel time between intersections lets a platoon ride a green wave. Split too far toward the main street and side streets starve, and vice versa. Score is total vehicle-delay, to minimise. 8-D problem.

Algorithm

Total delay—
Timings tried0
Best so far—

Leaderboard

AlgorithmDelayEvals
— no runs yet —

What's happening

The JS objective is a line-for-line port of example_applications/traffic_signal and agrees to floating-point tolerance. For each intersection the bar shows the share of green given to the main street; the marker below shows the offset around the 90-second cycle.