New Vehicle Routing Problem

How to Solve the Vehicle Routing Problem

Learn what the vehicle routing problem is, the 6 main VRP types, and how route optimization software solves it. Practical guide for delivery businesses.

How to Solve the Vehicle Routing Problem
Trusted by 650+ Operations

The vehicle routing problem (VRP) is the optimization challenge of finding the most efficient routes for a fleet of vehicles serving multiple customers. It also factors in constraints like vehicle capacity, delivery time windows, and driver schedules.

It’s the reason manual route planning breaks down once you’re past a handful of drivers, and it’s the problem that route optimization software exists to solve.

Manual route planning wastes 2-3 hours daily for dispatchers and produces routes that are 15-30% less efficient than optimized ones. Those extra miles, wasted hours, and missed delivery windows compound fast as you scale.

This guide covers the six VRP types that affect delivery businesses, why solving VRP matters for your bottom line, and how to do it without custom development or manual guesswork.

What Is the Vehicle Routing Problem (VRP)?

The vehicle routing problem is the optimization challenge of determining the most efficient routes for multiple vehicles serving multiple customers, all while juggling constraints like vehicle capacity, delivery time windows, and driver schedules.

Unlike simple point-to-point GPS navigation, VRP coordinates an entire operation, deciding which customers each driver serves, what order they visit stops, and how to minimize total distance, time, and cost across every route.

How VRP Works

VRP takes a set of inputs and calculates the best possible fleet routing plan:

  • Inputs: Customer locations, demand quantities per stop, vehicle capacities, driver availability, and time constraints
  • Processing: Algorithms evaluate possible combinations of customer-to-vehicle assignments and stop sequences to find the most efficient plan
  • Output: Optimized routes for each driver that minimize total travel distance and time while respecting every constraint
  • Why it’s hard: Even a modest operation with 10 vehicles and 50 customers creates over 10^64 possible route combinations. That’s more than the number of atoms in the observable universe. Manual planning simply cannot evaluate that many options.

VRP vs the Traveling Salesman Problem (TSP)

The Traveling Salesman Problem is often mentioned alongside VRP, but the two solve different challenges. TSP optimizes a single vehicle’s route to visit all stops in the shortest path and return to the starting point.

VRP extends that concept to multiple vehicles, each with capacity limits, schedules, and delivery constraints.

Every VRP essentially contains multiple TSP sub-problems, one for each vehicle. In practical terms, TSP works for a single technician making site visits. VRP is what delivery businesses with multiple drivers actually need.

VRP isn’t one-size-fits-all. Different operational constraints create different VRP variants, and understanding which one matches your business determines the right solution approach.

What Are the Different Types of Vehicle Routing Problems?

Researchers have identified over 20 VRP variants, but six types cover the vast majority of real-world delivery and service operations. Understanding which type matches your business helps you evaluate whether a solution can handle your specific constraints.

1. Capacitated VRP (CVRP)

The Capacitated Vehicle Routing Problem (CVRP) is the most common type in delivery operations. It introduces the constraint that every vehicle has a maximum weight or volume limit that cannot be exceeded.

CVRP requires the algorithm to balance loads across the entire fleet while building the shortest routes. A grocery distributor loading trucks with mixed-size orders across 40 retail stops faces a classic CVRP challenge: each truck can only carry so much, so the system needs to distribute orders efficiently while keeping routes tight.

2. VRP with Time Windows (VRPTW)

Vehicle Routing Problem with Time Windows (VRPTW) adds scheduling complexity on top of routing. Customers require delivery within specific time slots, and a route that’s efficient by distance may be completely infeasible if it misses a time window.

This variant is common in e-commerce same-day delivery, food delivery, healthcare, and any operation with appointment-based scheduling. When customers select 2-hour delivery slots, the algorithm needs to sequence stops so every window gets hit, even if that means a slightly longer route.

A delivery route scheduling tool handles these constraints automatically, balancing time feasibility with last-mile delivery route optimization.

3. Pickup and Delivery Problem (PDP)

Unlike standard delivery-only operations where vehicle loads only decrease at each stop, the Pickup and Delivery Problem involves vehicles collecting items at pickup locations and delivering them to corresponding destinations. Vehicle loads fluctuate throughout the route.

Courier services handling same-day pickups and drop-offs across a metro area face this challenge daily. The key constraint is precedence: Pickup and delivery routing must happen before the corresponding delivery, and the vehicle can never exceed capacity at any point along the route.

