Optimization Objectives¶
Flio.ai API offers various optimization objectives suitable for different business needs. Each objective focuses on finding the best solution according to different criteria.
🎯 Available Optimization Objectives¶
Default Objective¶
System default optimization - Balanced approach - General performance optimization
Distance Objective¶
Minimize total distance - Reduces fuel consumption - Minimizes vehicle wear - Provides environmentally friendly solutions
Duration Objective¶
Minimize total time - Provides fast delivery - Reduces labor costs - Increases customer satisfaction
Cost Objective¶
Minimize total cost - Balances distance, time and fixed costs - Maximizes ROI - Comprehensive cost optimization
⚙️ Objective Selection¶
You can specify the optimization objective using the options.objective parameter:
📊 Objective Comparison¶
| Objective | Focus | Use Case | Benefits |
|---|---|---|---|
| Default | Balanced | General use | Multi-purpose optimization |
| Distance | Distance | Logistics, courier | Fuel savings, eco-friendly |
| Duration | Time | Emergency delivery, service | Fast service, high efficiency |
| Cost | Cost | Budget-focused | Comprehensive cost control |
💡 Which Objective Should I Choose?¶
Choose Distance if:¶
- Fuel costs are high
- Environmental impact is important
- Vehicle count is limited
Choose Duration if:¶
- Fast delivery is critical
- Labor costs are high
- Customer satisfaction is priority
Choose Cost if:¶
- You want comprehensive cost analysis
- You want to balance different cost factors
- You're targeting ROI maximization
🔧 Advanced Usage¶
You can test different objectives for different scenarios:
{
"vehicles": [...],
"jobs": [...],
"options": {
"problem": "VRPTW",
"objective": "cost",
"solver": "mathematical",
"timeout": 300
}
}
Analyze your scenario and test different options for the most suitable objective selection.