All guides

Evaluation

How to compare route optimization results fairly

Compare routing engines with the same stops, constraints and travel data. Learn what to measure before calling one route plan better than another.

A shorter route can be a worse plan. It might leave more work unassigned, use an extra vehicle or depend on a delivery window that the customer never agreed to. A useful comparison starts with a decision and a shared set of assumptions. The route distance comes later.

For analysts and consultants, the goal is to produce evidence another person can inspect. That means recording what each engine was asked to solve, what it returned and which trade-offs matter to the operation.

Start with the decision you need to make

Write the evaluation question before running an engine. “Which solver is best?” is too broad. “Can we serve these stops within the current shifts using three vehicles?” gives the exercise a clear purpose.

Other useful questions include whether a wider delivery window reduces the fleet requirement, whether a different depot changes the plan, or whether a longer search finds a meaningful improvement. Each question suggests a different comparison.

Set an acceptance rule as well. If every delivery must be completed, a partial plan cannot win on distance alone. If some visits are optional, decide how you will report the work left out. Keep that decision visible throughout the evaluation.

Hold the inputs steady

Give each candidate the same locations, travel data and business rules. Check the following before comparing results:

  • Vehicle capacities, shifts, starting locations and end locations.
  • Stop quantities, service durations, time windows and required skills.
  • Pickup and delivery relationships, breaks and other supported constraints.
  • Which visits are required and which may remain unassigned.
  • The distance and travel-time matrix, including its units and rounding.

Changing the travel provider between runs changes the problem. So does using straight-line estimates for one engine and road times for another. Our guide to road travel data explains why that difference can outweigh a change of solver.

Compatibility matters too. An upstream engine may support a feature that its current Vibilia integration does not expose. Review the engine guide and use the capabilities available in the surface you are testing. The Planner and Lab serve different purposes.

Compare service before distance

Consider this invented example:

Result Visits served Distance Vehicles used
Plan A 100 of 100 142 km 4
Plan B 91 of 100 126 km 4

Plan B travels less, but it has not completed the same work. The table does not establish a winner. You need to inspect which nine visits are missing and whether leaving them out is acceptable.

Raw objective scores also require care. An engine may combine travel, vehicle costs and penalties for optional work. Vibilia's integrations do not give every engine identical penalty semantics. Compare observable outcomes such as work served, route duration and vehicles used before interpreting a solver's internal score.

Give the search a stated budget

Record the engine version, search settings, time budget and available random seed. Keep the device and browser consistent when measuring browser performance. Distinguish engine initialization, travel-data preparation and search time from the total time a user waits.

Run repeated trials where the search can vary. Report the spread alongside the best result. A single unusually good run is weak evidence for a routine workflow. PyVRP's own benchmark documentation reports results over multiple seeds against identified best-known solutions, illustrating why the comparison procedure belongs beside the result. PyVRP benchmark methodology.

For an interactive workflow, also ask whether the improvement is worth the extra wait. A consultant exploring ten alternatives may choose a different budget from a team preparing one overnight analysis.

Keep feasibility and optimality separate

A feasible result satisfies the modeled constraints. An optimal result has an additional proof that no better result exists for the stated objective. A heuristic can produce a useful plan without that proof. Google's routing documentation explicitly describes situations where OR-Tools returns good solutions without establishing optimality. OR-Tools routing limitations.

Vibilia checks returned results against the modeled work and travel data. That helps identify invalid assignments or schedules. It does not certify the accuracy of an address, predict an unexpected road closure or establish optimality by itself.

Likewise, a published best-known benchmark result is a comparison reference. It is not automatically a proven optimum.

Make the result reproducible

For a benchmark exercise, open Benchmarks, retain the original input and run compatible engines against it. Export the result with its source identity. Record settings, timing conditions and any failed runs in the accompanying evaluation notes.

For an operational question, use the Planner to build a baseline and change one assumption at a time. Preserve each version of the plan and record why it changed. Saved Planner files exclude the road matrix. A rerun may reuse locally cached road data or request new data, so the file alone does not freeze the exact matrix for a future comparison.

Finish with a decision someone can act on: which plan meets the agreed requirements, what it costs in modeled travel and resources, and what remains uncertain. That is more useful than a leaderboard built from one distance number.