[SciPy-User] computing f and fprime in one evaluation in scipy.optimize

Pauli Virtanen pav@iki...
Mon Dec 10 09:11:03 CST 2012

Skipper Seabold <jsseabold <at> gmail.com> writes:
> AFAIK, fmin_l_bfgs_b is the only optimize function written so that f
> can also return fprime, but I agree that this could be a nice option
> to the other ones.

The good news is that minimize(f, .., jac=True) [1] also works like this,
and works for all of the solvers (it caches the jacobian).

So the problem is already solved in Scipy 0.11.0 :)


Pauli Virtanen

More information about the SciPy-User mailing list