View source: R/xegaGaCrossover.R
xegaGaCrossGene | R Documentation |
xegaGaCrossGene()
randomly determines a cut point.
It combines the bits before the cut point of the first gene
with the bits after the cut point from the second gene (kid 1).
xegaGaCrossGene(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.
Other Crossover (Returns 1 Kid):
xegaGaUCrossGene()
,
xegaGaUPCrossGene()
gene1<-xegaGaInitGene(lFxegaGaGene)
gene2<-xegaGaInitGene(lFxegaGaGene)
xegaGaDecodeGene(gene1, lFxegaGaGene)
xegaGaDecodeGene(gene2, lFxegaGaGene)
gene3<-xegaGaCrossGene(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.