terminatePAC | R Documentation |
terminatePAC()
returns TRUE
if the value of the current solution
is in the interval from (PACopt - (PACopt*eps)) to
(PACopt + (PACopt*eps)). If PACopt is zero,
test interval (0-eps) to (0+eps).
terminatePAC(solution, lF)
solution |
A named list with at least the following elements: $name, $fitness, $value, $numberOfSolutions, $genotype, $phenotype, $phenotypeValue. |
lF |
Local function configuration. It must contain
|
By an idea of M. Talagrand we estimate lF$PACopt()
from the mean m
and the standard deviation s
of the population fitness
of the first population of the genetic algorithm we compute
m+s*qnorm(lF$PACdelta(), lower.tail=FALSE)
when the function we optimize
is in Hilbert space. For other spaces, this has to be adapted.
Boolean.
Other Termination Condition:
terminateAbsoluteError()
,
terminateGEQ()
,
terminateLEQ()
,
terminateRelativeError()
,
terminateRelativeErrorZero()
,
terminatedFalse()
parm<-function(x){function() {return(x)}}
lF<-list(); lF$PACopt<-parm(10.0); lF$TerminationEps<-parm(1.2);lF$Max<-parm(1.0)
solution<-list(); solution$genotype<-list(); solution$genotype$fit<-0.5
terminatePAC(solution, lF)
solution<-list(); solution$genotype<-list(); solution$genotype$fit<-9.6
terminatePAC(solution, lF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.