Dispatch lab

Which dispatch rule wins, and at what cost

The same simulated jobs run through four dispatch rules so their trade-offs show side by side: on-time delivery, empty miles, driver utilisation, turnaround and margin. Change the fleet, its size and the demand to see where each rule holds up.

Simulated · 20 operating days per rule · seed 7 · the same jobs for every rule

Fleet

28 km/h average · 6+8 min at stops · 9 h shift · 120 min SLA · 2–12 km per parcel route

Demand

468 jobs a day on average. The rule matters most when demand outruns the fleet.

Rule comparison

Mean of 20 simulated days with its 95% confidence interval. Where intervals overlap, the difference may be noise.

The trade-off

On-time delivery against empty miles; bubble size is margin per vehicle-day

How each rule chooses

Every minute, idle vehicles and waiting jobs are paired greedily by the rule

Shortest distance
Pairs the vehicle and job with the fewest total kilometres (empty to the pickup plus loaded to the drop).
Highest margin
Pairs the vehicle and job with the best price minus distance and driver-time cost.
Least deadhead
Pairs the vehicle and job with the fewest empty kilometres to the pickup.
Earliest deadline · reference
Reference rule: serves the job whose SLA deadline is soonest, from the nearest vehicle.

A vehicle takes a job only if it can deliver it and drive back to the depot before its shift ends. One load at a time and no booked return loads, so long-haul trucks run about half their kilometres empty. Model and assumptions: docs/DISPATCH_LAB.md.