4. Multi-Depot VRP (MDVRP)

The Multi-Depot Vehicle Routing Problem applies when routes originate from multiple warehouse or depot locations. This adds a layer of complexity because the algorithm must make two interdependent decisions: which depot serves which customers, and the best routes from each depot.

A regional distributor with 3 warehouses serving overlapping territories is a typical MDVRP scenario. Getting the depot-to-customer assignment wrong can undermine the entire routing plan, even if individual routes are well-optimized.

5. Dynamic VRP (DVRP)

Dynamic vehicle routing addresses real-time changes: new orders arriving mid-day, cancellations, traffic disruptions, and vehicle breakdowns. This variant is most relevant to on-demand and same-day delivery operations.

Food delivery platforms managing continuous new orders while drivers are already en route face DVRP constantly. The algorithms must balance route quality with computational speed because extended optimization periods don’t support the split-second decisions that real-time operations require.

6. Green VRP (GVRP)

The Green Vehicle Routing Problem adds environmental objectives to the optimization equation. This includes minimizing carbon emissions, managing electric vehicle battery range, and integrating charging station stops into routes.

GVRP is growing in importance as sustainability regulations tighten and businesses accelerate EV fleet adoption. A delivery operation transitioning to electric vehicles needs routes that account for range limits and charging station locations, not just shortest distance.

Which VRP Type Matches Your Business?

Most delivery operations deal with a combination of VRP types simultaneously. Use this table to identify which variants apply to your situation:

Your SituationVRP TypeKey ConstraintWhat to Look For in a Solution
Vehicles have weight/volume limitsCVRPCapacity per vehicleLoad balancing and capacity-aware optimization
Customers need delivery in specific time slotsVRPTWDelivery windowsTime window scheduling with feasibility checks
You handle both pickups and deliveriesPDPPickup-before-delivery sequencingMixed load management with precedence constraints
You operate from multiple warehousesMDVRPDepot-to-customer assignmentMulti-depot support with territory optimization
Orders arrive throughout the dayDVRPReal-time changesDynamic re-optimization and live rerouting
You’re transitioning to EVs or have emission targetsGVRPRange/charging/emissionsEV range management and eco-routing

Most real-world operations combine multiple VRP types. A delivery business might face capacity constraints, time windows, and dynamic order changes simultaneously. That layered complexity is exactly why solving VRP pays off.

See it in action

Handle Last-Minute Changes Without Rerouting Manually

Upper re-optimizes routes in real time when orders change. Your drivers stay efficient even when plans shift mid-day.

Handle Last-Minute Changes Without Rerouting Manually

Why Solving Vehicle Routing Problems Matters for Your Business

VRP isn’t just a logistics theory exercise. Businesses that solve it see measurable improvements across costs, productivity, customer satisfaction, and operational resilience. The benefits of route optimization compound over time, and even small operations see meaningful returns.

1. Reduces Fuel and Mileage Costs by 15-30%

Optimized routes eliminate backtracking, unnecessary miles, and redundant trips. Mid-size delivery operations typically see 20-40% cost reductions within six months of implementing VRP optimization. Even operations with 5-10 drivers save enough on fuel to cover software costs in the first month.

Across delivery operations we work with, the single biggest efficiency gain comes from eliminating backtracking, not from adding vehicles. Most businesses underestimate how many redundant miles their current routes carry until they see the optimized version side by side.

2. Cuts Route Planning Time From Hours to Minutes

Manual route planning eats up 2-4 hours of dispatcher time every day. VRP algorithms optimize hundreds of stops across multiple drivers in under a minute, freeing dispatchers to focus on exception handling, customer service, and operational improvements instead of staring at maps.

3. Increases Driver Productivity by 30-50%

Optimized stop sequencing means more deliveries per shift with less time on the road. Balanced workloads prevent some drivers from being overloaded while others run light routes, and better routes reduce driver fatigue and overtime costs.

4. Improves On-Time Delivery Rates and Customer Satisfaction

VRP with time window constraints generates realistic, achievable delivery schedules instead of best-guess estimates. Predictable routes enable proactive customer communication and accurate ETAs, which reduces “where’s my delivery?” calls and builds trust.

Fewer missed windows means fewer complaints, fewer re-delivery attempts, and higher customer retention. For businesses competing on delivery experience, on-time performance is a direct competitive advantage.

