pub struct IslandModelBuilder<G, Fit, Sel, Cross, Mut, F = f64>where
G: EvolutionaryGenome,
F: FitnessValue,{ /* private fields */ }Expand description
Builder for IslandModel
Implementations§
Source§impl<G, Fit, Sel, Cross, Mut, F> IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>where
G: EvolutionaryGenome,
F: FitnessValue,
Fit: Fitness<Genome = G, Value = F> + Send + Sync,
Sel: SelectionOperator<G> + Clone + Send + Sync,
Cross: CrossoverOperator<G> + Clone + Send + Sync,
Mut: MutationOperator<G> + Clone + Send + Sync,
impl<G, Fit, Sel, Cross, Mut, F> IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>where
G: EvolutionaryGenome,
F: FitnessValue,
Fit: Fitness<Genome = G, Value = F> + Send + Sync,
Sel: SelectionOperator<G> + Clone + Send + Sync,
Cross: CrossoverOperator<G> + Clone + Send + Sync,
Mut: MutationOperator<G> + Clone + Send + Sync,
Sourcepub fn num_islands(self, n: usize) -> Self
pub fn num_islands(self, n: usize) -> Self
Set number of islands
Sourcepub fn island_population_size(self, size: usize) -> Self
pub fn island_population_size(self, size: usize) -> Self
Set population size per island
Sourcepub fn migration_interval(self, interval: usize) -> Self
pub fn migration_interval(self, interval: usize) -> Self
Set migration interval
Sourcepub fn topology(self, topology: MigrationTopology) -> Self
pub fn topology(self, topology: MigrationTopology) -> Self
Set migration topology
Sourcepub fn migration_policy(self, policy: MigrationPolicy) -> Self
pub fn migration_policy(self, policy: MigrationPolicy) -> Self
Set migration policy
Sourcepub fn bounds(self, bounds: MultiBounds) -> Self
pub fn bounds(self, bounds: MultiBounds) -> Self
Set bounds
Trait Implementations§
Source§impl<G, Fit, Sel, Cross, Mut, F> Default for IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>where
G: EvolutionaryGenome,
F: FitnessValue,
Fit: Fitness<Genome = G, Value = F> + Send + Sync,
Sel: SelectionOperator<G> + Clone + Send + Sync,
Cross: CrossoverOperator<G> + Clone + Send + Sync,
Mut: MutationOperator<G> + Clone + Send + Sync,
impl<G, Fit, Sel, Cross, Mut, F> Default for IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>where
G: EvolutionaryGenome,
F: FitnessValue,
Fit: Fitness<Genome = G, Value = F> + Send + Sync,
Sel: SelectionOperator<G> + Clone + Send + Sync,
Cross: CrossoverOperator<G> + Clone + Send + Sync,
Mut: MutationOperator<G> + Clone + Send + Sync,
Auto Trait Implementations§
impl<G, Fit, Sel, Cross, Mut, F> Freeze for IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>
impl<G, Fit, Sel, Cross, Mut, F> RefUnwindSafe for IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>where
Fit: RefUnwindSafe,
Sel: RefUnwindSafe,
Cross: RefUnwindSafe,
Mut: RefUnwindSafe,
G: RefUnwindSafe,
F: RefUnwindSafe,
impl<G, Fit, Sel, Cross, Mut, F> Send for IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>
impl<G, Fit, Sel, Cross, Mut, F> Sync for IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>
impl<G, Fit, Sel, Cross, Mut, F> Unpin for IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>
impl<G, Fit, Sel, Cross, Mut, F> UnsafeUnpin for IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>
impl<G, Fit, Sel, Cross, Mut, F> UnwindSafe for IslandModelBuilder<G, Fit, Sel, Cross, Mut, F>where
Fit: UnwindSafe,
Sel: UnwindSafe,
Cross: UnwindSafe,
Mut: UnwindSafe,
G: UnwindSafe,
F: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.