Learn R Programming

xegaPopulation (version 1.0.0.11)

MutationRateFactory: Configure the mutation rate function of a genetic algorithm.

Description

The MutationRateFactory() implements selection of one of the crossover rate 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. "Const" returns ConstMRate() (Default).

  2. "IV" returns IAMrate(). This function gives bad genes a higher mutation rate.

Usage

MutationRateFactory(method = "Const")

Value

A mutation rate function.

Arguments

method

A string specifying a function for the mutation rate.

See Also

Other Configuration: AcceptFactory(), ApplyFactory(), CoolingFactory(), CrossRateFactory(), TerminationFactory(), checkTerminationFactory(), xegaConfiguration(), xegaEvalPopulationFactory()

Examples

Run this code
f<-MutationRateFactory("Const")
f(10, list(MutationRate1=function() {0.2}))

Run the code above in your browser using DataLab