Top Description Methods
org.apache.commons.math3.genetics

public Interface MutationPolicy

Known Direct Implementers
org.apache.commons.math3.genetics.RandomKeyMutation, org.apache.commons.math3.genetics.BinaryMutation
Imports
org.apache.commons.math3.exception.MathIllegalArgumentException

Algorithm used to mutate a chromosome.
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public Chromosome

Returns:

the mutated chromosome.
mutate
(Chromosome
the original chromosome.
original
)

Mutate the given chromosome.

Method Detail

mutateback to summary
public Chromosome mutate(Chromosome original) throws MathIllegalArgumentException

Mutate the given chromosome.

Parameters
original:Chromosome

the original chromosome.

Returns:Chromosome

the mutated chromosome.

Exceptions
MathIllegalArgumentException:
if the given chromosome is not compatible with this MutationPolicy