MutationRateFactory {xegaPopulation} | R Documentation |
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.
MutationRateFactory(method = "Const")
method |
A string specifying a function for the mutation rate. |
A mutation rate function.
Other Configuration:
AcceptFactory()
,
ApplyFactory()
,
CoolingFactory()
,
CrossRateFactory()
,
xegaConfiguration()
f<-MutationRateFactory("Const")
f(10, list(MutationRate1=function() {0.2}))