Skip to content

Commit

Permalink
Don't continue to evaluate after convergence
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Sep 17, 2024
1 parent 8a8e9d3 commit f7b37e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apex/nelder_mead_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ template <typename T = double> class Searcher {
return res;
}
void report(T val) {
if (converged())
return;
switch (stage) {
case SIMPLEX:
evaluate_simplex(val);
Expand Down

0 comments on commit f7b37e0

Please sign in to comment.