|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgap.impl.AveragingCrossoverOperator
The averaging crossover operator randomly selects two Chromosomes from the population and "mates" them by randomly picking a gene and then swapping that gene and all subsequent genes between the two Chromosomes. The two modified Chromosomes are then added to the list of candidate Chromosomes. This operation is performed half as many times as there are Chromosomes in the population. Additionally, the loci of crossing over are cached for each index, i.e., after randomizing the loci for each index once, they don't change again
| Constructor Summary | |
AveragingCrossoverOperator()
Using the same random generator for randomizing the loci for crossing over as for selecting the genes to be crossed over |
|
AveragingCrossoverOperator(IUniversalRateCalculator a_crossoverRateCalculator)
Constructs a new instance of this CrossoverOperator with a specified crossover rate calculator, which results in dynamic crossover being turned on. |
|
AveragingCrossoverOperator(RandomGenerator generatorForAveraging)
Using a different random generator for randomizing the loci for crossing over than for selecting the genes to be crossed over |
|
| Method Summary | |
void |
operate(Population a_population,
java.util.List a_candidateChromosomes)
Crossover that acts as a perturbed mean of two individuals. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AveragingCrossoverOperator()
public AveragingCrossoverOperator(RandomGenerator generatorForAveraging)
generatorForAveraging - RandomGeneratorpublic AveragingCrossoverOperator(IUniversalRateCalculator a_crossoverRateCalculator)
a_crossoverRateCalculator - calculator for dynamic crossover rate
computation| Method Detail |
public void operate(Population a_population,
java.util.List a_candidateChromosomes)
operate in interface GeneticOperatora_population - Chromosome[]a_candidateChromosomes - Listfor general description.
also see feature request 708774
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||