From ac2ff3bd3d58e3f8a6fecabcdc46590b61bd9396 Mon Sep 17 00:00:00 2001 From: "Jason K. Moore" Date: Sun, 26 Nov 2023 09:03:43 +0100 Subject: [PATCH] Changed the incorrect one, unbounded was failing. --- cyipopt/tests/unit/test_scipy_ipopt_from_scipy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cyipopt/tests/unit/test_scipy_ipopt_from_scipy.py b/cyipopt/tests/unit/test_scipy_ipopt_from_scipy.py index 5763887..308aa26 100644 --- a/cyipopt/tests/unit/test_scipy_ipopt_from_scipy.py +++ b/cyipopt/tests/unit/test_scipy_ipopt_from_scipy.py @@ -152,7 +152,7 @@ def test_minimize_unbounded_approximated(self): # Minimize, method=None: unbounded, approximated jacobian. jacs = [None, False] for jac in jacs: - res = minimize(self.fun, [-1.0, 1.0], args=(-1.0, ), + res = minimize(self.fun, [1.0, 1.0], args=(-1.0, ), jac=jac, method=None, options=self.opts) assert_(res['success'], res['message']) @@ -170,7 +170,7 @@ def test_minimize_bounded_approximated(self): jacs = [None, False] for jac in jacs: with np.errstate(invalid='ignore'): - res = minimize(self.fun, [2.0, 1.0], args=(-1.0, ), + res = minimize(self.fun, [-1.0, 1.0], args=(-1.0, ), jac=jac, bounds=((2.5, None), (None, 0.5)), method=None, options=self.opts)