Skip to content

Commit

Permalink
Changed the incorrect one, unbounded was failing.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed Nov 26, 2023
1 parent 4b9dab3 commit ac2ff3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cyipopt/tests/unit/test_scipy_ipopt_from_scipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand All @@ -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)
Expand Down

0 comments on commit ac2ff3b

Please sign in to comment.