Struct vrp_core::solver::objectives::TotalValue
source · [−]pub struct TotalValue {}Expand description
A type which provides functionality needed to maximize total value of served jobs.
Implementations
sourceimpl TotalValue
impl TotalValue
sourcepub fn maximize(
max_value: f64,
reduction_factor: f64,
solution_value_func: SolutionValueFn,
job_read_value_func: ValueFn,
job_write_value_func: JobWriteValueFn,
state_key: i32,
merge_code: i32
) -> (TargetConstraint, TargetObjective)
pub fn maximize(
max_value: f64,
reduction_factor: f64,
solution_value_func: SolutionValueFn,
job_read_value_func: ValueFn,
job_write_value_func: JobWriteValueFn,
state_key: i32,
merge_code: i32
) -> (TargetConstraint, TargetObjective)
Creates (constraint, objective) type pair which provides logic to maximize total value.
Auto Trait Implementations
impl RefUnwindSafe for TotalValue
impl Send for TotalValue
impl Sync for TotalValue
impl Unpin for TotalValue
impl UnwindSafe for TotalValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more