pub struct ConstructionHeuristicPhase<S, M>where
S: PlanningSolution,
M: Move<S>,{ /* 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 type
Implementations§
Source§impl<S, M> ConstructionHeuristicPhase<S, M>where
S: PlanningSolution,
M: Move<S>,
impl<S, M> ConstructionHeuristicPhase<S, M>where
S: PlanningSolution,
M: Move<S>,
Sourcepub fn new(
placer: Box<dyn EntityPlacer<S, M>>,
forager: Box<dyn ConstructionForager<S, M>>,
) -> Self
pub fn new( placer: Box<dyn EntityPlacer<S, M>>, forager: Box<dyn ConstructionForager<S, M>>, ) -> Self
Creates a new construction heuristic phase.
Trait Implementations§
Source§impl<S, M> Debug for ConstructionHeuristicPhase<S, M>where
S: PlanningSolution,
M: Move<S>,
impl<S, M> Debug for ConstructionHeuristicPhase<S, M>where
S: PlanningSolution,
M: Move<S>,
Source§impl<S, M> Phase<S> for ConstructionHeuristicPhase<S, M>where
S: PlanningSolution,
M: Move<S>,
impl<S, M> Phase<S> for ConstructionHeuristicPhase<S, M>where
S: PlanningSolution,
M: Move<S>,
Source§fn solve(&mut self, solver_scope: &mut SolverScope<S>)
fn solve(&mut self, solver_scope: &mut SolverScope<S>)
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> Freeze for ConstructionHeuristicPhase<S, M>
impl<S, M> !RefUnwindSafe for ConstructionHeuristicPhase<S, M>
impl<S, M> Send for ConstructionHeuristicPhase<S, M>
impl<S, M> !Sync for ConstructionHeuristicPhase<S, M>
impl<S, M> Unpin for ConstructionHeuristicPhase<S, M>where
M: Unpin,
impl<S, M> !UnwindSafe for ConstructionHeuristicPhase<S, M>
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