Optimization
Why metaheuristics still matter for vehicle routing
Every few years someone asks whether metaheuristics are still needed for vehicle routing. Exact methods have improved enormously: branch-and-cut-and-price algorithms now prove optimality for capacitated VRP instances that were out of reach not long ago. So why does almost every routing system in production still run a heuristic?
Because the problem in production is not the problem in the benchmark.
What real instances add
The classic capacitated VRP has one vehicle type, one capacity and one cost per kilometre. A real fleet rarely looks like that. In the routing work behind my two papers, the models had to handle, at the same time:
- a mixed fleet of different capacities, and in one case both electric and fossil-fuel vehicles;
- emissions and fuel that depend on load, and in the nonlinear variant on speed and gear choice;
- service quality for the people being transported, not just cost.
Each of these is easy to write down. Together they produce a model that a MIP solver handles well for small instances and struggles with as soon as the instance looks like an actual city.
Where each approach wins
Exact methods win when the instance is small enough, when you need a proof of optimality, or when you need a bound: a number that tells you how far any solution can be from the best possible one. That bound is precious; it is the only honest way to say how good your heuristic is.
Metaheuristics win when the instance is large, the model is rich, and the answer is needed in minutes because the plan is rebuilt every day. Simulated annealing, variable neighbourhood search, adaptive large neighbourhood search and genetic algorithms all trade the proof for speed and flexibility: adding a new rule usually means changing a feasibility check, not reformulating a model.
A small change that mattered
In our paper on rich VRPs for sustainable urban transportation (Arabian Journal for Science and Engineering, 2026), the large instances were solved with a modified simulated annealing that protects the best solution found so far instead of letting the search wander away from it. That small change reduced both cost and convergence time compared with standard simulated annealing and variable neighbourhood search, and it stayed competitive with a genetic algorithm.
The lesson is not that one metaheuristic is best. It is that small, well-understood changes to a simple method often beat switching to a more complicated one.
How to use both
The workflow I recommend, and use:
- Build the exact model first, even if it only solves small instances. It forces you to write down every rule precisely.
- Solve small instances to optimality and keep those numbers.
- Build the heuristic, and test it on those same small instances. If it cannot find the known optimum on 20 customers, it will not do well on 2,000.
- Scale up, and report the gap to the best bound you have, not just the objective value.
Try it yourself
Monthly Problem #01 is a fuel-aware heterogeneous-fleet VRP with three instance sizes and an open leaderboard. A nearest-neighbour baseline is already on the board. Beat it with whatever method you like, and email your solution.