View source: R/adaptivityCrossover.R
CrossRateFactory | 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()
,
TerminationFactory()
,
checkTerminationFactory()
,
xegaConfiguration()
,
xegaEvalPopulationFactory()
f<-CrossRateFactory("Const")
f(10, list(CrossRate1=function() {0.2}))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.