MAG OptiAI
LogiAI use case

CVRP Routing: GTA Time-Window Delivery Network

A last-mile delivery team used LogiAI to preserve 100% on-time service while comparing a legacy west-depot route plan against a Midtown micro-hub fleet consolidation scenario.

01

Executive Summary

LogiAI turned a feasible routing plan into a lower-burden dispatch decision.

A last-mile delivery team needed to route 76 time-windowed stops across the Greater Toronto Area. The baseline used a legacy west-side distribution depot, 13 vehicles, 24-unit capacity per vehicle, a 900-minute route-duration limit, and the balanced routing objective.

The baseline met every delivery window, but it was not an efficient operating answer. LogiAI produced a feasible plan with 100% on-time service, yet the plan required 13 routes, 762.7 km of travel, and 87.8 hours of aggregate route duration.

AI Explain reframed the result correctly: the weakness was not lateness, because time windows were hard constraints. The weakness was the cost of preserving that promise from the wrong dispatch footprint with tight vehicle capacity and geographically dispersed stops.

The team tested one controlled What-if branch: move dispatch to MIDTOWN_MICRO_HUB, raise vehicle capacity from 24 to 26, and consolidate the plan from 13 vehicles to 12 while preserving the same 76 stops, the same time windows, the balanced objective, and the 900-minute route-duration policy.

The variant improved the operating picture. Total distance dropped from 762.7 km to 598.7 km, total duration dropped from 87.8 h to 75.3 h, vehicles used dropped from 13 to 12, and on-time service stayed at 100%.

Distance

762.7 km to 598.7 km

Route duration

87.8 h to 75.3 h

Vehicles

13 to 12

Core capabilities exercised

  • Single-depot CVRP optimization with stop demand, service duration, coordinates, and time-window inputs.
  • Fleet controls for vehicle count, capacity per vehicle, route-duration limits, objective, runtime, and solver policy.
  • Route map, KPI summary, route review, and route-level load/duration evidence for operational review.
  • Hard time-window feasibility so the customer promise stays explicit during scenario comparison.
  • AI Explain to interpret why a feasible routing plan is still operationally expensive.
  • What-if Analysis to test depot and fleet-policy changes before saving a new scenario.
  • AI Compare to evaluate deterministic KPI movement and summarize adoption trade-offs.
Routing environment
GTA last-mile delivery with hard appointment windows
Planning scale
76 stops across 7 delivery clusters
Demand
302 total units across the customer stop set
Baseline fleet
13 vehicles, 24-unit capacity per vehicle
Baseline result
762.7 km, 87.8 h, 13 vehicles, 100% on-time
Decision tested
Move dispatch to a Midtown micro-hub and consolidate to 12 vehicles
02

Operating context

The customer promise was protected, but the network design was expensive.

Vehicle routing is often judged incorrectly by one metric. If every delivery is on time, the route plan may look finished. In real operations, the same plan can still waste driver hours, mileage, fuel, and vehicle capacity.

This case represents a GTA delivery operation with customers spread across Downtown Toronto, North Toronto, East Toronto, West GTA, Markham, Oakville, and Brampton. Every stop has a numeric delivery window, demand quantity, service time, and coordinate location.

The operation started from a legacy west-depot footprint. That depot could support the plan, but it forced long cross-region route legs while the optimizer tried to keep every stop inside its hard appointment window.

LogiAI was used to separate feasibility from operating quality. The team needed to know whether the delivery promise could be preserved with a lower-distance and lower-duration plan before changing the dispatch strategy.

03

Challenge

The team needed lower route burden without relaxing time windows.

The baseline was intentionally feasible, not broken. That matters because many real routing decisions start after the team already has a plan that works on paper.

The planning question was whether the current operating footprint was too expensive. A 100% on-time baseline still required 13 vehicles, 13 routes, 762.7 km, and 87.8 aggregate route hours. Several route cards also showed near-capacity loads, which meant the fleet policy was doing real work.

The team needed a controlled branch that did not relax service commitments, remove customers, or change demand. The What-if had to test a practical logistics decision: a more central dispatch point plus slightly higher vehicle capacity.

