Skip to content

Commit

Permalink
Merge pull request #244 from MarkusZimmerDLR/patch-1
Browse files Browse the repository at this point in the history
Fix #234
  • Loading branch information
moorepants authored Nov 29, 2023
2 parents 325dbb6 + 0a971ab commit 0b12acc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cyipopt/scipy_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,8 @@ def minimize_ipopt(fun,
# Rename some default scipy options
replace_option(options, b'disp', b'print_level')
replace_option(options, b'maxiter', b'max_iter')
if getattr(options, 'print_level', False) is True:
options[b'print_level'] = 1
else:
options[b'print_level'] = 0
options[b'print_level'] = int(options.get(b'print_level', 0))

if b'tol' not in options:
options[b'tol'] = tol or 1e-8
if b'mu_strategy' not in options:
Expand Down

0 comments on commit 0b12acc

Please sign in to comment.