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.
Glossary
Stochastic Vehicle Routing

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Stochastic Vehicle Routing (SVR) is built upon a foundation of probabilistic modeling, robust optimization, and dynamic decision frameworks. These related concepts form the essential toolkit for solving routing problems under uncertainty.
Two-Stage Stochastic Programming
The primary mathematical framework for SVR. Decisions are split into first-stage actions (planned routes dispatched before uncertainty is revealed) and second-stage recourse actions (corrective measures like returning to the depot or deploying a backup vehicle) taken after random variables like demand or travel time are realized. The objective is to minimize the sum of first-stage costs plus the expected cost of recourse.
Chance-Constrained Programming
An alternative SVR formulation where constraints are expressed probabilistically. Instead of modeling explicit recourse actions, a chance constraint ensures that a condition—such as meeting a delivery time window or not exceeding vehicle capacity—holds with at least a specified probability (e.g., 95%). This is particularly useful when the cost of failure is non-linear or catastrophic, and a safety buffer is preferred over a reactive fix.
Robust Optimization
A non-probabilistic approach to SVR that seeks solutions immunized against the worst-case realization of uncertain parameters within a defined uncertainty set. Unlike stochastic programming, it does not require a probability distribution. A robust VRP solution guarantees feasibility for any travel time or demand scenario within a bounded range, making it ideal for risk-averse logistics where a single failure is unacceptable.
Markov Decision Process (MDP)
The formal framework for dynamic SVR, where decisions are made sequentially as new information arrives. An MDP defines:
- State: Current vehicle locations, remaining demands, and realized random variables.
- Action: Which customer to visit next.
- Transition Probability: The likelihood of moving to a new state given an action.
- Reward: Negative cost incurred. Solving the MDP yields an optimal policy that maps any state to the best action.
Sample Average Approximation (SAA)
A Monte Carlo simulation-based method for solving two-stage stochastic programs. Instead of evaluating the expected recourse cost over a continuous distribution, SAA generates a finite set of N scenarios by sampling from the probability distributions of random variables. The stochastic problem is then approximated as a large, deterministic Mixed-Integer Linear Program (MILP) and solved with solvers like Gurobi. Accuracy improves as N increases.
Adaptive Large Neighborhood Search (ALNS)
A dominant metaheuristic for large-scale SVR instances where exact methods are computationally intractable. ALNS iteratively destroys a portion of the current solution (e.g., removing random customers) and repairs it using a fast heuristic. An adaptive layer tracks the performance of each destroy/repair operator pair and dynamically selects the most effective ones. It is highly effective for dynamic and stochastic variants with many scenarios.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us