xegaDfCrossoverFactory {xegaDfGene} | R Documentation |
xegaDfCrossoverFactory
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 one kid:
"CrossGene" returns CrossGene
.
"UCrossGene" returns UCrossGene
. Default.
"PUCrossGene" returns PUCrossGene
.
xegaDfCrossoverFactory(method = "UCrossGene")
method |
A string specifying the crossover function. |
Crossover function for genes.
Other Configuration:
lFxegaDfGene
,
xegaDfGeneMapFactory()
,
xegaDfMutationFactory()
,
xegaDfReplicationFactory()
,
xegaDfScaleFactorFactory()
XGene<-xegaDfCrossoverFactory("UCrossGene")
gene1<-xegaDfInitGene(lFxegaDfGene)
gene2<-xegaDfInitGene(lFxegaDfGene)
XGene(gene1, gene2, lFxegaDfGene)