All insights

Route optimization versus live dispatch for fleets

What route optimization and live dispatch each do, the vehicle routing problem behind planning tools, when a planning tool earns its place, and how the plan feeds the dispatch day.

Operations 11 minutes

Key points

  • Route optimization is a planning step done before the vehicles leave; live dispatch is an operating step done while they drive. One produces a sequence, the other keeps the sequence honest.
  • The underlying vehicle routing problem is NP-hard, so planning tools use heuristics that return good routes quickly rather than a proven best one.
  • A planning tool pays for itself where the number of possible sequences is large: many stops per vehicle, hard time windows, vehicle capacities or several depots.
  • Fleets with a few fixed stops, repeated rounds or a dispatcher who knows the customers often need a good sequence, not a solver.
  • A plan starts to age when the first vehicle leaves. Live positions, arrival estimates and proof at each stop are what tell a dispatcher that it has.

Route optimization and live dispatch answer different questions at different times. Route optimization works before the shift: given the stops, the vehicles, the capacities and the time windows, it proposes which vehicle takes which stops and in what order. Live dispatch works during the shift: it holds the day's jobs, follows each vehicle against them, and shows who is late, who has arrived and what was delivered. A fleet with many stops per vehicle can use both, with the plan becoming the ordered stops of the day's jobs.

Route optimization and live dispatch compared
AspectRoute optimizationLive dispatch
WhenBefore the shiftDuring the shift
QuestionWhich vehicle takes which stops, and in what orderWhere is each vehicle against its stops, and what was delivered
InputStops, windows, capacities, vehicles, travel timesJobs, live positions, stop radii, proof
OutputA sequence of stops per vehicleArrival, estimates, late stops, proof and a record
WeaknessAges as soon as the day departs from the planDoes not search for a better sequence
FitsMany stops, hard windows, capacitiesAny fleet that runs jobs to customers

What route optimization solves

The question behind a planning tool was posed in 1959 as the truck dispatching problem: how to route a fleet of vehicles from a depot to a set of customers at the least cost (Dantzig and Ramser). It has been studied since under the name vehicle routing problem (VRP).

A VRP gives a solver the locations, the distances or travel times between them, the vehicles and their limits. The solver returns one route per vehicle. With one vehicle it reduces to the travelling salesperson problem (OR-Tools). Real fleets add constraints, and each one narrows or complicates the answer.

The constraints that make routing hard

Plain routing minimises distance. Four constraints turn it into the problem fleets have:

  • Capacity: each vehicle can carry only so much, so the stops it takes must add up to less than that (capacitated VRP).
  • Time windows: each stop must be visited within an interval, which forces order and sometimes a wait (VRP with time windows).
  • Pickup and delivery: goods move from one stop to another, so a pickup must come before its delivery on the same vehicle (pickups and deliveries).
  • Several depots, driver shifts and vehicle types change which vehicle may take which stop.

Each constraint added removes sequences the planner may use, which is why a planned day with tight windows has little slack and why a late first stop spreads down the rest.

Why planning tools use heuristics

The VRP is NP-hard: it generalises the travelling salesperson problem, so the effort to prove a best answer grows very quickly with the number of stops. Solvers therefore use heuristics and metaheuristics, such as guided local search, tabu search and simulated annealing (routing options), that return a good plan in seconds and do not prove it the best.

For a fleet this has two consequences. A plan is a good sequence, not the only one, so two tools can produce different routes of similar cost. And the plan is only as good as its inputs: the travel times, the service time at each stop and the windows the customers actually hold.

What changes after the plan is made

A plan is a forecast. It starts to age when the first vehicle leaves, for three reasons:

  • Traffic, weather and road closures make the travel time on the day differ from the one planned.
  • A customer is not ready, a delivery takes longer, a vehicle breaks down or an urgent job arrives.
  • A driver takes a different road, and the order in which stops are visited changes without a decision.

The research on dynamic vehicle routing treats exactly this: the review by Pillac and colleagues introduces a degree of dynamism, the share of information that arrives after the vehicles have left.

What live dispatch does in PING

PING runs the operating side of the day, from the job to the proof:

  • A job holds its stops in order. Each stop is a pickup or a drop with a location, an arrival radius, an optional time window and a contact mobile.
  • A job is placed on a vehicle by the dispatcher, who orders the stops. Jobs with no vehicle wait in a list, and each vehicle of a department has its own lane for the day.
  • The driver receives the job on WhatsApp as a link listing the stops and the proof each requires, with no app and no login.
  • A stop is marked arrived when the vehicle enters its radius, and the estimate to the next stop comes from the vehicle's live position.
  • A stop shows at risk when the arrival falls within 20 minutes of its window closing, and late after it.
  • Each stop's contact receives a tracking link with the estimate and the number of stops ahead, valid for 7 days, and is told when the vehicle is within 10 minutes.
  • The driver completes each stop with a photo, a signature or a one-time code, or records it as failed or skipped, and the proof is stored with its time against the stop.

