terminateGEQ {xegaPopulation}R Documentation

Terminates, if the solution is greater equal a threshold.

Description

terminateGEQ() returns TRUE if the value of the current solution is greater or equal lF$TerminationThreshold().

Usage

terminateGEQ(solution, lF)

Arguments

solution

A named list with at least the following elements: $name, $fitness, $value, $numberOfSolutions, $genotype, $phenotype, $phenotypeValue.

lF

Local function configuration. It must contain

  • lF$TerminationThreshold() which returns a numeric value.

Value

Boolean.

See Also

Other Termination Condition: terminateAbsoluteError(), terminateLEQ(), terminatePAC(), terminateRelativeError(), terminateRelativeErrorZero(), terminatedFalse()

Examples

    parm<-function(x){function() {return(x)}}
    lF<-list(); lF$TerminationThreshold<-parm(9.2)
    solution<-list(); solution$phenotypeValue<-8.0
    terminateGEQ(solution, lF)
    solution<-list(); solution$phenotypeValue<-9.6
    terminateGEQ(solution, lF)

[Package xegaPopulation version 1.0.0.7 Index]