Current scenarioBalanced · fixed arrivals
Hit Run route to watch the balanced, fixed-arrival baseline. Introduce a delay or load a guided scenario to explore bunching.
A small delay can grow into a convoy
A bus that falls behind meets a larger queue at its next stop. Boarding takes longer, so it falls further behind. The bus following it finds fewer passengers, spends less time stopped, and catches up. The result is buses arriving together, followed by a long gap.
The default experiment uses fixed arrivals and ride lengths, with seed 42, and no imposed delay. Start with this balanced baseline, then introduce a hold or try a random-demand scenario. Watch the gaps, queue waits, and total passenger time as delays compound.
Holding a following bus can rebuild space ahead of it. Sending a delayed bus express can save service time, but some riders must transfer. Better spacing can come with passenger costs, so compare both.
The Scenario Library at the bottom offers a balanced baseline, a deliberate delay, and recovery experiments with holds and express service. You can also import and share your own lessons.
Scenario library
Load a reproducible experiment, then run or step through its scheduled events.
Programmed behavior of the selected scenario
Live route
00:00Backstep pauses playback. A new intervention here replaces later manual interventions; preset dispatch continues.
Passenger & service outcomes
Whole-stop averages avoid partial passenger groups; individual observations remain visible. Bus axes are shared. Fixed axis limits let you compare windows; values above a fixed limit are clipped. Time is in simulation minutes. Dwell charts use three-stop and route-length averages; the controls below set passenger averages.
Total system time per completed passenger
Initial queue wait + boarding + riding (including holds) + transfer waits + final debarking. Measured from first arrival at a stop to final drop-off.
Dispatch history
No interventions yet. Try a 60-second hold on Bus 1.
How to read this experiment
Holding the following bus lets the gap ahead reopen. It often gives passengers shorter trips overall, though riders who were on time must sit through a delay they didn’t cause. Skipping stops lets the late bus catch up without holding the others, but a rider left at the stop can lose far more time waiting for the next bus. The stop-skipping analysis compares both the average journey and the cost to those riders.
Compare interventions by resetting with the same setup and seed. Headway variation measures spatial gaps around the loop; it is not a direct passenger outcome. Completed-passenger averages exclude people still waiting or riding, whose counts remain visible. Compare current queue waits, passed-over passengers and passenger time accrued as well: a policy can appear faster if its worst-affected riders have not finished.
Model & metric definitions
Defaults are unlimited capacity, overtaking allowed and no fixed overhead. Change these assumptions in Route setup. All buses start evenly spaced in motion on an empty route. Boarding and debarking are sequential; arrivals continue during both. Fixed arrivals are synchronized across stops; stochastic arrivals have independent exponential intervals. Random rides are uniform integers from 1 to min(2 × configured length − 1, stops − 1).
Dwell is measured on departure and includes service and holds. Wait is sampled at each boarding and is cumulative for that passenger, including previous transfer waits; a transferred rider appears again when reboarding. Boarding time counts as time in the system, but not queue wait. Total system time includes the initial queue wait: final debarking time minus first arrival time. The mean system time card averages that same quantity over all completed passengers. Raw observations update per passenger. In whole-stop mode, chart averages publish at bus departure and include complete stop groups until at least N passenger observations are covered; unfinished groups are excluded from the average. Each-passenger mode uses exactly the last N observations. Dwell readouts show the previous served stop and averages over the last three served visits and the last route-length count of served visits. During startup they use the visits available. Skipped stops add neither an observation nor a zero. The solid dwell line uses three visits; the dashed line uses the configured route’s stop count. Averages may use earlier points outside the displayed range. Graphs show the last 60 simulated minutes; CSV contains the whole run. Overlapping dots share screen pixels; statistics and CSV use every observation. To keep browser memory manageable, a run pauses at seven simulated days, 250,000 passenger arrivals, or 250,000 served stops across all buses. Events sharing the final timestamp finish together. Export or review the data, then reset to start another run.
Oldest and mean current queue wait measure this queue episode (now minus queue entry), including people waiting after transfers. Passed-over counts one waiting passenger per restricted bus visit, including a bus passing without stopping; one person can be counted repeatedly. The unique count counts each affected person once. Passenger time accrued is the sum of completed trip times plus elapsed time since first arrival for everyone unfinished, shown in passenger-minutes. Compare at the same clock time with matching demand; it is not a mean or a prediction of final trip times.
Announced patterns never force transfers. Existing drop-offs are protected, even at a planned skipped stop; those exception stops admit no new riders. New riders board only if their first upcoming destination visit is served by the plan. Recovery ending means ahead ≤ 110% and behind ≥ 90% of target at a stop arrival. Every new restriction has a time cap measured from announcement. Restore normal service cancels restrictions but keeps holds. An automatic policy evaluates both gaps from one snapshot, acts at most once per bus visit, and keeps one unrestricted bus. Manual restrictions can cover every bus, so watch queues and restore normal service if needed.