Struct vrp_core::solver::hyper::StaticSelective [−][src]
pub struct StaticSelective { /* fields omitted */ }Expand description
A simple hyper-heuristic which selects mutation operator from the list with fixed (static) probabilities.
Implementations
impl StaticSelective[src]
impl StaticSelective[src]pub fn new(mutation_group: MutationGroup) -> Self[src]
pub fn new(mutation_group: MutationGroup) -> Self[src]Creates an instance of StaticSelective from mutation groups.
pub fn new_with_defaults(
problem: Arc<Problem>,
environment: Arc<Environment>
) -> Self[src]
pub fn new_with_defaults(
problem: Arc<Problem>,
environment: Arc<Environment>
) -> Self[src]Creates an instance of StaticSelective with default parameters.
pub fn create_default_mutation(
problem: Arc<Problem>,
environment: Arc<Environment>
) -> Arc<dyn Mutation + Send + Sync>[src]
pub fn create_default_mutation(
problem: Arc<Problem>,
environment: Arc<Environment>
) -> Arc<dyn Mutation + Send + Sync>[src]Creates default mutation (ruin and recreate) with default parameters.
Trait Implementations
impl HyperHeuristic for StaticSelective[src]
impl HyperHeuristic for StaticSelective[src]fn search(
&mut self,
refinement_ctx: &RefinementContext,
individuals: Vec<&Individual>
) -> Vec<Individual>[src]
fn search(
&mut self,
refinement_ctx: &RefinementContext,
individuals: Vec<&Individual>
) -> Vec<Individual>[src]Performs a new search in solution space using individuals provided.
Auto Trait Implementations
impl !RefUnwindSafe for StaticSelective
impl Send for StaticSelective
impl Sync for StaticSelective
impl Unpin for StaticSelective
impl !UnwindSafe for StaticSelective
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,