Rethinking Route Optimization

What is route quality?

How do you assess the quality of a route optimization algorithm? The old way is to look at total travel time. But in the real world, it turns out there's a lot more to a good routing solution — and seasoned delivery planners and drivers can tell a good one at a glance.

Which of these two route plans would you choose?

Plan B is mathematically shorter. But most experienced dispatchers still choose Plan A. Why?

  • Plan B has several drivers visiting the same neighborhood; Plan A has clean clusters so that drivers work within clear territorial boundaries
  • Plan A's routes don't criss-cross or double back on themselves

You could also say that Plan A just looks better — which turns out to be a really good way to judge the quality of a route. In academic-speak: "enhancing visual attractiveness in a routing plan has proven to be an effective way to facilitate practical implementation and positive collaboration."

What makes a route plan visually attractive? Mainly, routes that are compact and don't cross or overlap each other. In other words, they're not spaghetti routes.

Here's an example: a route that diverts one driver off a highway when another driver is already serving the same neighbourhood:

That single stop requires decelerating, exiting onto a minor road, navigating local traffic, hunting for parking to make the drop, then merging back onto the highway. Traditional route optimization solvers don't see the costs here, but they're real — and instantly obvious to experienced drivers.

There's another dimension of route planning that affects driver management, which can be summed up as route fairness: Do all drivers serve a roughly similar number of stops, and are their shift lengths equal?

So this benchmark looks at three high-level measures of route quality:

"Drivers have to get off the road, do two stops, then keep driving — they hate it!"

Joe Wemert, BeCool Couriers

"In real-life operations, the quality of a route is not exclusively defined by its theoretical length, duration, or cost. Experienced delivery drivers have tacit knowledge about the complex operational environment in which they serve customers on a daily basis."

Amazon Last-Mile Routing Challenge

Why route quality matters

Messy routes have business consequences. When planned routes don't make sense, drivers throw the plans out and drive their own routes. Or they stick to the planned route, but hate it — and say so.

Drivers are brand representatives, so driver happiness is top of mind for most of the businesses we work with. We've seen dispatchers spend hours manually tweaking routes until they make sense in the real world.

Benchmark results

We compared the routing solutions from Routific and three leading open source solvers: VROOM, PyVRP and Google OR-Tools.

We also tested jsprit, an open-source Java routing library. But it can't run problems above roughly 400 stops, and more than half the problems in this dataset are larger than that.

We tested each solver using 264 real-world delivery scenarios sourced from Routific users – in each case, one day's worth of actual deliveries from a real business (addresses were anonymized). Some scenarios had fewer than 50 stops, but most had more than 200 and 56 had more than 1,000 stops.

We included routing problems with multiple vehicles, time windows, and capacity constraints:

Problems by type

TypeProblems
One vehicle (TSP)12
Multiple vehicles (VRP)46
Capacity limits (CVRP)120
Time windows (VRPTW)63
Capacity and time windows23

Problems by size

StopsProblems
Under 5037
50–20084
Over 200143
Over 1,00056
Result 1

Spaghetti routes

Spaghetti routes send drivers into each other's territory. For example, two drivers might find themselves serving the same neighbourhood on the same day.

The benchmark identified spaghetti routes by looking at the number of crossings between routes: How often one driver's path crossed another's in the same day's plan, averaged across every problem we tested. A lower score indicates less overlap between drivers.

The result: Routific's route plans had about 7× fewer crossings than the best open-source solver, and the fewest crossings on 92% of problems.

The gap widens with scale

The importance of route quality really starts to show up at problem sizes larger than 500 stops, where Routific's performance vs open source algorithms begins to diverge significantly. It's on these large problems that the operational cost of poor routing is highest.

Mean crossings per route plan1

SolverCrossings
Routific4.7
VROOM34.8
PyVRP33.4
OR-Tools50.4
Result 2

Route fairness

Route fairness measures how workloads and work hours are spread across the driver pool. When routes are not well-balanced, some drivers finish early while others run late, creating overtime costs and morale problems.

