Inferensys

Glossary

Stochastic Vehicle Routing

A class of Vehicle Routing Problems where one or more components, such as customer demand, travel time, or customer presence, are modeled as random variables rather than deterministic values.
ML engineer developing custom LLM, model architecture diagrams on screens, technical deep work environment.
OPTIMIZATION UNDER UNCERTAINTY

What is Stochastic Vehicle Routing?

Stochastic Vehicle Routing (SVRP) is a class of the Vehicle Routing Problem where one or more components—such as customer demand, travel time, or customer presence—are modeled as random variables with known probability distributions rather than fixed, deterministic values.

Stochastic Vehicle Routing extends the classic VRP by incorporating uncertainty directly into the optimization model. Unlike deterministic approaches that assume perfect information, SVRP formulations use probability distributions to represent stochastic elements like fluctuating demand or variable travel times. The goal is to find a first-stage solution that minimizes expected total cost, often structured as a two-stage stochastic program where initial routes are planned before uncertainty is realized, and recourse actions—such as returning to the depot for restocking—are taken after.

Solution methods for SVRP include robust optimization, which seeks solutions feasible under worst-case parameter realizations, and sample average approximation, which uses Monte Carlo sampling to approximate the expected cost function. Modern approaches leverage adaptive large neighborhood search (ALNS) metaheuristics combined with simulation-based evaluation to handle the computational complexity of real-world instances. This framework is critical for logistics operations where deterministic plans would fail, such as same-day delivery with unknown order volumes or routing through congestion-prone urban networks.

UNCERTAINTY MODELING FRAMEWORKS

Key Variants of Stochastic Vehicle Routing

Stochastic Vehicle Routing Problems (SVRP) extend deterministic VRP by modeling real-world uncertainty as random variables. Each variant addresses a specific source of randomness, requiring distinct mathematical formulations and solution methodologies.

01

Stochastic Customers (VRPSC)

In this variant, each customer requires service with a known probability, not certainty. The vehicle must plan a route before knowing which customers will actually need a visit that day.

  • Mechanism: Modeled as a two-stage stochastic program with recourse. A planned a priori route is designed, and when a customer is revealed as absent, the vehicle simply skips that stop.
  • Key Challenge: Balancing travel cost efficiency against the probability of serving many scattered customers.
  • Application: Home appliance repair services where the technician only knows the probability of a breakdown call, not the exact set of daily jobs.
02

Stochastic Demands (VRPSD)

Customer demand quantities are treated as random variables with known probability distributions. The vehicle's actual load is only discovered upon arrival at each customer location.

  • Route Failure: Occurs when the cumulative demand on a route exceeds the vehicle's remaining capacity, forcing a recourse action such as returning to the depot to restock.
  • Solution Approach: A priori routes are designed to minimize the expected total cost, including the cost of potential route failures. This is often solved using stochastic programming with recourse or robust optimization.
  • Example: A fuel delivery truck servicing gas stations where the exact gallons needed at each stop are unknown until the tank is measured on-site.
03

Stochastic Travel Times (VRPSTT)

Travel times between locations are modeled as time-dependent random variables rather than fixed constants, capturing the inherent variability of real-world traffic and road conditions.

  • Constraint Handling: Soft time windows are typically used, where late arrivals incur a penalty cost rather than being infeasible. The objective becomes minimizing expected total cost, including lateness penalties.
  • Modeling: Often uses time-dependent probability distributions (e.g., log-normal for travel times) or scenario-based representations of traffic states.
  • Critical Distinction: Unlike Time-Dependent VRP where travel times are deterministic functions of time, SVRPSTT treats them as genuinely random, requiring probabilistic constraint satisfaction.
04

Stochastic Service Times

The duration of service at each customer location is a random variable, introducing uncertainty into the route schedule and downstream arrival times.

  • Propagation Effect: A long service time at one stop delays all subsequent stops, creating a cascading uncertainty that compounds along the route.
  • Modeling Techniques: Service times are often modeled with phase-type distributions or gamma distributions to capture the positive-skewed nature of task durations.
  • Industry Context: Critical in healthcare logistics where the duration of a nurse's home visit varies significantly by patient condition, or in field service where repair complexity is unknown before diagnosis.
05

VRP with Stochastic Travel and Service Times

A compound uncertainty variant where both travel times and service times are random, representing the most realistic but computationally demanding SVRP formulation.

  • Joint Distribution: The two sources of uncertainty may be correlated (e.g., bad weather simultaneously increases travel times and slows outdoor service tasks).
  • Solution Methods: Typically requires sample average approximation (SAA) or simulation-based optimization because analytical expected cost functions become intractable.
  • Recourse Strategy: Optimal policies often involve dynamic re-optimization, where the remaining route is recomputed in real-time as actual travel and service times are realized, aligning with Model Predictive Control frameworks.
06

Chance-Constrained SVRP

Instead of minimizing expected cost, this formulation enforces probabilistic constraints that guarantee a certain service level with a specified probability.

  • Constraint Form: A typical constraint states that the probability of violating a time window or capacity limit must be below a threshold α (e.g., 5%).
  • Deterministic Equivalent: Under specific distributional assumptions (e.g., normal travel times), chance constraints can be reformulated as deterministic linear constraints, enabling solution by standard MILP solvers.
  • Use Case: Premium logistics contracts with strict Service Level Agreements (SLAs) where a 95% on-time delivery guarantee is contractually mandated, making expected value optimization insufficient.
STOCHASTIC VEHICLE ROUTING

Frequently Asked Questions

Clear, technically precise answers to the most common questions about modeling and solving vehicle routing problems under uncertainty.

Stochastic Vehicle Routing (SVRP) is a class of the Vehicle Routing Problem where at least one input parameter—such as customer demand, travel time, or customer presence—is modeled as a random variable with a known probability distribution rather than a fixed, known value. In a deterministic VRP, all data is assumed to be known with certainty before routes are planned. In SVRP, the planner must design routes that are robust to future realizations of uncertainty. This fundamental shift requires different mathematical frameworks, typically two-stage stochastic programming with recourse actions. For example, a route planned for a stochastic demand of 5±3 units may fail on the day of service if actual demand exceeds vehicle capacity, triggering a costly recourse action like a return trip to the depot. The objective is to minimize the expected cost of the planned routes plus the expected cost of any recourse actions, rather than a single deterministic cost.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.