rgp (version 0.4-1)

makeStepsStopCondition: Evolution stop conditions

Description

Evolution stop conditions are predicates (functions that return a single logical value) of the signature function(population, stepNumber, evaluationNumber, bestFitness, timeElapsed). They are used to decide when to finish a GP evolution run. Stop conditions must be members of the S3 class c("stopCondition", "function"). They can be combined using the functions andStopCondition, orStopCondition and notStopCondition.

Usage

makeStepsStopCondition(stepLimit)
makeEvaluationsStopCondition(evaluationLimit)
makeFitnessStopCondition(fitnessLimit)
makeTimeStopCondition(timeLimit)
andStopCondition(e1, e2)
orStopCondition(e1, e2)
notStopCondition(e1)

Arguments

stepLimit
The maximum number of evolution steps for makeStepsStopCondition.
evaluationLimit
The maximum number of fitness function evaluations for makeEvaluationsStopCondition.
fitnessLimit
The minimum fitness for makeFitnessStopCondition.
timeLimit
The maximum runtime in seconds for makeTimeStopCondition.
e1
A stop condition.
e2
A stop condition.

Details

makeStepsStopCondition creates a stop condition that is fulfilled if the number of evolution steps exceeds a given limit. makeEvaluationsStopCondition creates a stop condition that is fulfilled if the number of fitness function evaluations exceeds a given limit. makeFitnessStopCondition creates a stop condition that is fulfilled if the number best fitness seen in an evaluation run undercuts a certain limit. makeTimeStopCondition creates a stop condition that is fulfilled if the run time (in seconds) of an evolution run exceeds a given limit.