public class PermChromosome extends IntChromosome
bases, high, lowBIASED, crossoverPoints, crossoverRate, LAPLACE, length, mutationRate, soupType| Constructor and Description |
|---|
PermChromosome()
The standard constructor with default length of chromosome.
|
PermChromosome(Element c)
Creates a PermChromosome via XML.
|
PermChromosome(int length)
Constructs a chromosome of given length.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doCrossover(Chromosome father)
PMX Crossover.
|
void |
doMutation()
Mutate by swapping two bases saving the permutation property.
|
void |
mixSoup()
Initial creation of alleles.
|
clone, equals, fromString, getBases, getHigh, getLow, hashCode, setHigh, setLow, toString, toXmlcreate, getCrossoverPoints, getCrossoverRate, getLength, getMutationRate, getSoupType, setCrossoverPoints, setCrossoverRate, setLength, setMutationRate, setSoupTypepublic PermChromosome()
public PermChromosome(int length)
length - the number of basespublic PermChromosome(Element c)
c - an XML Chromosome elementpublic void doMutation()
doMutation in class IntChromosomepublic void doCrossover(Chromosome father)
doCrossover in class IntChromosomefather - A parent Chromosome.public void mixSoup()
mixSoup in class IntChromosome