The question isn’t whether VRP optimization delivers ROI. It’s how to implement it. The good news: you don’t need to build custom algorithms or hire data scientists. Modern route optimization software handles VRP out of the box.

See it in action

See How Much Route Optimization Saves Your Operation

Upper reduces fuel costs by up to 30% and cuts planning time from hours to minutes. Calculate the impact for your delivery business.

See How Much Route Optimization Saves Your Operation

How to Solve Vehicle Routing Problems

Here’s what a typical dispatcher faces every morning: 8 drivers, 200 stops across the metro area, 40 customers with specific time windows, 3 vehicles with different capacity limits, and 2 cancellations that just came in.

Solving this manually means hours of guesswork and routes that leave money on the table. There are three broad approaches to tackling this problem, and they vary dramatically in complexity, cost, and results.

Step 1: Understand the Solution Approaches

1.1 Manual Planning vs. Algorithmic Optimization

Manual planning using spreadsheets or Google Maps works for solo drivers or very small teams with under 20 stops. Beyond that, it breaks down quickly. The number of possible route combinations grows exponentially with each additional stop and driver, making it mathematically impossible for any human to find the best solution.

Even experienced dispatchers who know their service area inside and out typically create routes that are 15-30% less efficient than algorithm-optimized ones. That gap translates directly into wasted fuel, unnecessary miles, and fewer deliveries per shift.

1.2 How Modern Algorithms Solve VRP

Route optimization algorithms apply heuristic and metaheuristic methods to find high-quality solutions in seconds. Techniques like nearest neighbor, savings algorithms, and simulated annealing don’t guarantee the mathematically perfect answer, but they consistently produce near-optimal solutions, typically within 1-5% of the theoretical best, fast enough for real-time operations.

Open-source tools like Google OR-Tools exist for developers who want to build custom VRP solvers. But for most delivery businesses, commercial route optimization software packages these algorithms into ready-to-use workflows that require zero coding. AI-powered route optimization platforms are also emerging with machine learning capabilities that improve results over time.

ApproachTechnical Skill RequiredSetup TimeScalabilityBest For
Manual planning (spreadsheets, Google Maps)NoneImmediateBreaks down past 20-30 stopsSolo drivers, very small teams
Open-source tools (Google OR-Tools, OptaPlanner)Developer/data science expertiseWeeks to monthsHigh (with custom development)Tech teams building custom solutions
Route optimization software (commercial platforms)NoneSame dayHandles hundreds of stops across multiple driversDelivery businesses that need results without development

Step 2: Define Your Routing Constraints

2.1 Map Your VRP Type

Start by identifying which VRP variants apply to your operation. Do you have vehicle capacity limits? Customer time windows? Multiple depots? Orders arriving throughout the day? Use the diagnostic table from the previous section to pinpoint your VRP type.

Most businesses face a combination of 2-3 VRP types simultaneously. A courier operation might deal with capacity constraints (CVRP), time windows (VRPTW), and same-day pickups (PDP) all at once. Knowing your VRP type determines which solution capabilities matter most.

2.2 Document Your Business Rules

Before running any optimization, document the constraints that define your operation:

  • Vehicle specifications: Capacity limits (weight, volume, package count), vehicle type restrictions, operating hours
  • Driver constraints: Shift times, skill requirements, break regulations, start/end locations
  • Customer requirements: Preferred delivery windows, access restrictions, priority levels, special handling needs
  • Service time estimates: How long each stop type takes (residential vs. commercial, signature required vs. contactless)

Getting these inputs right is the difference between routes that work on paper and routes that work on the road. Route planning tools use these constraints to build feasible, optimized routes.

Step 3: Prepare Your Data and Run Optimization

3.1 Organize Your Inputs

Gather your stop data: customer addresses with geocoded coordinates, demand quantities or service requirements per stop, and time window preferences. Then configure your vehicle and driver profiles, including capacity limits, availability schedules, and any route restrictions.

Route optimization platforms accept CSV and Excel imports with automatic address validation, eliminating hours of manual data entry. Addresses get geocoded and validated before optimization runs, catching errors before your drivers hit the road instead of after a failed delivery.

3.2 Review and Adjust Results

