xegaGpMutationFactory {xegaGpGene}R Documentation

Configure the mutation function of a genetic algorithm.

Description

xegaGpMutationFactory() 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 xegaGpMutateAllGene().

  2. "MutateAllGene" returns xegaGpMutateAllGene().

  3. "MutateFilterGene" returns xegaGpMutateFilterGene().

Usage

xegaGpMutationFactory(method = "MutateGene")

Arguments

method

String specifying the mutation function.

Value

Mutation function for genes.

See Also

Other Configuration: xegaGpCrossoverFactory()

Examples

Mutate<-xegaGpMutationFactory("MutateGene")
gene1<-xegaGpInitGene(lFxegaGpGene)
gene1
Mutate(gene1, lFxegaGpGene)

[Package xegaGpGene version 1.0.0.0 Index]