xegaDfMutationFactory {xegaDfGene}R Documentation

Configure the mutation function of a genetic algorithm.

Description

xegaDfMutationFactory implements the selection of one of the mutation 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. "MutateGene" returns xegaDfMutateGeneDE. To provide a working default for more than one gene representation.

  2. "MutateGeneDE" returns xegaDfMutateGeneDE.

Usage

xegaDfMutationFactory(method = "MutateGene")

Arguments

method

A string specifying the mutation function.

Value

A mutation function for genes.

See Also

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

Examples

Mutate<-xegaDfMutationFactory("MutateGene")
gene1<-xegaDfInitGene(lFxegaDfGene)
gene2<-xegaDfInitGene(lFxegaDfGene)
gene3<-xegaDfInitGene(lFxegaDfGene)
Mutate(gene1, gene2, gene3, lFxegaDfGene)

[Package xegaDfGene version 1.0.0.0 Index]