Once optimization completes, review the results before dispatching:

  • Check route visualizations on the map for any obvious inefficiencies or geographic anomalies
  • Verify that time windows are feasible and capacity utilization is balanced across vehicles
  • Override specific assignments if needed (a regular customer who prefers a specific driver, or a stop that requires building access knowledge)
  • Re-optimize after manual adjustments to maintain overall efficiency

This review step takes minutes and prevents issues that would take hours to fix once drivers are on the road.

Step 4: Dispatch and Monitor

4.1 Send Routes to Drivers

One-click dispatch pushes optimized routes directly to driver mobile apps. Drivers see their stops in the optimized sequence with turn-by-turn navigation, time estimates, and any special instructions. No printouts, no phone calls, no morning confusion about who handles which stops.

4.2 Track Progress in Real Time

Real-time driver tracking shows vehicle locations and route progress on a live map. Automated customer notifications send accurate ETAs as drivers approach each stop. If disruptions occur, whether traffic delays, vehicle breakdowns, or last-minute cancellations, dynamic route optimization recalculates the remaining routes to keep everything on track.

No algorithm produces perfect routes every time. Real-world variables like parking availability, building access, customer no-shows, and road closures require human judgment on top of optimization. The goal is near-optimal routes that save hours of manual work, not theoretical perfection.

This workflow handles the vast majority of VRP scenarios. But real-world delivery operations throw curveballs. Here are the most common challenges and how to work around them.

See it in action

Optimize Multi-Stop Routes With One Click

Upload your stops, set vehicle capacities and time windows, and let Upper's algorithms build optimized routes for every driver.

Optimize Multi-Stop Routes With One Click

Common Vehicle Routing Challenges and How to Overcome Them

Even with optimization software in place, delivery operations hit friction points that require planning and adaptation. These four challenges trip up most businesses when they first start solving VRP, and each one has a practical fix.

Challenge #1: Last-Minute Order Changes

The Problem

New orders, cancellations, and address changes arrive after routes are already dispatched. Static route plans can’t absorb these changes without manual rework, and forced re-planning mid-day disrupts driver schedules and delays deliveries that were already on track.

How to Fix This

Use software with dynamic re-optimization that adjusts routes in real time without starting from scratch. Reserve 10-15% of vehicle capacity for same-day additions so you have room to absorb new orders. Set a daily cutoff time for non-urgent changes to batch optimize once, then handle exceptions dynamically as they come in.

Challenge #2: Inaccurate Address and Demand Data

The Problem

Bad addresses cause failed deliveries, wasted drive time, and frustrated drivers who can’t find the stop. Incorrect demand estimates lead to overloaded vehicles that have to return to the depot or wasted capacity on half-empty trucks. The best algorithm in the world can’t fix bad input data.

How to Fix This

Use software with built-in address validation and geocoding that flags errors at the import stage, before drivers leave the depot. Standardize your data collection process from order entry through to route planning so address formats and demand quantities are consistent. Audit your demand forecasts quarterly against actual delivery volumes to keep capacity planning accurate.

Challenge #3: Driver Resistance to New Systems

The Problem

Experienced drivers who’ve relied on their own route knowledge and Google Maps for years may resist switching to algorithm-generated plans. Unfamiliar technology creates friction during the transition, and if drivers quietly revert to their old manual routes, the entire VRP investment is wasted.

How to Fix This

Start with a pilot group of willing drivers and let the results speak for themselves. Choose software with a simple driver app where the workflow is straightforward: open the app, see the next stop, tap to navigate, mark complete. Show drivers the personal benefit first: less backtracking, more predictable schedules, less overtime, and fewer “which stop is next?” decisions. Most drivers prefer the optimized experience within the first week because it makes their day easier, not harder.

Challenge #4: Balancing Cost Optimization With Service Quality

The Problem

The cheapest route isn’t always the best route. Tighter time windows and customer preferences add constraints that increase costs, and over-optimizing for distance alone can cause missed delivery windows. On the flip side, under-optimizing for service quality means higher costs and lower driver productivity.

How to Fix This

Set clear priority rules in your software so time windows take precedence over distance when customer SLAs are at stake. Use tiered service levels: premium customers get tighter delivery windows, while standard customers get wider ones that give the algorithm more flexibility.

Monitor on-time delivery rates alongside cost-per-delivery metrics weekly to catch imbalances before they become customer complaints.

These challenges are solvable with the right software and process in place. The businesses that get VRP right don’t just save on costs. They build delivery operations that scale.