The optimization model had to preserve:

  • All 76 delivery stops had to remain served.
  • Time windows were hard constraints, not soft preferences.
  • The baseline depot was geographically west of many stop clusters.
  • Vehicle count and capacity directly affected route consolidation.
  • Route duration included travel, service time, waiting, and depot return.
  • The comparison needed to preserve 100% on-time service while reducing route burden.
04

Scenario setup

LogiAI staged the depot, stops, demand, service time, and delivery windows.

The team uploaded a single routing CSV into LogiAI. The first row represented the depot, and the remaining rows represented the delivery stops.

The scenario used 76 customer stops, 302 total demand units, service times per stop, and delivery windows for every customer. The data was large enough to make route structure visible without turning the page into a toy example.

The workspace preview helped confirm the stop records, demand values, service times, and delivery windows before the optimizer was run.

Uploaded routing scope

  • 76 stop records plus one depot row.
  • 302 total demand units.
  • Seven geographic delivery clusters across the GTA.
  • Stop-level service times.
  • Stop-level time windows in minutes from scenario start.
  • Latitude and longitude coordinates for depot and customers.
LogiAI CVRP scenario setup with uploaded routing CSV.
The setup step captured the validated routing CSV and scenario context.
LogiAI CVRP stop preview with delivery windows.
Stop records include demand, service time, and delivery-window data.
LogiAI CVRP validation panel showing ready status and route readiness.
The workspace validated the routing inputs before configuration.
05

Configuration

The baseline used balanced routing with tight fleet capacity.

The baseline used the balanced routing objective, 13 vehicles, 24-unit capacity per vehicle, no max-stops-per-route cap, and a 900-minute maximum route duration.

Advanced solver settings stayed automatic and solver logging remained off. That kept the case focused on the routing policy decision, not manual solver tuning.

The configuration also kept the runtime at 10 seconds. The result therefore reflects a normal product workflow: upload the routing scenario, configure fleet policy, run the solver, and compare a controlled branch.

Baseline configuration

  • Balanced routes objective.
  • 13 baseline vehicles.
  • 24-unit baseline capacity per vehicle.
  • 900-minute maximum route duration.
  • No maximum-stops-per-route cap.
  • Automatic first-solution and local-search settings.
  • Solver logging off.
LogiAI CVRP configuration with 13 vehicles, 24 capacity, balanced objective, and 900 minute route duration.
Configuration focused on fleet policy and route duration, with advanced solver settings left automatic.
06

Optimization model

The run converted the routing CSV into a constrained vehicle-routing solve.

LogiAI translated the scenario into a CVRP solve with capacity, route-duration, service-time, and hard time-window constraints.

The run step made the model auditable before execution. The team could confirm the depot, stop count, fleet policy, objective, and solver runtime before asking the backend to optimize.

Because the model preserved hard time windows, a feasible result meant every stop could be served inside its requested delivery window.

Optimization model considered

  • Each stop must be assigned to a route.
  • Vehicle load cannot exceed configured capacity.
  • Service starts must respect each stop time window.
  • Route duration includes travel, service, time-window waiting, and return to depot.
  • The balanced objective evaluates route quality rather than only total distance.
  • The solver can use fewer vehicles only when capacity and timing remain feasible.
LogiAI CVRP run step showing scenario readiness and optimization action.
The route optimization run was launched only after the scenario and configuration were ready.
07

Baseline evidence

The baseline was feasible, on time, and still expensive.

The baseline produced a feasible routing plan with 100% on-time service. That is important, but it is not the same as an optimal operating footprint.

The plan required 13 vehicles and 13 routes to serve the 76 stops. It accumulated 762.7 km of total distance and 87.8 hours of aggregate route duration.

Those numbers made the case useful. The route plan protected every appointment window, but the route map and route review showed the cost of doing so from the legacy west-depot location.

MetricBaseline
Total stops76
Routes13
Vehicles configured13
Vehicle capacity24
Total distance762.7 km
Total duration87.8 h
On-time service100%
Solver runtime983 ms
LogiAI CVRP baseline KPI summary showing 762.7 km, 87.8 hours, 13 vehicles, and 100% on-time service.
The baseline met every time window, but required 13 vehicles and 762.7 km of travel.
LogiAI CVRP baseline route map showing 13 route lines from the west depot.
The route map made the west-depot footprint and cross-region route legs visible.
LogiAI CVRP baseline route review showing route cards and load details.
Route review exposed route-level load, duration, and stop sequence details.
08

