Closed mdhaber closed 1 year ago
As reported in https://github.com/mechmotum/cyipopt/pull/194#discussion_r1155423756, minimize_ipopt fails on the scipy.optimize.minimize example with three constraints. This is due to a late binding gotcha when the constraint Jacobians are defined in a loop. This fixes that bug and demonstrates that the example problem is solved successfully after the fix.
minimize_ipopt
scipy.optimize.minimize
Incidentally, this also fixes an unreported bug: kwargs was being passed to approx_fprime. but approx_fprime doesn't accept kwargs. Another instance of this bug is fixed in https://github.com/mechmotum/cyipopt/pull/200/files#r1198383113.
kwargs
approx_fprime
LGTM
As reported in https://github.com/mechmotum/cyipopt/pull/194#discussion_r1155423756,
minimize_ipopt
fails on thescipy.optimize.minimize
example with three constraints. This is due to a late binding gotcha when the constraint Jacobians are defined in a loop. This fixes that bug and demonstrates that the example problem is solved successfully after the fix.Incidentally, this also fixes an unreported bug:
kwargs
was being passed toapprox_fprime
. butapprox_fprime
doesn't acceptkwargs
. Another instance of this bug is fixed in https://github.com/mechmotum/cyipopt/pull/200/files#r1198383113.