xegaPermCrossoverFactory {xegaPermGene} | R Documentation |
xegaPermCrossoverFactory
implements the selection
of one of the crossover functions in this
package by specifying a text string.
The selection fails ungracefully (produces
a runtime error), if the label does not match.
The functions are specified locally.
Current support:
Crossover functions with two kids:
"Cross2Gene" returns xegaPermCross2Gene
.
Crossover functions with one kid:
"CrossGene" returns xegaPermCrossGene
.
xegaPermCrossoverFactory(method = "Cross2Gene")
method |
A string specifying the crossover function. |
A crossover function for genes.
Other Configuration:
lFxegaPermGene
,
xegaPermMutationFactory()
XGene<-xegaPermCrossoverFactory("Cross2Gene")
gene1<-xegaPermInitGene(lFxegaPermGene)
gene2<-xegaPermInitGene(lFxegaPermGene)
XGene(gene1, gene2, lFxegaPermGene)