Spaces:
Running
Running
File size: 571 Bytes
2574e86 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | use crate::constraints::route_metrics::{
balance_workload_match_count, balance_workload_score, RouteConstraint,
};
use crate::domain::FieldServicePlan;
use solverforge::prelude::*;
use solverforge::IncrementalConstraint;
/// SOFT: discourage concentrating all service and travel minutes on one route.
pub fn constraint() -> impl IncrementalConstraint<FieldServicePlan, HardSoftScore> {
RouteConstraint::new(
"Balance Workload",
false,
HardSoftScore::of(0, 1),
balance_workload_score,
balance_workload_match_count,
)
}
|