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, asunserved: List<String> — so compute it yourself against the job count you sent:
- Perfect (100%)
- Good (95%+)
- Poor (<90%)
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)
- Shift duration minus breaks
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
Circuity Factor
5. Time-Based Metrics
On-Time Performance
The response doesn’t return on-time/late delivery counts directly — derive them by comparing eachVisit.arrival (in trips[].visits[]) against the corresponding job’s requested windows.
Wait Time Analysis
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
unservedagainst each job’spriorityfrom your request. - Customer preferences: cross-reference the
resourceassigned in eachTrip/Visitagainst the job’srankings. - Time window compliance: compare
Visit.arrivalagainst the job’swindows, and inspectunservedReasonsforDATE_TIME_WINDOW_CONFLICT/DATE_TIME_WINDOW_CONFLICT_SOFTentries.
Cost Effectiveness
When acosts configuration is provided in the request, the response includes an estimatedCost breakdown:
estimatedCost
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: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
- Reduce Travel
- Minimize Wait
- Optimize Routes
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:
- Define Success Metrics: Establish clear KPIs before optimization
- Regular Monitoring: Track metrics daily/weekly
- Iterative Improvement: Make small, measured changes
- Balance Trade-offs: No solution is perfect in all dimensions
- Document Decisions: Record why certain trade-offs were made
- Benchmark Regularly: Compare against historical performance
Related Topics
Scoring System
Understand score components
Performance Guide
Optimize solution speed
Cost Optimization
Minimize operational costs
Unassigned Reasons
Fix quality issues