pub enum Scheme {
Generational,
SteadyState {
only_if_better: bool,
},
}Expand description
How offspring enter the population.
Variants§
Generational
Each generation replaces the whole population except the
Config::elitism best, which are copied unchanged.
SteadyState
Each step breeds two offspring; each replaces the current worst individual. With
only_if_better, only if it is strictly cheaper. One generation is counted per
population_size offspring.
Trait Implementations§
impl Copy for Scheme
impl Eq for Scheme
impl StructuralPartialEq for Scheme
Auto Trait Implementations§
impl Forget for Scheme
impl Freeze for Scheme
impl Move for Scheme
impl RefUnwindSafe for Scheme
impl Send for Scheme
impl Sync for Scheme
impl Unpin for Scheme
impl UnsafeUnpin for Scheme
impl UnwindSafe for Scheme
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