To measure it, we looked at two things:

  • The difference between each driver's stop count, and the average stop count for all drivers across the whole plan. A perfectly balanced route, where all drivers have exactly the same number of stops, would score 0.
  • The gap between the longest working day and the shortest working day in each route plan.

On average, Routific's routing solutions had more balanced workloads and more equal shift times.

Workload imbalance and shift spread1

SolverWorkload imbalanceShift spread
Routific73.7 stops2 h 26 m
VROOM93.6 stops3 h 34 m
PyVRP97.6 stops3 h 45 m
OR-Tools90.5 stops3 h 26 m

The higher the number, the higher the workload imbalance.

1 hourRoutific's shifts are about an hour more even: the gap between the longest and shortest shift is 2 h 26 m, against 3 h 26 m or more for other solvers.

Result 3

Total travel time

There's little difference between solvers on the traditional metric of travel time. Across 146 problems, Routific's mean total travel time was 8 minutes (0.7%) longer than the fastest solver, VROOM, out of about 19 hours of total travel time across a whole fleet. It was level with PyVRP (less than a minute apart) and 17 minutes shorter than Google OR-Tools. On travel time it's effectively a tie, so the clean clusters and more balanced routes come at almost no cost.

Mean total travel time per problem2

SolverTravel time
VROOM18 h 47 m
PyVRP18 h 54 m
Routific18 h 54 m
OR-Tools19 h 11 m

(Note: To compare total travel time, we only counted solutions that featured the same number of vehicles. More vehicles automatically means more travel time, so a solution that used a larger fleet wouldn't be a fair comparison.)

0.7%Routific's extra travel time against the fastest solver (VROOM): 8 minutes in a 19-hour fleet day. Against Google OR-Tools, Routific is 17 minutes shorter.

All results

Every metric at a glance

Metric (lower is better)RoutificVROOMPyVRPOR-Tools
Crossings between routes, whole plan14.734.833.450.4
Crossings on the worst leg11.44.03.54.6
Crossings within a route181.684.782.685.0
Idle and wait time11 h 04 m1 h 41 m1 h 30 m1 h 45 m
Workload imbalance (stops)173.793.697.690.5
Longest minus shortest shift12 h 26 m3 h 34 m3 h 45 m3 h 26 m
Vehicles used113.113.313.413.5
Total travel time218 h 54 m18 h 47 m18 h 54 m19 h 11 m
Mean solve time (same 6-vCPU node)32 m 34 s2 m 48 s5 m 10 s5 m 09 s
  1. Over the 216 instances where all four solvers serve exactly the same stops (crossing and balance metrics over the 178 of those with more than one route).
  2. Over the 146 instances where all four also use the same number of vehicles.
  3. PyVRP and OR-Tools were given twice Routific's runtime on each problem.

Definitions of every metric: analysis/README.md.

What this means for last‑mile delivery management

If travel time is the only metric that matters, there's very little real difference between the four route optimizers we tested.

But, as we've heard from our customers time and again, it's not a good enough metric on its own. Route plans that take the same time to drive can differ dramatically on points of quality: More criss-crossing routes and less-balanced shifts translate into real costs.

Spaghetti routes aren't a cosmetic issue. They're evidence that the routing algorithm missed something most drivers and dispatchers already know.

Our data, methodology, and results are all publicly available

We ran these benchmark tests to bridge a real gap. Academic routing benchmarks like Solomon and CVRPLIB run on synthetically generated datasets and Euclidean distances. An algorithm can set records on those benchmarks and yet be completely unusable on a real delivery day, because the real world has street networks. One-way streets, asymmetric travel times, uneven stop density, vehicle capacity limits and fixed delivery windows all make the problem more difficult. And as we've shown, minimizing travel time alone is not enough.

We're publishing the full dataset of sampled real-world scenarios and the benchmark methodology. Anyone can re-run the open-source solvers, recompute every number, or pit their own solver against the same problems.

Our hope with this benchmark is to guide route optimization research in a more practical direction, to unlock more efficiencies for real-world logistics — and a greener, more efficient planet.