AI Explain

AI Explain diagnosed route burden instead of pretending lateness was the issue.

AI Explain helped keep the interpretation honest. Since the time windows are hard, the right diagnosis is not that customers are late. The diagnosis is that the current plan is expensive even while it keeps every customer promise.

The explanation highlighted depot location, route distance, vehicle utilization, hard time windows, and route-duration pressure as the practical reasons the baseline deserved a What-if test.

That led to a precise scenario: do not relax delivery windows, do not remove stops, and do not change demand. Instead, test whether a central micro-hub and modest capacity change can reduce route burden.

LogiAI CVRP AI Explain output interpreting why the baseline is operationally expensive.
AI Explain connected the feasible baseline to depot location, route distance, utilization, hard windows, and duration pressure.
09

What-if Analysis

The branch tested a Midtown micro-hub and fleet consolidation.

What the branch changed

  • Moved dispatch to MIDTOWN_MICRO_HUB.
  • Changed vehicles from 13 to 12.
  • Changed capacity per vehicle from 24 to 26.
  • Kept the same 76 stops and time windows.
  • Kept max route duration at 900 minutes.
  • Kept balanced objective and automatic solver settings.

The What-if branch moved dispatch from WEST_DC to MIDTOWN_MICRO_HUB at latitude 43.7060 and longitude -79.3980.

The same branch changed the fleet from 13 vehicles at 24 capacity to 12 vehicles at 26 capacity. Max route duration stayed at 900 minutes, the balanced objective stayed unchanged, and the same 76 time-windowed stops remained in scope.

This made the branch operationally meaningful. It tested a depot and fleet-policy decision, not a cosmetic parameter change.

LogiAI CVRP What-if prompt for the Midtown micro-hub and fleet consolidation branch.
The What-if prompt asked LogiAI to move dispatch to MIDTOWN_MICRO_HUB, use 12 vehicles, raise capacity to 26, and keep the balanced objective and route-duration policy.
LogiAI CVRP What-if proposal review for the Midtown micro-hub and fleet consolidation branch.
The proposal review showed the controlled mutations before the branch ran: depot location, vehicle count, and vehicle capacity.

Midtown micro-hub branch result

The branch completed as a stronger routing plan. It kept 100% on-time service, served the same 76 stops, and reduced the fleet footprint from 13 routes to 12.

The result was not just a lower-distance map. The route-duration burden fell from 87.8 hours to 75.3 hours, which means the micro-hub and capacity change reduced the operating effort needed to keep the same customer promise.

MetricBaselineMidtown branch
Total distance762.7 km598.7 km
Total duration87.8 h75.3 h
Vehicles used1312
Routes used1312
On-time service100%100%
LogiAI CVRP What-if result showing 598.7 km, 75.3 hours, 12 vehicles, and 100% on-time service.
The validated branch reduced route burden while preserving the same delivery promise.
LogiAI CVRP What-if route map with the Midtown micro-hub variant.
The variant route map reflected the new dispatch footprint.
LogiAI CVRP What-if route review showing 12 routes and vehicle load details.
Route review confirmed the branch used 12 routes with higher-capacity vehicles.
10

AI Compare

AI Compare showed why the Midtown branch was the stronger scenario.

After saving the Midtown micro-hub branch, the team used AI Compare to evaluate the saved baseline against the saved variant.

The comparison was intentionally narrow: Baseline was the legacy WEST_DC plan with 13 vehicles at 24 capacity, and the variant was the MIDTOWN_MICRO_HUB plan with 12 vehicles at 26 capacity. The stop list, delivery windows, balanced objective, 900-minute route-duration policy, and 10-second solve budget stayed the same.

Baseline scenario

Legacy WEST_DC delivery plan with 13 vehicles, 24-unit capacity, balanced routes, 76 stops, hard time windows, and 900-minute route-duration policy.

