makeSeSymbolicFitnessFunction: Create a fitness function based on symbolic squared error (SE)
Description
Creates a fitness function that calculates the squared error of
an individual with respect to a reference function func
.
When an indsizelimit
is given, individuals exceeding this
limit will receive a fitness of Inf
.
Usage
makeSeSymbolicFitnessFunction(func, lower, upper, subdivisions = 100, indsizelimit = NA)
Arguments
func
The reference function.
lower
The lower limit of integraion.
upper
The upper limit of integraion.
subdivisions
The maximum number of subintervals for numeric integration.
indsizelimit
Individuals exceeding this size limit will get
a fitness of Inf
.
Value
A fitness function based on the reference function func
.