Default Objective¶
Overview¶
The Default Objective is a thin wrapper that currently inherits all behavior from the Distance Objective. That means, by default, route optimization will focus on minimizing total distance traveled across all vehicles. Use it as a baseline or fallback when you have not explicitly selected another objective (cost, duration, etc.).
When to Use¶
- When you haven't specified a particular optimization preference.
- As a starting point for testing before choosing specialized objectives.
- When you want a balanced, general-purpose optimization approach.
- For simple routing scenarios where distance minimization is acceptable.
Behavior¶
- Inherits all behavior from the Distance Objective.
- Only considers distance cost (
per_km) for optimization. - Fixed costs (
fixed) and time-based costs (per_hour) are ignored. - Default
per_kmvalue of 1000 is applied if not specified. - Provides consistent baseline performance across different problem types.
General Validation¶
- All validation rules from Distance Objective apply.
- Ensure every vehicle has a non-negative
per_kmcost defined. - Vehicle capacity and job demand must be valid and consistent.
- Distances between locations must be accurate or computable.
- No additional validation requirements beyond standard distance optimization.