Midtown branch

MIDTOWN_MICRO_HUB dispatch with 12 vehicles, 26-unit capacity, the same customer stops, the same windows, and the same routing objective.

LogiAI CVRP AI Compare setup comparing baseline and Midtown micro-hub scenario.
AI Compare selected the saved baseline and the saved Midtown micro-hub scenario.

That made the result easy to trust. The variant reduced total distance by 164.0 km and total duration by 12.5 hours while using one fewer vehicle. It did this without losing the 100% on-time service level or dropping any of the 76 stops.

AI Compare also clarified the kind of decision being made. This was not a service-level trade-off where fewer vehicles created lateness. It was a network-design improvement: the dispatch point moved closer to the demand center, and capacity increased enough to consolidate one route.

The baseline remained feasible, so the comparison did not argue that the old plan was broken. It argued that the old plan was unnecessarily expensive for the same delivery promise.

Distance

Baseline: 762.7 km

Variant: 598.7 km

-164 km

Duration

Baseline: 87.8 h

Variant: 75.3 h

-12.5 h

Vehicles

Baseline: 13

Variant: 12

-1

LogiAI CVRP AI Compare KPI delta table showing distance, duration, vehicles, stops, and lateness.
The deterministic comparison confirmed lower distance, lower duration, and one fewer vehicle while on-time service stayed at 100%.
MetricBaselineMidtown branchDelta
Total distance762.7 km598.7 km-164 km
Total duration5268 min4516 min-752 min
Vehicles used1312-1
Total stops7676No change
On-time service100%100%No change
Average lateness0 min0 minNo change
Max lateness0 min0 minNo change
Runtime983 ms647 ms-336 ms

What AI Summary added

The AI Summary turned the deterministic KPI movement into an operating recommendation. It framed the Midtown branch as the stronger candidate because it lowered distance, duration, and vehicle count while preserving the same hard delivery-window performance.

The summary also made the adoption caveat clear: before changing the real operation, the team should validate whether the Midtown micro-hub is available, whether the 26-unit vehicles are realistic, and whether depot operating costs still support the savings.

LogiAI CVRP AI Compare AI Summary with recommendation and trade-offs.
AI Summary translated the KPI movement and adoption caveats into a planning recommendation.
11

Decision

The better plan preserved service quality while reducing the route footprint.

The team selected the Midtown micro-hub fleet consolidation as the stronger scenario to review.

The baseline was service-feasible, but expensive. The variant protected the same time-window promise while reducing distance, route duration, and vehicle count.

The final recommendation was not to add random fleet capacity. It was to move dispatch closer to the demand center and use slightly higher-capacity vehicles so the operation could consolidate routes without sacrificing on-time delivery.

For routing teams, that is the practical value of LogiAI CVRP: it can validate a feasible baseline, explain why it still costs too much, test a realistic operating policy, and compare the result before changing the network.

Planning scale
76 stops across 7 delivery clusters
Demand
302 total units across the customer stop set
Baseline fleet
13 vehicles, 24-unit capacity per vehicle
Baseline result
762.7 km, 87.8 h, 13 vehicles, 100% on-time
Decision tested
Move dispatch to a Midtown micro-hub and consolidate to 12 vehicles

A 100% on-time route plan can still be operationally expensive.

Hard time windows make the customer promise explicit during optimization.

AI Explain helped shift the question from lateness to route burden and depot footprint.

What-if Analysis tested one realistic logistics decision across depot and fleet policy.

AI Compare showed the exact KPI movement before the team adopted the branch.

Related LogiAI use cases

More LogiAI routing and logistics stories are being prepared for the same report-style workflow.

Coming soon

Multi-Depot Route Planning

A future LogiAI case will show how teams compare multiple depot options, transfer points, and regional route ownership.

LogiAI case study coming soon
Coming soon

Fleet Rebalancing

A future LogiAI case will show how planners rebalance vehicle counts, capacity, and route duration across operating zones.

LogiAI case study coming soon
Coming soon

Pickup And Delivery

A future LogiAI case will show paired pickup and drop-off decisions with timing, load, and route-sequence constraints.

LogiAI case study coming soon