From 98cbc0925b1f43021a794df5f691d29f37ff36fd Mon Sep 17 00:00:00 2001 From: benjam-art-in Date: Tue, 23 Apr 2019 16:51:26 +0200 Subject: [PATCH] box_unicity in inflating_newton trully set to the largest box containing solutions --- src/numeric/ibex_Newton.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/numeric/ibex_Newton.cpp b/src/numeric/ibex_Newton.cpp index 1db690547..08c9c9d47 100644 --- a/src/numeric/ibex_Newton.cpp +++ b/src/numeric/ibex_Newton.cpp @@ -251,8 +251,8 @@ bool inflating_newton(const Fnc& f, const VarSet* vars, const IntervalVector& fu if (!success) { // to get the largest unicity box, we do this // only when the first contraction occurs - if (vars) vars->set_var_box(box_unicity,box2); - else box_unicity = box2; + if (vars) vars->set_var_box(box_unicity,box); + else box_unicity = box; //================================================= // We now try to enlarge the unicity box as possible