CrossRateFactory: Configure the crossover function of a genetic algorithm.
Description
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.
Usage
CrossRateFactory(method = "Const")
Value
Crossover rate function.
Arguments
method
A string specifying a function for the crossover rate.