[][src]Struct genevo::ga::GeneticAlgorithm

pub struct GeneticAlgorithm<G, F, E, S, C, M, R> where
    G: Genotype,
    F: Fitness,
    E: FitnessFunction<G, F>,
    S: SelectionOp<G, F>,
    C: CrossoverOp<G>,
    M: MutationOp<G>,
    R: ReinsertionOp<G, F>, 
{ /* fields omitted */ }

A GeneticAlgorithm declares the building blocks that make up the actual algorithm for a specific optimization problem.

Methods

impl<G, F, E, S, C, M, R> GeneticAlgorithm<G, F, E, S, C, M, R> where
    G: Genotype,
    F: Fitness,
    E: FitnessFunction<G, F>,
    S: SelectionOp<G, F>,
    C: CrossoverOp<G>,
    M: MutationOp<G>,
    R: ReinsertionOp<G, F>, 
[src]

pub fn evaluator(&self) -> &E[src]

pub fn selector(&self) -> &S[src]

pub fn breeder(&self) -> &C[src]

pub fn mutator(&self) -> &M[src]

pub fn reinserter(&self) -> &R[src]

pub fn min_population_size(&self) -> usize[src]

Trait Implementations

impl<G, F, E, S, C, M, R> Algorithm for GeneticAlgorithm<G, F, E, S, C, M, R> where
    G: Genotype,
    F: Fitness + Send + Sync,
    E: FitnessFunction<G, F> + Sync,
    S: SelectionOp<G, F>,
    C: CrossoverOp<G> + Sync,
    M: MutationOp<G> + Sync,
    R: ReinsertionOp<G, F>, 
[src]

type Output = State<G, F>

type Error = GeneticAlgorithmError

impl<G, F, E, S, C, M, R> Termination<GeneticAlgorithm<G, F, E, S, C, M, R>> for FitnessLimit<G, F> where
    G: Genotype,
    F: Fitness + Send + Sync,
    E: FitnessFunction<G, F>,
    E: FitnessFunction<G, F> + Sync,
    S: SelectionOp<G, F>,
    C: CrossoverOp<G> + Sync,
    M: MutationOp<G> + Sync,
    R: ReinsertionOp<G, F>, 
[src]

fn reset(&mut self)[src]

Resets the state of this Termination condition. This function is called on each Termination instance when the simulation is reset. Read more

impl<G, F, E, S, C, M, R> TrackProcessingTime for GeneticAlgorithm<G, F, E, S, C, M, R> where
    G: Genotype,
    F: Fitness,
    E: FitnessFunction<G, F>,
    S: SelectionOp<G, F>,
    C: CrossoverOp<G>,
    M: MutationOp<G>,
    R: ReinsertionOp<G, F>, 
[src]

impl<G: PartialEq, F: PartialEq, E: PartialEq, S: PartialEq, C: PartialEq, M: PartialEq, R: PartialEq> PartialEq<GeneticAlgorithm<G, F, E, S, C, M, R>> for GeneticAlgorithm<G, F, E, S, C, M, R> where
    G: Genotype,
    F: Fitness,
    E: FitnessFunction<G, F>,
    S: SelectionOp<G, F>,
    C: CrossoverOp<G>,
    M: MutationOp<G>,
    R: ReinsertionOp<G, F>, 
[src]

impl<G: Clone, F: Clone, E: Clone, S: Clone, C: Clone, M: Clone, R: Clone> Clone for GeneticAlgorithm<G, F, E, S, C, M, R> where
    G: Genotype,
    F: Fitness,
    E: FitnessFunction<G, F>,
    S: SelectionOp<G, F>,
    C: CrossoverOp<G>,
    M: MutationOp<G>,
    R: ReinsertionOp<G, F>, 
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<G: Debug, F: Debug, E: Debug, S: Debug, C: Debug, M: Debug, R: Debug> Debug for GeneticAlgorithm<G, F, E, S, C, M, R> where
    G: Genotype,
    F: Fitness,
    E: FitnessFunction<G, F>,
    S: SelectionOp<G, F>,
    C: CrossoverOp<G>,
    M: MutationOp<G>,
    R: ReinsertionOp<G, F>, 
[src]

Auto Trait Implementations

impl<G, F, E, S, C, M, R> !Send for GeneticAlgorithm<G, F, E, S, C, M, R>

impl<G, F, E, S, C, M, R> !Sync for GeneticAlgorithm<G, F, E, S, C, M, R>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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.

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

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

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