Struct vrp_core::solver::objectives::WorkBalance [−][src]
pub struct WorkBalance {}Expand description
A type which provides functionality needed to balance work across all routes.
Implementations
Creates (constraint, objective) type pair which balances max load across all tours.
pub fn new_activity_balanced(
threshold: Option<f64>,
tolerance: Option<f64>
) -> (TargetConstraint, TargetObjective)
pub fn new_activity_balanced(
threshold: Option<f64>,
tolerance: Option<f64>
) -> (TargetConstraint, TargetObjective)
Creates (constraint, objective) type pair which balances activities across all tours.
pub fn new_distance_balanced(
threshold: Option<f64>,
tolerance: Option<f64>
) -> (TargetConstraint, TargetObjective)
pub fn new_distance_balanced(
threshold: Option<f64>,
tolerance: Option<f64>
) -> (TargetConstraint, TargetObjective)
Creates (constraint, objective) type pair which balances travelled distances across all tours.
pub fn new_duration_balanced(
threshold: Option<f64>,
tolerance: Option<f64>
) -> (TargetConstraint, TargetObjective)
pub fn new_duration_balanced(
threshold: Option<f64>,
tolerance: Option<f64>
) -> (TargetConstraint, TargetObjective)
Creates (constraint, objective) type pair which balances travelled durations across all tours.