public class BinaryMutation extends Object implements MutationPolicy
BinaryChromosome
s. Randomly changes one gene.Constructor and Description |
---|
BinaryMutation() |
public Chromosome mutate(Chromosome original) throws MathIllegalArgumentException
mutate
in interface MutationPolicy
original
- the original chromosome.MathIllegalArgumentException
- if original
is not an instance of BinaryChromosome
.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.