Rounds that repeat, such as a delivery route or a school run, are saved with their stops and created as a job on the day or at a set time. Live tracking and the geofences of depots and sites give the places the stops are chosen from.

When a route planning tool fits

A planning tool fits when the problem is large or tightly constrained:

  • Many stops per vehicle and many vehicles: the number of possible sequences is far beyond what a dispatcher can compare.
  • Hard windows and capacities: a sequence that ignores either fails at the customer's door.
  • Several depots or a changing mix of customers each day, so no round repeats.
  • A distance or time target that matters: fuel and driver hours saved over many vehicles add up.

Where the stops are few, fixed and well known, the gain from a solver is small and the dispatcher's order is usually a good one. Courier and van fleets with dozens of drops a day are the clearest case for a planner; see the van and courier playbook.

How a plan and live dispatch work together

The two are used in sequence, with the plan as the input and the day's data as the feedback:

  • Plan before the shift with the planning tool: vehicles, stops, windows, capacities.
  • Enter each vehicle's ordered stops as a job, with the customer's window and contact on each stop.
  • Run the shift in the dispatch view: positions, estimates and at-risk and late stops show where the plan has failed.
  • Act on exceptions as they show: call the driver, tell the customer, and record a stop as failed or skipped when it cannot be made.
  • Review at the end of the day: stops completed, failed and skipped, and arrival against window, as input to the next plan.

The real-time tracking post covers what a live map shows and how stale a position can be, and geofencing covers the sites a plan visits.

How to judge a plan against the day

Measure the day against the plan with five figures:

  • Arrival against window for each stop, as a share of stops on time.
  • Planned order against visited order, and the stops that moved.
  • Failed and skipped stops by reason, which a better window or contact would have avoided.
  • Time standing at each stop, which feeds the service time the next plan assumes.
  • Distance and time driven per vehicle against the plan.

A check for the dispatch day

  • Each job lists its stops in the order the driver will visit them.
  • Every stop has a location, a contact mobile and, where the customer sets one, a time window.
  • The arrival radius of each stop suits the place: a small one for a street address, a larger one for a yard.
  • Every vehicle that will run the day has a job or an explicit reason it has none.
  • The dispatcher can see each vehicle's estimated arrival at its next stop, not only its position.
  • A rule names who acts when a stop shows late: who calls the driver and who tells the customer.
  • Each stop requires the proof the customer will accept: photo, signature, one-time code or a combination.
  • At the end of the day, planned order and actual order are compared, and the differences feed tomorrow's plan.

Questions

What is the difference between route optimization and dispatch?

Route optimization chooses the vehicle and the order of stops before the day begins, to cut distance or time within capacities and time windows. Live dispatch assigns and follows jobs while the vehicles are out: it shows positions, arrival estimates, late stops and proof. The first produces a plan, the second runs it.

Does a fleet tracking system plan routes automatically?

A tracking platform shows where vehicles are; whether it also proposes routes depends on the product. PING does the live side: a dispatcher places each job on a vehicle, orders its stops, and PING follows the vehicle against them with estimates, arrival and proof. Where a plan is made in a separate tool, its stop order is entered as the job.

When is a route planning tool worth using?

When the number of possible sequences is too large to judge by eye: dozens of stops per vehicle, several vehicles with different capacities, narrow customer time windows or more than one depot. With a handful of stops and a dispatcher who knows the area, a planning tool adds little.

Can a planned route be followed in live dispatch?

Yes. A plan is a list of stops per vehicle in order. Entering each list as a job gives the dispatch day the same sequence, and from then on positions and arrival estimates show how the day compares with the plan. Until a job is dispatched its stops can be reordered freely; after that the dispatcher handles exceptions and adjusts a stop's window and time on site.

How is the arrival time at a stop estimated?

From the vehicle's live position to the next stop. PING compares that estimate with the stop's time window: an arrival expected within 20 minutes of the window closing is shown as at risk, and one after it as late. The contact at the stop receives a tracking link with the estimate and the stops ahead.

What is a time window in vehicle routing?

A time window is the interval in which a customer accepts the visit. In routing, a vehicle may arrive early and wait, but may not arrive after the window closes. Narrow windows reduce the sequences a planner can use and make late arrivals visible at once.

Does the driver need an app to receive a dispatch job?

No. The driver receives the job on WhatsApp as a link listing the stops in order and the proof each needs, with no app to install and no login. Stops are marked arrived when the vehicle enters the stop's radius, and the driver completes each one with its proof.

For the steps of creating a job, sending the driver's link and collecting proof, see the guide to dispatching jobs with proof of delivery. To see how a dispatch day would run on your vehicles, contact us.

Sources

  1. Dantzig and Ramser: The Truck Dispatching Problem, Management Science, 1959
  2. Google OR-Tools: Vehicle routing problem (single vehicle, capacity constraints)
  3. Google OR-Tools: VRP with time windows
  4. Pillac, Gendreau, Guéret, Medaglia: A review of dynamic vehicle routing problems (EJOR, 2013)
  5. Google OR-Tools: Pickups and deliveries
  6. Google OR-Tools: Routing options (search strategies)