[][src]Trait optlib::genetic::Mutation

pub trait Mutation<T: Clone> {
    fn mutation(&mut self, chromosomes: &T) -> T;
}

The trait with mutation algorithm.

T - type of a point in the search space for goal function (chromosomes).

Required methods

fn mutation(&mut self, chromosomes: &T) -> T

The method accepts reference to chromosomes of single individual and must return new chromosomes (possibly modified). New individuals will be created with the chromosomes after mutation.

Loading content...

Implementors

impl Mutation<f32> for BitwiseMutation[src]

impl Mutation<f64> for BitwiseMutation[src]

impl<G: Clone> Mutation<Vec<G>> for VecMutation<G>[src]

Loading content...