Solve Vehicle Routing Problems Faster With Upper

The vehicle routing problem sits at the core of every delivery operation. Whether you’re managing capacity constraints, time windows, dynamic orders, or all three at once, solving VRP directly translates to lower costs, higher driver productivity, and better customer experience. The businesses that invest in solving this problem build operations that scale efficiently instead of scaling costs.

Upper Route Planner handles VRP for delivery businesses without requiring custom development or data science expertise. Upload your stops from a spreadsheet, set your constraints including vehicle capacity, time windows, and driver schedules, and get optimized routes for your entire team in under a minute.

Upper’s route optimization algorithms balance workloads across drivers, respect every constraint you define, and adapt when plans change mid-day.

From one-click dispatch to real-time GPS tracking and automated customer notifications, Upper covers the full delivery workflow from route planning through proof of delivery. Businesses using Upper report completing 15-25% more stops per day with the same number of drivers and cutting route planning time by 95%.

Whether you’re running 5 drivers or 50, Upper scales with your operation without adding proportional planning overhead. Book a demo to see how Upper solves your vehicle routing challenges with routes optimized for your specific constraints.

FAQs on Vehicle Routing Problem

GPS routing optimizes a single journey between two points. VRP coordinates multiple vehicles serving multiple customers simultaneously, factoring in vehicle capacity, delivery time windows, driver schedules, and operational costs. A delivery business might use GPS for individual navigation while relying on VRP for strategic route planning across the entire operation.

Yes. Even a 5-driver operation creates thousands of possible route combinations daily. Small teams often see the biggest relative impact from VRP optimization because every inefficient route has an outsized effect on costs and capacity. The fuel savings alone typically cover software costs within the first month.

Most cloud-based route optimization platforms can be set up in a day. Upload your stop list, configure vehicle profiles, and you’re optimizing routes. Full team adoption, including driver training on the mobile app, typically takes 1-2 weeks. There’s no extended implementation timeline or IT integration required for basic operations.

Dynamic VRP solutions incorporate real-time changes including new orders, cancellations, and traffic disruptions. The software re-optimizes remaining routes instantly while keeping previously dispatched drivers on track. Most platforms let dispatchers add or remove stops on the fly without rebuilding the entire route plan.

At minimum, you need customer addresses, vehicle capacities, and driver availability. For better results, add time window preferences, service time estimates per stop type, and demand quantities. Most route optimization software accepts CSV or spreadsheet imports and validates addresses automatically during upload.

Modern VRP solutions achieve 85-95% accuracy in delivery time predictions when integrated with real-time traffic data. Accuracy improves over time as the system learns from actual performance patterns at specific locations and times of day. The key factor is data quality: accurate service times and realistic traffic models produce more reliable ETAs.

Most businesses see initial benefits within 30-60 days, including reduced fuel costs (15-30%), faster route planning (95% time reduction), and more stops per driver (15-25% increase). Full ROI typically reaches 200-400% within the first year, with compound gains as the operation scales and optimization parameters get refined.

Yes. VRP is classified as NP-hard, which means there is no known algorithm that can guarantee finding the optimal solution in a reasonable amount of time as the problem grows. Even a modest operation with 10 vehicles and 50 customers creates more possible route combinations than atoms in the universe.

That’s why practical VRP solvers use heuristic and metaheuristic methods that find near-optimal solutions quickly rather than searching for the mathematically perfect answer.

Not effectively. Google Maps handles navigation between points and supports up to 10 stops per route, but it cannot coordinate multiple vehicles, manage capacity constraints, enforce delivery time windows, or balance workloads across drivers. It’s a navigation tool, not a route optimization platform. For anything beyond a single driver with a short stop list, you need dedicated route optimization software built to handle VRP constraints.

Rakesh Patel

Rakesh Patel Founder of Upper Route Planner

Rakesh Patel, author of two defining books on reverse geotagging, is a trusted authority in routing and logistics. His innovative solutions at Upper Route Planner have simplified logistics for businesses across the board. A thought leader in the field, Rakesh's insights are shaping the future of modern-day logistics, making him your go-to expert for all things route optimization.

Route planning made simple

Stop wasting time. Start dispatching smarter.

Plan, assign, and optimize routes with Upper. The dispatch team you have, doing the work of a team twice the size.

7-day free trial No credit card Cancel anytime