xegaGaGeneMapFactory {xegaGaGene} | R Documentation |
Configure the gene map function of a genetic algorithm.
Description
xegaGaGeneMapFactory
implements the selection
of one of the GeneMap 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:
"Bin2Dec" returns
GeneMap
. (Default)."Gray2Dec" returns
GeneMapGray
."Identity" returns
GeneMapIdentity
."Permutation" returns
GeneMapPerm
.
Usage
xegaGaGeneMapFactory(method = "Bin2Dec")
Arguments
method |
A string specifying the GeneMap function. |
Value
A gene map function for genes.
See Also
Other Configuration:
lFxegaGaGene
,
xegaGaCrossoverFactory()
,
xegaGaMutationFactory()
,
xegaGaReplicationFactory()
Examples
XGene<-xegaGaGeneMapFactory("Identity")
gene1<-xegaGaInitGene(lFxegaGaGene)
XGene(gene1, lFxegaGaGene$penv)
[Package xegaGaGene version 1.0.0.1 Index]