pub struct BestFitForager<S, M> { /* private fields */ }Expand description
Best Fit forager - evaluates all moves and picks the best.
This forager evaluates each candidate move by executing it, calculating the score, and undoing it. The move with the best score is selected.
Implementations§
Source§impl<S, M> BestFitForager<S, M>
impl<S, M> BestFitForager<S, M>
Trait Implementations§
Source§impl<S: Clone, M: Clone> Clone for BestFitForager<S, M>
impl<S: Clone, M: Clone> Clone for BestFitForager<S, M>
Source§fn clone(&self) -> BestFitForager<S, M>
fn clone(&self) -> BestFitForager<S, M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S, M> ConstructionForager<S, M> for BestFitForager<S, M>where
S: PlanningSolution,
M: Move<S>,
impl<S, M> ConstructionForager<S, M> for BestFitForager<S, M>where
S: PlanningSolution,
M: Move<S>,
Source§impl<S, M> Debug for BestFitForager<S, M>
impl<S, M> Debug for BestFitForager<S, M>
Auto Trait Implementations§
impl<S, M> Freeze for BestFitForager<S, M>
impl<S, M> RefUnwindSafe for BestFitForager<S, M>where
S: RefUnwindSafe,
M: RefUnwindSafe,
impl<S, M> Send for BestFitForager<S, M>
impl<S, M> Sync for BestFitForager<S, M>
impl<S, M> Unpin for BestFitForager<S, M>
impl<S, M> UnwindSafe for BestFitForager<S, M>where
S: UnwindSafe,
M: UnwindSafe,
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