Skip to main content

Solution Quality Metrics

Understanding solution quality goes beyond simple feasibility. This guide explains the key metrics for evaluating VRP solutions, how to interpret them, and strategies for improvement.

What Makes a Good Solution?

A high-quality VRP solution balances multiple objectives:

Core Quality Metrics

1. Feasibility Rate

The percentage of jobs successfully assigned. The response doesn’t return this rate directly — it only reports which jobs were left out, as unserved: List<String> — so compute it yourself against the job count you sent:
Ideal scenario - all jobs scheduled.

2. Occupancy

How full the schedule is in terms of work time versus available time:
Work Time includes:
  • Travel time
  • Service time
  • Wait time (if any)
Available Time:
  • Shift duration minus breaks
These are flat, top-level fields on the response — there’s no nested breakdown object. Interpreting Occupancy:
  • < 60%: Underutilized - consider reducing fleet
  • 60-85%: Optimal range - good efficiency with buffer
  • > 85%: High utilization - limited flexibility
  • > 95%: Over-stretched - risk of delays

3. Workload Fairness

Measures how evenly work is distributed across resources:
workloadFairness is returned directly by the solver. Per-resource workTime comes from each Trip in the trips array — there’s no separate resourceWorkloads field with a per-resource deviation; sum workTime by resource yourself to compute the average and standard deviation.

4. Travel Efficiency

Multiple metrics evaluate routing efficiency:

Total Distance & Time

Distance per Job

Lower values indicate better clustering and routing.

Circuity Factor

Values close to 1.0 indicate direct routes.

5. Time-Based Metrics

On-Time Performance

The response doesn’t return on-time/late delivery counts directly — derive them by comparing each Visit.arrival (in trips[].visits[]) against the corresponding job’s requested windows.

Wait Time Analysis

High wait times indicate:
  • Poor time window alignment
  • Suboptimal route sequencing
  • Need for dynamic scheduling

Advanced Quality Indicators

Service Level Metrics

None of priority fulfillment rate, customer-preference match rate, or time-window-compliance rate are returned as dedicated response fields. Derive them yourself from what the response does provide:
  • Priority fulfillment: cross-reference unserved against each job’s priority from your request.
  • Customer preferences: cross-reference the resource assigned in each Trip/Visit against the job’s rankings.
  • Time window compliance: compare Visit.arrival against the job’s windows, and inspect unservedReasons for DATE_TIME_WINDOW_CONFLICT / DATE_TIME_WINDOW_CONFLICT_SOFT entries.

Cost Effectiveness

When a costs configuration is provided in the request, the response includes an estimatedCost breakdown:
estimatedCost
There’s no separate utilization-rate, cost-per-job, cost-per-km, overtime-rate, profit-margin, or jobs-per-resource-hour field — derive those yourself from estimatedCost plus your own job/resource counts if you need them.

Comparing Solutions

When evaluating alternative solutions:

Multi-Criteria Comparison

Pareto Optimization

Often no single “best” solution exists. Consider Pareto-optimal solutions:
A solution is Pareto-optimal if improving one metric necessarily worsens another. Keep multiple Pareto-optimal solutions for different scenarios.

Weighted Scoring

Create a composite score based on business priorities:

Improvement Strategies

For Low Feasibility

1

Enable Partial Planning

2

Relax Constraints

Convert hard constraints to soft where possible
3

Add Resources

Increase fleet size or extend shifts
4

Review Requirements

Check if all constraints are necessary

For Poor Efficiency

For Imbalanced Workload

Monitoring Quality Over Time

Track metrics to identify trends:

Quality Benchmarks

Industry standards for different sectors:
Benchmarks vary by region, business model, and service level agreements. Use these as starting points and adjust based on your specific requirements.

Best Practices

Quality Management Guidelines:
  1. Define Success Metrics: Establish clear KPIs before optimization
  2. Regular Monitoring: Track metrics daily/weekly
  3. Iterative Improvement: Make small, measured changes
  4. Balance Trade-offs: No solution is perfect in all dimensions
  5. Document Decisions: Record why certain trade-offs were made
  6. Benchmark Regularly: Compare against historical performance

Scoring System

Understand score components

Performance Guide

Optimize solution speed

Cost Optimization

Minimize operational costs

Unassigned Reasons

Fix quality issues