xegaDfCrossoverFactory {xegaDfGene} | R Documentation |
Configure the crossover function of a genetic algorithm.
Description
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
.
Usage
xegaDfCrossoverFactory(method = "UCrossGene")
Arguments
method |
A string specifying the crossover function. |
Value
Crossover function for genes.
See Also
Other Configuration:
lFxegaDfGene
,
xegaDfGeneMapFactory()
,
xegaDfMutationFactory()
,
xegaDfReplicationFactory()
,
xegaDfScaleFactorFactory()
Examples
XGene<-xegaDfCrossoverFactory("UCrossGene")
gene1<-xegaDfInitGene(lFxegaDfGene)
gene2<-xegaDfInitGene(lFxegaDfGene)
XGene(gene1, gene2, lFxegaDfGene)
[Package xegaDfGene version 1.0.0.0 Index]