Mission Labs / ML-004 · GREEN WAVE
Mission 004The Overloaded City
Move more people. Never trade away safety.
A crossroads that worked fine for years now jams every morning and every evening, in different directions.
Technical briefing
A town crossroads runs a fixed-time traffic light. Demand has grown and shifted: the morning peak loads one road, the evening peak the other, and more people now cross on foot.
Share the green time, schedule plans for different times of day and decide when pedestrians get their phase. Every plan is audited: the safety-violation count must stay at zero, always.
Engineering objectiveKeep queues and waits within each level's limits under changing demand, with zero safety violations.
Systems in play
- Simulation OS · Traffic-light junction timing (junction-timing)
No new physics: every number comes from an existing, tested Tactiverge model. These are simplified educational models, not engineering-grade tools.
Five levels, five different questions
- Level 1 · ExplorerCause and effect: how does sharing green time change the queues?Cut the average car wait to 40 s or less with zero safety violations.
- Level 2 · BuilderRules and debugging: a fast plan that breaks the safety rules.Zero safety violations, average car wait at most 45 s and no queue longer than 20 cars.
- Level 3 · InnovatorIntegration to a specification: one plan for changing demand.With one plan for both peaks: zero violations, average wait at most 50 s in each peak, and no queue longer than 25 cars.
- Level 4 · Systems EngineerDynamics and trade-offs: time-of-day plans and pedestrians.Zero violations; average car wait at most 30 s in each peak; average pedestrian wait at most 40 s; no queue longer than 16 cars.
- Level 5 · Research EngineerEvidence under uncertainty: does the plan hold up on unlucky days?Zero violations on every day; mean + 2 SD of the average car wait at most 30 s across the periods; mean pedestrian wait at most 27 s.
Mission console
Choose a level, change the design, run seeded trials and read the automatic feedback. Your design and notes stay on this device unless you save them to your Journal.
More than one way to win
These approaches all have honest costs. They describe ideas, not answers: the numbers are yours to find, and the model checks them.
Split by demand
Give each road a share of the green roughly in proportion to its arrivals.
Gains
- Simple to explain
- Balances queue growth
Costs
- Only right for the demand it was tuned for
Useful at levels 1, 2, 3, 4, 5
Balanced split
Give both roads similar greens so neither is starved, whichever way demand swings.
Gains
- Copes with demand in either direction
- One plan to maintain
Costs
- Wastes green on the quieter road at each peak
- Longer waits than a plan tuned for one peak
Useful at levels 1, 3, 5
Long efficient cycle
Use long greens so less of each hour is lost to start-ups and clearances.
Gains
- Higher capacity for heavy demand
Costs
- Long reds and long pedestrian waits
Useful at levels 1, 2, 3
Time-of-day plans
Store a separate split for each period of the day and switch between them on schedule.
Gains
- Each peak gets the split it needs
Costs
- Wrong if demand drifts from the timetable
- More plans to maintain and audit
Useful at levels 4, 5
Pedestrian phase on demand
Run the walk phase only when the button has been pressed.
Gains
- No time wasted on empty crossings
Costs
- Someone who just missed it waits a whole cycle
- Relies on the button working
Useful at levels 4, 5
Lessons that help
- Timed sequences: the traffic lightLevel 2, week 23 · A traffic light as a timed sequence.
- A state machine in twelve linesLevel 2, week 23 · The signal plan is a state machine.
- and, or, not: safety interlocks in codeLevel 2, week 5 · Safety interlocks as conditions that must always hold.
- Stacks and queues: who goes next?Level 3, week 4 · Queues: who goes next, and how they grow.
- Specifying a state machineLevel 4, week 24 · Specifying states and transitions before tuning times.
- You can't have it all: constraints and trade-offsLevel 1, week 4 · Safety is a constraint; waiting time is a trade-off.
Assumptions and limits
Knowing what the model leaves out is part of the mission.
- One lane per approach, no turning traffic, no pre-emption in this bench.
- Fixed 2 s headway and 2 s start-up lost time; nobody leaves on amber.
- 15-minute run; arrivals from a seeded random generator.
- One lane per approach, no turning traffic, fixed 2 s headways and Bernoulli arrivals.
- Time-of-day plans are tested one period at a time; transitions between plans are not modelled.
- The safety audit checks signal logic only; real junction safety also depends on geometry, visibility and driver behaviour.
Go deeper
Content status: technically checked (automated tests run every level's starting design, which must fail, and at least two different approaches, which must pass). Written with AI assistance; not yet reviewed by an educator. Simulation only: never connected to physical hardware.