CrossRateFactory {xegaPopulation} | R Documentation |
CrossRateFactory()
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 ConstCRate()
.
"IV" returns IACrate()
.
This function gives bad genes a higher cross rate.
CrossRateFactory(method = "Const")
method |
A string specifying a function for the crossover rate. |
Crossover rate function.
Other Configuration:
AcceptFactory()
,
ApplyFactory()
,
CoolingFactory()
,
MutationRateFactory()
,
xegaConfiguration()
f<-CrossRateFactory("Const")
f(10, list(CrossRate1=function() {0.2}))