The Capacitated Vehicle Routing Problem (CVRP) is a combinatorial optimization challenge that determines the optimal set of routes for a fleet of identical vehicles to service a set of customers, where each vehicle has a strict, non-exceedable weight or volume limit. The objective is to minimize total transportation cost while ensuring the sum of demands on any single route does not violate the vehicle's capacity constraint.
Glossary
Capacitated VRP (CVRP)

What is Capacitated VRP (CVRP)?
A fundamental variant of the Vehicle Routing Problem where each vehicle has a finite carrying capacity that cannot be exceeded, introducing a critical loading constraint to the route optimization logic.
CVRP extends the standard Vehicle Routing Problem (VRP) by adding a knapsack-like constraint to every route. This coupling of routing and packing decisions makes the problem NP-hard, requiring advanced metaheuristics like Genetic Algorithms, Tabu Search, or Adaptive Large Neighborhood Search (ALNS) for practical, large-scale instances in last-mile delivery.
Key Characteristics of CVRP
The Capacitated Vehicle Routing Problem (CVRP) extends the standard VRP by introducing a hard constraint: each vehicle has a finite carrying capacity that cannot be exceeded. This transforms the problem from a purely spatial challenge into a combined routing and loading puzzle.
The Capacity Constraint
The defining feature of CVRP is a hard capacity limit (weight, volume, or pallet count) assigned to every vehicle in the fleet. A route becomes infeasible the moment the cumulative demand of assigned customers exceeds this limit. This constraint forces the algorithm to balance spatial proximity against load consolidation, often creating counter-intuitive routes where a nearby customer is skipped to avoid overloading a vehicle.
Homogeneous vs. Heterogeneous Fleets
CVRP is often introduced with a homogeneous fleet—all vehicles have identical capacity. This simplifies the mathematical formulation. The more complex Heterogeneous Fleet VRP (HFVRP) is a direct extension where vehicles have different capacities and costs. In HFVRP, the solver must simultaneously decide which vehicle type to assign to a route, adding an asset selection layer to the loading constraint.
Two-Stage Decision Complexity
Solving a CVRP requires simultaneously answering two interdependent questions:
- Assignment: Which customers are grouped together on a single route?
- Sequencing: In what order should the vehicle visit them to minimize distance? The capacity constraint tightly couples these decisions. A poor assignment that groups high-demand customers together forces inefficient, long-distance sequencing. This interdependence makes CVRP an NP-hard combinatorial optimization problem, requiring heuristics for real-world scale.
Mathematical Formulation
CVRP is typically formulated as a Mixed Integer Programming (MIP) model on a graph where nodes represent the depot and customers. Key constraints include:
- Flow conservation: A vehicle entering a node must leave it.
- Subtour elimination: Prevents disconnected loops that don't include the depot.
- Capacity constraint: The sum of demand along a route ≤ vehicle capacity
Q. The capacity constraint is often expressed as:Σ d_i * y_ik ≤ Qfor each vehiclek, whered_iis customer demand andy_ikindicates assignment.
Split Deliveries vs. Single-Source
Classic CVRP enforces a single-source constraint: each customer's entire demand must be fulfilled by exactly one vehicle visit. Relaxing this rule leads to the Split Delivery VRP (SDVRP). In SDVRP, a customer's demand can be divided among multiple vehicles. While this adds complexity, it can significantly reduce total fleet mileage, especially when individual customer demands are large relative to vehicle capacity.
CVRP vs. Related Routing Problems
How the Capacitated Vehicle Routing Problem differs from other fundamental routing variants in terms of constraints and complexity.
| Feature | CVRP | VRP | TSP | VRPTW |
|---|---|---|---|---|
Vehicle capacity limit | ||||
Multiple vehicles | ||||
Single depot origin | ||||
Time window constraints | ||||
Must visit all nodes | ||||
Return to origin required | ||||
Computational complexity class | NP-hard | NP-hard | NP-hard | NP-hard |
Typical solution method | Clarke-Wright savings, metaheuristics | Exact methods for small instances | Branch-and-bound, dynamic programming | ALNS, genetic algorithms |
Frequently Asked Questions
Clear, technical answers to the most common questions about the Capacitated Vehicle Routing Problem, its constraints, solution methods, and real-world logistics applications.
The Capacitated Vehicle Routing Problem (CVRP) is a combinatorial optimization problem that determines the optimal set of routes for a fleet of identical vehicles with a fixed maximum carrying capacity to service a geographically dispersed set of customers. Each vehicle departs from and returns to a single central depot, and the total demand of customers assigned to any single route must not exceed the vehicle's capacity constraint. The primary objective is to minimize the total distance traveled or the global transportation cost. CVRP extends the standard Vehicle Routing Problem (VRP) by adding the loading constraint, making it a fundamental model for physical distribution where vehicle payload limits are a hard constraint.
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
Capacitated VRP extends the standard Vehicle Routing Problem by introducing vehicle load limits. Explore the foundational problem and related constraint variants that build upon CVRP's core logic.
Vehicle Routing Problem (VRP)
The foundational combinatorial optimization challenge from which CVRP derives. VRP seeks the optimal set of routes for a fleet of vehicles to service a geographically dispersed set of customers, starting and ending at a central depot. The primary objective is typically to minimize total distance or travel time. CVRP adds the critical dimension of vehicle capacity, transforming a purely spatial problem into one with loading constraints.
Pickup and Delivery Problem (PDP)
A VRP variant where goods must be transported between specific pickup and delivery pairs, enforcing strict precedence constraints—a pickup must occur before its associated delivery. When combined with vehicle capacity limits, it becomes the Capacitated PDP. This is critical for courier services and less-than-truckload (LTL) operations. Key constraints include:
- Pairing: A single vehicle handles both pickup and delivery.
- Precedence: Pickup visit must precede delivery visit.
- Capacity feasibility: The vehicle's load must never exceed its limit at any point along the route.
Heterogeneous Fleet VRP (HFVRP)
Also known as the Mixed Fleet VRP, HFVRP generalizes CVRP by introducing a fleet with non-identical vehicles. Each vehicle type k has a distinct capacity Q_k, fixed cost, and variable cost per unit distance. The solver must simultaneously decide on the optimal fleet composition and routing. This adds a strategic asset utilization layer to the tactical routing decisions of standard CVRP, often modeled with a two-commodity flow formulation.
Large Neighborhood Search (LNS)
A dominant metaheuristic for solving large-scale CVRP instances where exact methods fail. LNS iteratively destroys a significant portion of a current solution (e.g., removing 30% of customer visits) and then repairs it using a constraint programming solver or greedy insertion heuristic. The key advantage is its ability to escape deep local optima. Adaptive LNS (ALNS) extends this by dynamically selecting from a portfolio of destroy and repair operators based on their historical success, significantly outperforming static heuristics on benchmark datasets like Solomon's instances.

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