Struct vrp_core::solver::objectives::GenericValue
source · [−]pub struct GenericValue {}Expand description
A helper for building objective functions.
Implementations
sourceimpl GenericValue
impl GenericValue
sourcepub fn new_constrained_objective(
threshold: Option<f64>,
job_merge_func: JobMergeFn,
route_value_func: RouteValueFn,
solution_value_func: SolutionValueFn,
estimate_value_func: EstimateValueFn,
state_key: i32
) -> (TargetConstraint, TargetObjective)
pub fn new_constrained_objective(
threshold: Option<f64>,
job_merge_func: JobMergeFn,
route_value_func: RouteValueFn,
solution_value_func: SolutionValueFn,
estimate_value_func: EstimateValueFn,
state_key: i32
) -> (TargetConstraint, TargetObjective)
Creates a new instance of constraint and related objective.
Auto Trait Implementations
impl RefUnwindSafe for GenericValue
impl Send for GenericValue
impl Sync for GenericValue
impl Unpin for GenericValue
impl UnwindSafe for GenericValue
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