xegaDfGeneMapFactory {xegaDfGene}R Documentation

Configure the gene map function of a genetic algorithm.

Description

xegaDfGeneMapFactory 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:

  1. "Identity" returns GeneMapIdentity. (Default)

Usage

xegaDfGeneMapFactory(method = "Identity")

Arguments

method

String specifying the GeneMap function.

Value

Gene map function for genes.

See Also

Other Configuration: lFxegaDfGene, xegaDfCrossoverFactory(), xegaDfMutationFactory(), xegaDfReplicationFactory(), xegaDfScaleFactorFactory()

Examples

XGene<-xegaDfGeneMapFactory("Identity")
gene1<-xegaDfInitGene(lFxegaDfGene)
XGene(gene1, lFxegaDfGene$penv)

[Package xegaDfGene version 1.0.0.0 Index]