Stop the EA after a fixed number of fitness function evaluations, after a predefined number of generations/itereations or if the known optimal function value is approximated (only for single-objective optimization).
stopOnEvals(max.evals = NULL)stopOnIters(max.iter = NULL)
stopOnOptY(opt.y, eps)
[ecr_terminator]
[integer(1)]
Maximal number of function evaluations. Default ist Inf.
[integer(1)]
Maximal number of iterations. Default ist Inf.
[numeric(1)]
Optimal scalar fitness function value.
[numeric(1)]
Stop if absolute deviation from opt.y is lower than eps.