MutationRateFactory {xegaPopulation} | R Documentation |
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:
"Const" returns
ConstMRate()
(Default)."IV" returns
IAMrate()
. This function gives bad genes a higher mutation rate.
Usage
MutationRateFactory(method = "Const")
Arguments
method |
A string specifying a function for the mutation rate. |
Value
A mutation rate function.
See Also
Other Configuration:
AcceptFactory()
,
ApplyFactory()
,
CoolingFactory()
,
CrossRateFactory()
,
xegaConfiguration()
Examples
f<-MutationRateFactory("Const")
f(10, list(MutationRate1=function() {0.2}))
[Package xegaPopulation version 1.0.0.0 Index]