Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stopOnEvals #133

Open
mariusbommert opened this issue May 3, 2021 · 1 comment
Open

stopOnEvals #133

mariusbommert opened this issue May 3, 2021 · 1 comment

Comments

@mariusbommert
Copy link

The first mu function evaluations do not seem to be counted for the stopping criterion stopOnEvals, like the following example shows:

library(ecr)
library(smoof)

dtlz2 = makeDTLZ2Function(dimensions = 2, n.objectives = 2)
tmp = nsga2(fitness.fun = dtlz2, n.objectives = 2, n.dim = 2,
            minimize = TRUE, lower = getLowerBoxConstraints(dtlz2),
            upper = getUpperBoxConstraints(dtlz2), mu = 20, lambda = 10,
            terminators = list(stopOnEvals(10)), log.pop = TRUE)
tmp$last.population

In this example at least 20 function evaluations are used for the last population, but the budget of function evaluations is limited to 10 evaluations by stopOnEvals. The same behavior can be observed for stopOnEvals > mu. It would be nice to have at least a hint in the description that the first mu function evaluations are not counted towards the limit which is given by stopOnEvals.

@mariusbommert
Copy link
Author

Probably I did a mistake and there is only a problem for stopOnEvals < mu which is not so relvant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant