From b408785ec3f1cf2f93429518501cbb668024bcb0 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:15:19 +0100 Subject: [PATCH] fixed files form Math #24 --- .../commons/math3/optimization/univariate/BrentOptimizer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/Math/24/org/apache/commons/math3/optimization/univariate/BrentOptimizer.java b/projects/Math/24/org/apache/commons/math3/optimization/univariate/BrentOptimizer.java index b6ce68e..cff5bfd 100644 --- a/projects/Math/24/org/apache/commons/math3/optimization/univariate/BrentOptimizer.java +++ b/projects/Math/24/org/apache/commons/math3/optimization/univariate/BrentOptimizer.java @@ -227,7 +227,7 @@ protected UnivariatePointValuePair doOptimize() { if (checker != null) { if (checker.converged(iter, previous, current)) { - return current; + return best(current, previous, isMinim); } } @@ -264,7 +264,7 @@ protected UnivariatePointValuePair doOptimize() { } } } else { // Default termination (Brent's criterion). - return current; + return best(current, previous, isMinim); } ++iter; }