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]

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]

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]

Creates default mutation (ruin and recreate) with default parameters.

pub fn create_default_random_ruin() -> Arc<dyn Ruin + Send + Sync>[src]

Creates default random ruin method.

Trait Implementations

impl HyperHeuristic for StaticSelective[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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V