makeSeSymbolicFitnessFunction: Create a fitness function based on symbolic squared error...

Description Usage Arguments Value

View source: R/fitness.r

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

1
2
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.


rgp documentation built on May 30, 2017, 12:45 a.m.