From f7b37e071d07eaf4aa996f7b1adf4377347205d7 Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Tue, 17 Sep 2024 07:43:09 -0700 Subject: [PATCH] Don't continue to evaluate after convergence --- src/apex/nelder_mead_internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apex/nelder_mead_internal.h b/src/apex/nelder_mead_internal.h index f619bf93..53f5f593 100644 --- a/src/apex/nelder_mead_internal.h +++ b/src/apex/nelder_mead_internal.h @@ -329,6 +329,8 @@ template class Searcher { return res; } void report(T val) { + if (converged()) + return; switch (stage) { case SIMPLEX: evaluate_simplex(val);