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

Add Borg MaxRestarts option #142

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alyst
Copy link
Contributor

@alyst alyst commented Jan 2, 2020

Currently, in Borg algorithm, the only stopping condition that relates to the algorithm convergence is checking for the number of steps without eps-progress (i.e. without Pareto front updates). This is quite strong condition, since for large fronts the chances of updating any point would be quite high. However, these points are not always in the most relevant region of the Pareto front.

This PR implements a weaker condition: stop when MaxRestarts is reached. The idea is that as Borg reaches near-optimal front, the efficiency of recombinations would drop, and it would tend to "restart" (i.e. repopulate with random mutants) more frequently.

By default, MaxRestarts is disabled (=nothing), but something like 200 should be a safe choice.

NB: So far the stopping checks were done by the algorithm-agnostic OptController or by the Evaluator classes. This PR allows the optimization algorithm to define its own specific stopping checks via check_stop_condition(alg::Optimizer, ctrl) method.

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

Successfully merging this pull request may close these issues.

1 participant