Route Planning and Optimization
Route planning and optimization is the use of data and algorithms to design delivery or collection routes that minimize cost (distance, time, vehicles) while meeting service commitments and constraints. It extends the basics in Transportation Routing and Scheduling with methods and tools that handle real fleets.
Why optimize routes?
- Lower fuel, driver time and vehicle costs.
- Better on-time delivery and customer experience.
- Fewer vehicles needed for the same work.
- Lower emissions.
Common solution approaches
| Approach | Idea | Typical use |
|---|---|---|
| Construction heuristics (nearest neighbor, savings) | Build routes step by step using simple rules | Quick starting solutions |
| Improvement heuristics (2-opt, swaps) | Improve an existing route by local changes | Polishing routes |
| Metaheuristics (tabu search, genetic algorithms, simulated annealing) | Explore many solutions to escape local optima | Large, constrained fleets |
| Exact methods (mixed-integer programming) | Prove the best solution | Small problems or benchmarks |
Worked example: the savings idea (Clarke-Wright)
Start with every stop served by its own round trip from the depot D, then merge routes when it saves distance. Two stops A and B: D–A 10 km, D–B 15 km, A–B 8 km.
- Separate round trips: 2 × 10 + 2 × 15 = 50 km.
- Combined route D–A–B–D: 10 + 8 + 15 = 33 km.
Saving = d(D,A) + d(D,B) − d(A,B) = 10 + 15 − 8 = 17 km
The algorithm ranks all pairs of stops by saving and merges them from the highest saving down, as long as vehicle capacity, time windows and driver limits are respected. With a cost of $1.50 per km, merging A and B saves 17 × $1.50 = $25.50 per day, or about $6,400 over 250 working days. Across hundreds of stops those savings add up.
Real-world inputs
- Accurate addresses and geocoding.
- Road network travel times by time of day (not straight-line distance).
- Service times by stop and customer time windows.
- Vehicle capacities, types and driver rules.
- Priorities, such as must-deliver-today orders.
Dynamic and last-mile routing
For same-day deliveries, routes change during the day as orders arrive and traffic changes. Systems re-optimize in real time, push new routes to driver apps and give customers live ETAs. Last-mile routing also deals with failed deliveries, parking and return pickups.
Measuring the benefit
| KPI | Before to after check |
|---|---|
| Total distance and drive time | Compare with a baseline period |
| Vehicles or routes used | Fewer for the same stops |
| Cost per stop | Total route cost ÷ stops |
| On-time rate | Windows met |
| CO2 per delivery | Estimate from distance and fuel |
Common mistakes
- Optimizing on straight-line distance instead of real drive times.
- Ignoring service times at stops, which is often most of the day.
- Over-optimizing a plan that drivers cannot follow in practice. Involve them.
- Not measuring results against a baseline.
Key takeaways
- Savings and improvement heuristics give strong routes quickly, and metaheuristics handle complex fleets.
- The saving from combining two stops = d(D,A) + d(D,B) − d(A,B).
- Use real travel times, service times and constraints, and measure against a baseline.
Put it into practice
Ready-made tools that apply this topic:
Frequently asked questions
What is route optimization?
Route optimization uses algorithms and data to design routes that minimize cost and time while meeting constraints such as vehicle capacity, time windows and driver hours.
What is the savings algorithm (Clarke-Wright)?
A construction heuristic that starts with one route per stop and merges routes in order of the distance saved, saving = d(depot,A) + d(depot,B) − d(A,B), within the constraints.
What is the difference between heuristics and exact methods?
Heuristics find good solutions quickly without a guarantee of optimality. Exact methods prove the best solution but are practical only for small problems.
What data is needed for route optimization?
Addresses, travel times by time of day, service times, time windows, vehicle capacities, driver rules and order priorities.
What is dynamic routing?
Re-optimizing routes during the day as new orders, cancellations and traffic changes occur, and sending updated routes to drivers.
