View source: R/xegaGaCrossover.R
xegaGaUCrossGene | R Documentation |
xegaGaUCrossGene()
swaps alleles of both genes
with a probability of 0.5. It generates a random
mask which is used to build the new gene.
xegaGaUCrossGene(gg1, gg2, lF)
gg1 |
A binary gene. |
gg2 |
A binary gene. |
lF |
The local configuration of the genetic algorithm. |
A list of one binary gene.
Syswerda, Gilbert (1989): Uniform Crossover in Genetic Algorithms. In: Schaffer, J. David (Ed.) Proceedings of the Third International Conference on Genetic Algorithms, Morgan Kaufmann Publishers, Los Altos, California, pp. 2-9. (ISBN:1-55860-066-3)
Other Crossover (Returns 1 Kid):
xegaGaCrossGene()
,
xegaGaUPCrossGene()
gene1<-xegaGaInitGene(lFxegaGaGene)
gene2<-xegaGaInitGene(lFxegaGaGene)
xegaGaDecodeGene(gene1, lFxegaGaGene)
xegaGaDecodeGene(gene2, lFxegaGaGene)
gene3<-xegaGaUCrossGene(gene1, gene2, lFxegaGaGene)
xegaGaDecodeGene(gene3[[1]], lFxegaGaGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.