Fleet & Route Planning
Basics of Route Optimization: VRP Constraints and Trade-offs
A route with fewer miles can still cost more if it arrives late, keeps a driver on shift too long, or leaves a vehicle unable to carry its assigned parcels. The vehicle routing problem (VRP) is the planning problem behind those trade-offs: assign stops to vehicles and order their visits while meeting operational rules.
That framing matters because a routing engine does not simply draw the shortest line through a list of addresses. It chooses among competing plans, often with incomplete information and hard limits. The Clarke–Wright savings heuristic, introduced by G. Clarke and J. W. Wright in 1964, offers a useful way to understand how a planner can combine routes—and why a mathematically attractive combination may still be a poor dispatch decision.
What a vehicle routing problem actually decides
At its simplest, a VRP starts with a depot, a set of customer stops, and one or more vehicles. Each vehicle leaves the depot, serves some stops, and returns. The plan must decide both which vehicle serves each stop and in what order. In practice, that basic structure is often extended to represent driver shifts, delivery appointments, vehicle types, loading limits, pickup-and-delivery pairs, or different costs for driving and waiting.
A useful way to express the goal is to minimize a total operating cost. That cost might combine distance, paid driver time, fuel or energy, tolls, and penalties for missed service commitments. A planner might assign a high penalty to a late delivery and a lower penalty to an extra mile, for example. The resulting “best” route is therefore best under the chosen objective and assumptions—not universally best.
Some requirements are hard constraints: a vehicle must not exceed its capacity, and a driver cannot continue beyond a fixed shift limit. Other considerations can be modeled as soft constraints, which a plan may violate at a cost. A delivery window might be treated as a firm promise or as a target with a penalty for arriving outside it. This distinction changes the solution. If a system treats every preference as an absolute rule, it may report that no feasible plan exists even when dispatchers could accept a modest, explicitly permitted compromise.
VRP is a family of related problems rather than one fixed formula. A capacitated VRP limits the load carried by each vehicle. A vehicle routing problem with time windows adds permitted service intervals. A distance-constrained variant can limit route length, while a heterogeneous-fleet variant accounts for vans, trucks, or other vehicles with different capacities and costs. These extensions reflect operational reality, but they also make the search for a good plan harder.
The constraints that change a route
Capacity and parcel mix
Capacity is not always a single weight figure. A carrier may need to account for weight, volume, compartment layout, temperature control, or restrictions on stacking. A route carrying lightweight but bulky packages can fill a van before it reaches its legal weight limit. A useful model tracks the capacity that is actually scarce for the fleet in question.
Deliveries and pickups complicate the calculation. If a vehicle collects returns along the way, its load can rise and fall over the route. A plan that checks only the total volume assigned to a vehicle may miss a moment when the vehicle is overloaded halfway through. The model must represent the order of visits and the load after each pickup or delivery.
Time windows and service duration
A stop consumes more than driving time. The driver may need to find a safe parking place, scan items, obtain a signature, navigate a building, or wait for access. That service duration affects every later arrival. If a customer accepts deliveries from 10:00 to noon, a route arriving at 10:05 may be feasible while one arriving at 12:10 is not—even if the second plan is shorter by several miles.
Time-window models also need a policy for early arrivals. A vehicle may be allowed to wait until the window opens, but waiting occupies labor and can disrupt later stops. If the location does not permit curbside waiting, the practical cost may be higher than the model suggests. Planners should distinguish arrival time, service start, and service completion; treating them as the same timestamp can conceal a late handoff.
Shift length, breaks, and route duration
A route can satisfy every customer window and still be infeasible for the driver. The operating day may include a scheduled start, required breaks, a latest return time, and time for loading or vehicle checks. Where the plan runs across multiple jurisdictions or labor agreements, the applicable rules may differ. A route model should use the organization’s actual operating requirements rather than assume that distance alone predicts how long a tour takes.
Road network and vehicle restrictions
Point-to-point distance is not the same as road distance. A river, one-way system, restricted turn, low bridge, or limited-access zone can make two nearby addresses far apart by vehicle. Routing data also needs to reflect vehicle-specific restrictions: a route suitable for a small van may not be legal for a larger truck. For electric fleets, energy use can vary with speed, terrain, payload, temperature, and the need to return to a charger with reserve capacity.
Operating rules and service priorities
Some stops must precede others. A pickup may need to happen before a linked delivery, a store may only accept replenishment before opening, or a collection may depend on equipment carried onboard. A fleet can also have priorities: medical supplies, perishable goods, premium appointments, or customers with accessibility needs. These rules may be expressed as precedence constraints, time windows, vehicle eligibility, or service penalties. Writing them down precisely is part of the optimization work—not an administrative detail to add after the algorithm runs.
Clarke–Wright savings: combine routes selectively
The Clarke–Wright savings method begins with a simple plan: give each customer a separate route from the depot and back. It then considers whether two routes can be joined so that one vehicle serves both customers. For a symmetric distance matrix, the saving from joining customers i and j is commonly calculated as:
Saving(i, j) = distance(depot, i) + distance(depot, j) − distance(i, j)
The calculation compares two separate depot journeys with a combined route that connects the customers directly. A larger positive saving means the merge removes more depot-to-customer travel in the distance-only model. The planner sorts candidate pairs by savings and tries promising merges, subject to conditions such as keeping the route connected and respecting vehicle capacity.
Consider a depot D and two stops, A and B. Suppose D–A is 8 miles, D–B is 7 miles, and A–B is 4 miles. Serving each stop separately requires 30 miles of travel: 8 out and back to A, plus 7 out and back to B. Combining them in the sequence D–A–B–D requires 19 miles: 8 + 4 + 7. The calculated saving is 8 + 7 − 4 = 11 miles.
That is a strong distance improvement only if the merged route is operationally valid. If A requires a 10:00 arrival and B must be served before 10:30, the extra travel and service time at A could make the sequence infeasible. If the vehicle is already near its load limit, the combined tour may exceed capacity. If B is a pickup that must precede a delivery, the sequence may need to be reversed—or the pair may not be mergeable at all.
For a depot at one end of a route, the familiar merge is made at route endpoints. Joining stops that are already in the middle of separate routes would generally require breaking those routes and can produce an invalid or disconnected tour. This is one reason implementations need more than a sorted savings list: they must track route endpoints, loads, timing, and any route-specific restrictions as each candidate is tested.
Why the biggest saving is not always the best merge
The original savings calculation is a useful starting point, not a complete cost model. It measures distance under a particular set of assumptions. If a business objective is to control paid hours, then a merge that saves miles but adds a long wait may be a loss. If the vehicle has a fixed daily cost but fuel is expensive, the right balance may differ again. Planners can adapt the cost calculation to include time or operating cost, but changing the formula does not remove the need to test feasibility.
Time windows are a particularly clear example. Suppose a proposed merge has a high distance saving but places a flexible stop before an appointment with a narrow window. A delay at the first stop can make the appointment fail. Reversing the sequence might help, but road direction, time-dependent congestion, or pickup-and-delivery rules could limit that option. A robust planner evaluates feasible sequences, rather than assuming that a pair’s distance saving tells the whole story.
It is also important to separate two questions: “Can these customers share a route?” and “Should they share a route?” The first is about feasibility. The second is about the objective. A merge can fit capacity and timing rules but still be undesirable if it creates a fragile tour, leaves no room for urgent work, or increases the chance of cascading lateness. Conversely, a small increase in distance may be justified if it consolidates work into one vehicle and reduces total labor or fleet use.
Clarke–Wright is a heuristic: it constructs a good practical solution through a sequence of choices, but it does not generally prove that the result is the global optimum. An early merge can shape which later merges remain possible. Different tie-breaking rules or input order can therefore produce different routes. That limitation does not make the method useless. It makes it important to compare the result with operational benchmarks and, where needed, improve it through local changes such as moving a stop between routes or reversing a segment.
From mathematical distance to dispatchable plan
Distance data is an input, not a neutral fact. A straight-line estimate, a road-network distance, and a historical travel-time estimate can produce different route choices. A static travel time may work for a quiet rural run but misstate a downtown tour during a school arrival period or rush hour. Where travel conditions vary by time of day, an optimizer should use time-dependent estimates if the data and planning horizon support them.
Service-time estimates deserve the same scrutiny. If a business models every residential delivery as a two-minute stop, the resulting schedule may look efficient while routinely falling behind. Historical data can help estimate service time by stop type, but averages conceal variation. A depot or operations team may choose to plan with a conservative percentile for critical appointments, while using a different buffer for flexible work.
Route plans also need a response to uncertainty. Construction, weather, traffic incidents, failed access codes, and recipients who are not present can all disrupt a schedule. A morning plan may be optimized once and then adjusted during the day as actual completion times arrive. That is a different operating mode from static optimization: it requires timely location and status data, clear rules for which stops may be reassigned, and an understanding of the effect on customer promises and driver workload.
For a delivery operation, the final test is whether the plan can be executed by the people and vehicles assigned to it. A mathematically feasible route might assume an impossible turn, omit loading time, or rely on a driver knowing a building entrance that is not present in the system. Dispatchers and drivers often identify these gaps. Their feedback can improve the model, but informal workarounds should be recorded rather than silently treated as permanent fixes.
How to judge route quality
Route distance is one measure, not a full scorecard. A fleet can evaluate total vehicle miles, paid hours, number of vehicles dispatched, on-time delivery rate, overtime, failed delivery attempts, utilization, and the number of routes that require last-minute intervention. The right measures depend on the service promise. A low-mileage plan that misses appointment windows may be worse than a slightly longer plan with reliable arrivals.
Compare like with like when assessing a new routing method. Hold the demand, service-time assumptions, vehicle availability, and operating rules as constant as possible. Otherwise, a performance change may reflect a different workload or data quality rather than the algorithm. It is also useful to examine results by route and stop type: an improvement in average distance can conceal an increase in overtime on the most difficult routes.
Operational teams should define what counts as an acceptable violation. If an appointment is missed by one minute, does the system record a failure? Is a vehicle allowed to return late if the final stop was served on time? Are drivers permitted to use a break window differently under local rules? A metric without a defined operational meaning can reward behavior the business does not actually want.
- Feasibility: Were capacity, shift, vehicle, and appointment rules met?
- Efficiency: How many miles, hours, and vehicles did the plan require?
- Service: Were customers served within the promised windows?
- Resilience: Did ordinary delays create widespread lateness or emergency reassignment?
- Usability: Could dispatchers and drivers execute the plan without recurring manual corrections?
A practical planning sequence
A disciplined VRP workflow starts with the rules, not the algorithm. Define the stops, depot locations, vehicle capacities, service times, operating hours, delivery windows, and any required visit order. Decide which limits are hard and which can be relaxed with an explicit penalty. Then verify that the data describes the operation: addresses geocode correctly, road restrictions are appropriate, and time estimates reflect the hours when routes actually run.
Next, select an objective that matches the decision at hand. A dispatcher planning tomorrow’s work may need to meet all time windows while minimizing overtime. A network planner comparing depot configurations may prioritize total cost over a longer horizon. Those are different optimization problems, even if they use the same stop list. Once the objective and constraints are clear, a heuristic such as Clarke–Wright can produce a starting plan for review.
Before deployment, test the plan against known operating days and inspect exceptions. Ask where the model predicts waiting, where capacity becomes tight, and which routes have little recovery time. When drivers or dispatchers reject a route, determine whether the cause is a genuine constraint, inaccurate data, or a preference that has not been modeled. That distinction helps improve the system without turning every individual objection into an absolute rule.
Finally, monitor actual results after dispatch. Route optimization is not a one-time calculation: demand patterns, travel conditions, customer promises, and fleet composition change. A small, documented adjustment to service times or vehicle eligibility can matter more than switching to a more complicated algorithm. The best planning method is one whose assumptions are visible, whose exceptions can be explained, and whose results improve the service the operation is responsible for delivering.
Key takeaway
VRP planning is the work of balancing route efficiency against the rules that make a delivery operation possible. Clarke–Wright savings shows how combining tours can reduce depot travel, but its distance calculation cannot by itself account for capacity, appointment windows, labor, or risk. Treat the heuristic as a construction method, test every proposed merge against real constraints, and judge the finished plan by service and operating outcomes—not mileage alone.