xegaGaUPCrossGene {xegaGaGene}R Documentation

Parameterized uniform crossover of 2 genes.

Description

xegaGaUPCrossGene swaps alleles of both genes with a probability of lF$UCrossSwap. It generates a random mask which is used to build the new gene.

Usage

xegaGaUPCrossGene(gg1, gg2, lF)

Arguments

gg1

A binary gene.

gg2

A binary gene.

lF

The local configuration of the genetic algorithm.

Value

A list of one binary gene.

References

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)

See Also

Other Crossover (1): xegaGaCrossGene(), xegaGaUCrossGene()

Examples

gene1<-xegaGaInitGene(lFxegaGaGene)
gene2<-xegaGaInitGene(lFxegaGaGene)
xegaGaDecodeGene(gene1, lFxegaGaGene)
xegaGaDecodeGene(gene2, lFxegaGaGene)
gene3<-xegaGaUPCrossGene(gene1, gene2, lFxegaGaGene)
xegaGaDecodeGene(gene3[[1]], lFxegaGaGene)

[Package xegaGaGene version 1.0.0.1 Index]