Struct vrp_core::construction::heuristics::FarthestResultSelector
source · pub struct FarthestResultSelector {}
Expand description
Selects a job with the highest cost insertion occurs into a new route.
Trait Implementations§
source§impl Default for FarthestResultSelector
impl Default for FarthestResultSelector
source§fn default() -> FarthestResultSelector
fn default() -> FarthestResultSelector
Returns the “default value” for a type. Read more
source§impl ResultSelector for FarthestResultSelector
impl ResultSelector for FarthestResultSelector
source§fn select_insertion(
&self,
insertion_ctx: &InsertionContext,
left: InsertionResult,
right: InsertionResult
) -> InsertionResult
fn select_insertion( &self, insertion_ctx: &InsertionContext, left: InsertionResult, right: InsertionResult ) -> InsertionResult
Selects one insertion result from two to promote as best.
source§fn select_cost<'a>(
&self,
left: &'a InsertionCost,
right: &'a InsertionCost
) -> Either<&'a InsertionCost, &'a InsertionCost> ⓘ
fn select_cost<'a>( &self, left: &'a InsertionCost, right: &'a InsertionCost ) -> Either<&'a InsertionCost, &'a InsertionCost> ⓘ
Selects one insertion result from two to promote as best.
Auto Trait Implementations§
impl RefUnwindSafe for FarthestResultSelector
impl Send for FarthestResultSelector
impl Sync for FarthestResultSelector
impl Unpin for FarthestResultSelector
impl UnwindSafe for FarthestResultSelector
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more