View source: R/xegaGaCrossover.R
xegaGaUPCross2Gene | R Documentation |
xegaGaUP2CrossGene()
swaps alleles of both genes
with a probability of lF$UCrossSwap()
.
It generates a random
mask which is used to build the new gene.
It returns 2 genes.
xegaGaUPCross2Gene(gg1, gg2, lF)
gg1 |
A binary gene. |
gg2 |
A binary gene. |
lF |
The local configuration of the genetic algorithm. |
A list of 2 binary genes.
Spears William and De Jong, Kenneth (1991): On the Virtues of Parametrized Uniform Crossover. In: Belew, Richar K. and Booker, Lashon B. (Ed.) Proceedings of the Fourth International Conference on Genetic Algorithms, Morgan Kaufmann Publishers, Los Altos, California, pp. 230-236. (ISBN:1-55860-208-9)
Other Crossover (Returns 2 Kids):
xegaGaCross2Gene()
,
xegaGaUCross2Gene()
gene1<-xegaGaInitGene(lFxegaGaGene)
gene2<-xegaGaInitGene(lFxegaGaGene)
xegaGaDecodeGene(gene1, lFxegaGaGene)
xegaGaDecodeGene(gene2, lFxegaGaGene)
newgenes<-xegaGaUPCross2Gene(gene1, gene2, lFxegaGaGene)
xegaGaDecodeGene(newgenes[[1]], lFxegaGaGene)
xegaGaDecodeGene(newgenes[[2]], lFxegaGaGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.