Skip to content

Commit

Permalink
Fix #239
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusZimmerDLR authored Nov 29, 2023
1 parent 325dbb6 commit 0686410
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', 5))

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 0686410

Please sign in to comment.