pub struct Variation<I, X, M, P> {
pub init: I,
pub crossover: X,
pub mutation: M,
pub repair: P,
}Expand description
The variation operators of algorithms that bring their own selection (NSGA-II, NSGA-III, MOEA/D, MAP-Elites): initialisation, crossover, mutation and repair.
Fields§
§init: ICreates the initial genomes.
crossover: XRecombines two parents.
mutation: MMutates a child.
repair: PRepairs a child after variation; NoRepair if none.
Implementations§
Source§impl<I, X, M, P> Variation<I, X, M, P>
impl<I, X, M, P> Variation<I, X, M, P>
Trait Implementations§
Source§impl<I: PartialEq, X: PartialEq, M: PartialEq, P: PartialEq> PartialEq for Variation<I, X, M, P>
impl<I: PartialEq, X: PartialEq, M: PartialEq, P: PartialEq> PartialEq for Variation<I, X, M, P>
impl<I: PartialEq, X: PartialEq, M: PartialEq, P: PartialEq> StructuralPartialEq for Variation<I, X, M, P>
Auto Trait Implementations§
impl<I, X, M, P> Forget for Variation<I, X, M, P>
impl<I, X, M, P> Freeze for Variation<I, X, M, P>
impl<I, X, M, P> Move for Variation<I, X, M, P>
impl<I, X, M, P> RefUnwindSafe for Variation<I, X, M, P>
impl<I, X, M, P> Send for Variation<I, X, M, P>
impl<I, X, M, P> Sync for Variation<I, X, M, P>
impl<I, X, M, P> Unpin for Variation<I, X, M, P>
impl<I, X, M, P> UnsafeUnpin for Variation<I, X, M, P>
impl<I, X, M, P> UnwindSafe for Variation<I, X, M, P>
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