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