Inferensys

Glossary

Capacitated VRP (CVRP)

A variant of the Vehicle Routing Problem where each vehicle has a finite carrying capacity that cannot be exceeded, adding a loading constraint to the routing logic.
Stylish home-office setup in a modern highrise apartment, floor-to-ceiling windows showing city skyline at golden hour, a laptop displaying a beautiful semantic search interface.
ROUTING OPTIMIZATION

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.

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.

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.

CONSTRAINED LOGISTICS

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.

01

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.

Weight/Volume
Primary Constraint Type
Hard Limit
Constraint Nature
02

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.

Homogeneous
Classic CVRP Assumption
HFVRP
Heterogeneous Extension
03

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.
04

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 ≤ Q for each vehicle k, where d_i is customer demand and y_ik indicates assignment.
06

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.

CONSTRAINT COMPARISON

CVRP vs. Related Routing Problems

How the Capacitated Vehicle Routing Problem differs from other fundamental routing variants in terms of constraints and complexity.

FeatureCVRPVRPTSPVRPTW

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

CVRP EXPLAINED

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.

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.