The Vehicle Routing Problem (VRP) is a combinatorial optimization challenge aimed at finding the most efficient set of routes for a fleet of vehicles to deliver goods to a specific set of customers. As an NP-hard problem, large-scale VRPs require sophisticated heuristics to find near-optimal solutions in reasonable time.
The Clarke-Wright Savings algorithm is the foundational "greedy" heuristic for CVRP (Capacitated VRP). It operates by calculating the "savings" achieved by merging two independent routes.
Initially, assume every customer i and j is served by a dedicated return trip from the depot (0). The distance is 2d_{0i} + 2d_{0j}. If we merge i and j into a single route (0 \to i \to j \to 0), the new distance is d_{0i} + d_{ij} + d_{j0}. The Savings (S_{ij}) is:
ACO is a metaheuristic inspired by the pheromone-trailing behavior of ants. It is highly effective for dynamic and complex VRP variants.
An "ant" (agent) constructs a route by moving between nodes. The probability P_{ij} of moving from i to j is:
Where:
After all ants complete their tours, pheromones are updated. Shorter tours receive higher pheromone reinforcement, while a percentage of existing pheromone "evaporates" to prevent premature convergence on local optima.
| Method | Type | Complexity | Best For |
|---|---|---|---|
| Exact (Branch & Cut) | Deterministic | O(exp) | Small sets (<100 nodes) |
| Clarke-Wright | Constructive | O(N^2 \log N) | Rapid baseline solutions |
| Tabu Search | Local Search | O(N^2) | Refinement of existing routes |
| Ant Colony (ACO) | Population-based | High | Complex/Dynamic constraints |
Advanced VRP models must incorporate:
Solving the VRP requires a balance between the speed of constructive heuristics like Clarke-Wright and the exploratory power of metaheuristics like ACO.