Dispatch & Routing
Route Optimization: How It Works, With a Worked Example for a 40-Stop Day
Route optimization takes your stops, vans and delivery rules and finds the lowest-cost sequence. See how it works, with forty stops across three vans.

What Problem Is Route Optimization Solving?
Route optimization works by taking your stops, your vehicles and the rules each stop imposes, then searching for the sequence and assignment that costs the least. Every route optimizer solves a version of the vehicle routing problem: given a depot, a set of stops, a set of vehicles and a cost (distance, time or money), find routes that visit every stop once at the lowest total cost. With one vehicle and no rules, that is the travelling salesman problem, which has no efficient exact solution. With forty stops the number of possible orderings is far too large for any computer to check one by one. Real fleets add rules on top: time windows at each stop, vehicle capacity, driver shifts, a stop that needs a liftgate, a customer who won't take deliveries before ten. Each rule removes orderings but makes each remaining one harder to check.
The software doesn't try every ordering. It builds a good solution quickly and then improves it, so you get an answer in seconds instead of years.
How Does the Optimizer Reach an Answer?
Step one is the travel matrix: the drive time between every pair of stops, calculated on a road network with traffic for that time of day. Step two is construction, a fast heuristic such as inserting each stop wherever it adds the least time, or sweeping stops by angle from the depot. Step three is improvement. The optimizer keeps swapping stops between routes and reversing segments within a route, and it keeps any change that lowers cost without breaking a rule. Methods called local search, tabu search or simulated annealing stop it from getting stuck. It quits when improvement stalls or a time limit runs out. Nobody can prove the result optimal, but it usually beats a plan a dispatcher builds by hand, and it is repeatable.

A 40-Stop, 3-Van Example
Take a Montreal distributor with forty deliveries and three vans. Two stops have a 7-to-9 a.m. window, one stop on the South Shore needs a liftgate (only one van has it), and drivers work eight-hour shifts. The dispatcher builds a plan by hand around the same neighbourhoods as last week. It runs 412 km and finishes at 5:20 p.m., and one van does the South Shore at the end of the day after crossing the bridge twice. The optimizer sends the liftgate van to the South Shore stop first thing, puts both early-window stops on the same route, and balances the rest by drive time instead of neighbourhood. Its plan runs 348 km, finishes at 4:10 p.m. and misses no window. On one ordinary day, that saves 15% of the distance and about three hours of paid driver time across the three vans.
How Does GPS Route Optimization Use Live Data?
A plan is only as good as its inputs, and telematics supplies them. Geofence data gives you the actual service time at each stop, replacing the guessed fifteen minutes. Actual travel times on your roads at your hours replace the map's averages. During the day, each van's live position lets the optimizer re-sequence when a customer cancels or a truck gets stuck on the Champlain Bridge. Fleets that connect the optimizer to their GPS tracking platform get plans built on their own operation, and that is often the gap between an optimizer that saves little and one that saves a lot.
The Example, Measured Both Ways
Here is the Montreal example as the dispatcher would compare the two plans, using the figures from that day.
| Hand-built plan | Optimized plan | |
|---|---|---|
| Total distance | 412 km | 348 km |
| Finish time | 5:20 p.m. | 4:10 p.m. |
| Bridge crossings to the South Shore | 2 | 1 |
| Early-window stops (7 to 9) | On two vans, one arriving 8:55 | Paired on one van, arriving 7:20 and 7:50 |
| Liftgate stop | Last stop of the day | First stop, on the liftgate van |
| Stops per van | 16, 14, 10 | 14, 13, 13 |
| Paid driver hours | 24.6 | 21.5 |
Frequently asked questions
How does route optimization software work?
The software builds a travel-time matrix between every pair of stops, then constructs routes with a fast heuristic, such as inserting each stop where it adds the least time. After that it keeps swapping and reordering stops, accepting only changes that respect time windows, vehicle capacity and driver shift rules.
Does route optimization find the perfect route?
No. The routing problem is computationally hard, so optimizers find a near-optimal solution in seconds instead of a provably optimal one in years. A near-optimal plan usually beats a route a dispatcher builds by hand, and the software returns the same result each time you give it the same inputs.
What constraints can route optimization handle?
Route optimization handles time windows, vehicle capacity, driver shifts and breaks, and vehicle-specific requirements such as a liftgate. It also handles priority stops and depot returns. Each rule narrows the possible orderings, and the optimizer checks every change against all of them before it accepts the change.
How much does route optimization save?
Savings depend on how routes were built before. In a worked example of forty stops and three vans, the optimizer cut distance by 15% against the hand-built plan. Savings run higher where dispatchers built routes by habit, such as repeating last week's neighbourhoods, instead of from data. Connecting the optimizer to GPS tracking lets it plan with your real service and travel times.
Why connect route optimization to GPS tracking?
GPS tracking supplies the real service time at each stop and real travel times on your roads, replacing the guesses and map averages an optimizer would otherwise use. It also gives each vehicle's live position, so the optimizer can re-sequence stops during the day when a customer cancels or a truck gets stuck.
Related solutions & products
Continue reading
- Dispatch & Routing overview →
- Route Optimization Software for Small Business: Twelve Stops, Two Vans, One Morning →
- Multi-Stop Route Planner Software for Last-Mile Delivery: Route Optimization Explained →
- What Is Dispatch Software? How It Works and Who Uses It →
- Dispatch Software for Security Guard and Patrol Companies →
- More in Dispatch & Routing →
Get a free quote
What are you looking for?