Skip to content

Add Borg MaxRestarts option#142

Open
alyst wants to merge 2 commits intorobertfeldt:masterfrom
alyst:borg_max_restarts
Open

Add Borg MaxRestarts option#142
alyst wants to merge 2 commits intorobertfeldt:masterfrom
alyst:borg_max_restarts

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.

@alyst alyst force-pushed the borg_max_restarts branch from 63f9f01 to a993582 Compare January 6, 2020 18:17
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