Vehicle Routing, Dispatching and SchedulingIntroduction and ContextVehicle routing, dispatching and scheduling convert customer requirements into executable movement plans. In logistics systems, the decision is not simply which vehicle should visit which customer. Managers must determine the sequence of visits, vehicle assignment, departure times, loading feasibility, driver and regulatory constraints, service priorities, and responses to uncertainty. These decisions directly affect transport cost, delivery reliability, fleet utilization, emissions, customer satisfaction and working capital. The travelling-salesperson problem (TSP) provides the basic routing structure: one vehicle must visit each customer exactly once and return to its origin while minimizing total travel cost. The vehicle-routing problem (VRP) extends this structure to several vehicles and operational restrictions. Important variants include the capacitated VRP, VRP with time windows, multi-depot VRP, pickup-and-delivery VRP, heterogeneous-fleet VRP and dynamic VRP. Routing is generally computationally difficult. The TSP is NP-hard, and many practical VRP variants are even more complex. Consequently, effective professional practice combines mathematical programming, constructive heuristics, local search, metaheuristics, simulation and real-time decision support rather than relying on one universal method. Learning ObjectivesBy the end of this chapter, the reader should be able to: - Explain the structure and assumptions of TSP, VRP and major VRP variants.
- Formulate routing, capacity, time-window and precedence constraints mathematically.
- Distinguish exact methods, heuristics and metaheuristics and select among them.
- Construct and evaluate dispatching and scheduling plans using operational KPIs.
- Analyze the effects of multiple depots, heterogeneous fleets, pickups and deliveries, and dynamic demand.
- Evaluate technology, governance, sustainability and implementation issues in routing systems.
1. From Routing to Dispatching and SchedulingThree related decisions should be separated conceptually. - Routing determines the geographical sequence of stops and the arcs travelled.
- Vehicle assignment determines which vehicle serves each route.
- Scheduling determines departure, arrival, service and return times.
- Dispatching releases and revises operational instructions, often with incomplete or changing information.
A route may be represented as a sequence such as depot → customer 4 → customer 2 → customer 7 → depot. A schedule adds times to this sequence. A dispatch plan adds decisions about when the route is released, which driver receives it, and how exceptions are handled. A useful objective is a weighted total cost: minimize Z = cd D + ct T + cv V + cl L + ce E + cp P Here, D is distance, T is operating time, V is the number of vehicles used, L is lateness or service-level violation, E is emissions, and P represents penalties such as overtime or infeasibility. The coefficients cd, ct, cv, cl, ce and cp convert each measure into a common monetary or utility scale. The formulation is applicable when management is willing to express competing objectives through weights. If service levels are non-negotiable, lateness should instead be constrained rather than merely penalized. A common distance calculation for locations with coordinates is the Euclidean metric: dij = √[(xi − xj)2 + (yi − yj)2] The units of dij are the same as the coordinate units. This approximation is suitable for a planar representation, but urban routing normally requires a road-network travel-time matrix, because roads, one-way streets, bridges and congestion make geographical distance an imperfect proxy for travel time. 2. The TSP FoundationLet N = {0,1,…,n} be a set of nodes, where node 0 is the depot and the other nodes are customers. Let cij be the cost of travelling from node i to node j, and let xij equal 1 if that arc is selected and 0 otherwise. The basic directed TSP can be written as: minimize ∑i∈N ∑j∈N, j≠i cij xij subject to: ∑j∈N, j≠i xij = 1 for every i∈N ∑i∈N, i≠j xij = 1 for every j∈N xij ∈ {0,1} The first constraint gives every node exactly one outgoing arc; the second gives every node exactly one incoming arc. These constraints alone may produce several disconnected cycles. Subtour-elimination constraints are therefore required. For every proper nonempty subset S of customers, one form is: ∑i∈S ∑j∈S, j≠i xij ≤ |S| − 1 This prevents a closed tour entirely within S. In practice, adding every such constraint initially is inefficient; branch-and-cut algorithms add violated subtour constraints during optimization. The TSP is a useful benchmark and a component of larger routing models, but it assumes one vehicle, a single route, known travel costs and usually one visit per customer. Real operations require additional constraints. 3. Core VRP Formulations3.1 Capacitated Vehicle-Routing ProblemIn the capacitated VRP (CVRP), a fleet of vehicles starts and ends at a depot, each customer is visited once, and vehicle capacity cannot be exceeded. Let K be the vehicle set, qi customer i demand, and Qk capacity of vehicle k. A route-level capacity condition is: ∑i∈Rk qi ≤ Qk where Rk is the customer set assigned to vehicle k. This equation is necessary but does not itself determine the route sequence. A compact arc formulation uses xijk = 1 when vehicle k travels directly from i to j. Flow conservation requires that a vehicle entering a customer also leaves it. Each customer must be served once: ∑k∈K ∑j∈N, j≠i xijk = 1 for every customer i For each vehicle, capacity can be enforced with load variables or cumulative-flow constraints. If yik is the load carried after visiting customer i, a typical propagation constraint is: yjk ≥ yik + qj − Qk(1 − xijk) The large constant Qk deactivates the relationship when arc i→j is not used. Bounds such as qi ≤ yik ≤ Qk are also required where applicable. Poorly chosen large constants can weaken optimization and create numerical difficulties; modern formulations often use tighter bounds or specialized valid inequalities. 3.2 Vehicle Routing with Time WindowsEach customer i has an allowable service interval [ai,bi]. Let si be service duration and tij travel time. If Bi is service start time, then: ai ≤ Bi ≤ bi For a selected arc i→j, temporal consistency requires: Bj ≥ Bi + si + tij − M(1 − xij) where M is a sufficiently large time constant. Units must be consistent: if Bi is measured in minutes, then si, tij and M must also be in minutes. Waiting is permitted when a vehicle arrives before aj; service starts at the later of arrival and the opening time. If waiting is prohibited, an additional restriction is needed. Time windows can be hard, meaning violation is infeasible, or soft, meaning violation incurs a penalty. Soft windows are useful for emergency services or commercial operations where late delivery is undesirable but occasionally permitted. A lateness variable li ≥ 0 can be introduced, with a penalty cl li in the objective. 3.3 Multiple DepotsIn a multi-depot VRP, customers may be served from several origins. Decisions include depot assignment and route sequence. A route may be restricted to start and finish at the same depot, or cross-depot operations may be permitted. The model must specify: - depot capacities and vehicle availability;
- vehicle-to-depot compatibility;
- customer eligibility or service territories;
- whether vehicles must return to their initial depot;
- balancing requirements among depots.
Ignoring depot assignment can produce a geographically short but operationally impossible plan, such as assigning a vehicle to a depot where it is not physically available. 3.4 Pickup-and-Delivery ProblemsPickup-and-delivery routing includes paired pickup and delivery locations. For request r, let pr be the pickup node and dr the delivery node. Precedence requires pickup before delivery: Bdr ≥ Bpr + spr + tpr,dr The vehicle must also carry the relevant goods between the two locations. In a pickup-and-delivery problem with vehicle capacities, load changes along the route and must remain within bounds: 0 ≤ L |