Possible bug in SciPy shgo (Unexpected TypeError)

Viewed 155

When running the following

from scipy.optimize import rosen, rosen_der, rosen_hess
bounds = [(0,1.6), (0, 1.6), (0, 1.4), (0, 1.4), (0, 1.4)]
result = scipy.optimize.shgo(rosen, bounds, options={'jac':rosen_der,'hess':rosen_hess})

I get

TypeError: _minimize_slsqp() got multiple values for argument 'jac'

I believe that jac is correctly specified here (see this documentation). Did I make a mistake or is there a bug here?

1 Answers
Related