pub struct ConstructionHeuristicPhase<S, M, P, Fo>{ /* private fields */ }Expand description
Construction heuristic phase that builds an initial solution.
This phase iterates over uninitialized entities and assigns values to their planning variables using a greedy approach.
§Type Parameters
S- The planning solution typeM- The move typeP- The entity placer typeFo- The forager type
Implementations§
Source§impl<S, M, P, Fo> ConstructionHeuristicPhase<S, M, P, Fo>
impl<S, M, P, Fo> ConstructionHeuristicPhase<S, M, P, Fo>
Trait Implementations§
Source§impl<S, M, P, Fo> Debug for ConstructionHeuristicPhase<S, M, P, Fo>where
S: PlanningSolution,
M: Move<S>,
P: EntityPlacer<S, M> + Debug,
Fo: ConstructionForager<S, M> + Debug,
impl<S, M, P, Fo> Debug for ConstructionHeuristicPhase<S, M, P, Fo>where
S: PlanningSolution,
M: Move<S>,
P: EntityPlacer<S, M> + Debug,
Fo: ConstructionForager<S, M> + Debug,
Source§impl<S, D, M, P, Fo> Phase<S, D> for ConstructionHeuristicPhase<S, M, P, Fo>where
S: PlanningSolution,
D: ScoreDirector<S>,
M: Move<S>,
P: EntityPlacer<S, M>,
Fo: ConstructionForager<S, M>,
impl<S, D, M, P, Fo> Phase<S, D> for ConstructionHeuristicPhase<S, M, P, Fo>where
S: PlanningSolution,
D: ScoreDirector<S>,
M: Move<S>,
P: EntityPlacer<S, M>,
Fo: ConstructionForager<S, M>,
Source§fn solve(&mut self, solver_scope: &mut SolverScope<'_, S, D>)
fn solve(&mut self, solver_scope: &mut SolverScope<'_, S, D>)
Executes this phase. Read more
Source§fn phase_type_name(&self) -> &'static str
fn phase_type_name(&self) -> &'static str
Returns the name of this phase type.
Auto Trait Implementations§
impl<S, M, P, Fo> Freeze for ConstructionHeuristicPhase<S, M, P, Fo>
impl<S, M, P, Fo> RefUnwindSafe for ConstructionHeuristicPhase<S, M, P, Fo>where
P: RefUnwindSafe,
Fo: RefUnwindSafe,
impl<S, M, P, Fo> Send for ConstructionHeuristicPhase<S, M, P, Fo>
impl<S, M, P, Fo> Sync for ConstructionHeuristicPhase<S, M, P, Fo>
impl<S, M, P, Fo> Unpin for ConstructionHeuristicPhase<S, M, P, Fo>
impl<S, M, P, Fo> UnwindSafe for ConstructionHeuristicPhase<S, M, P, Fo>where
P: UnwindSafe,
Fo: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more