[SciPy-user] Another leastsq Jacobian bug

Stefan van der Walt stefan at sun.ac.za
Sat Jun 23 04:48:30 EDT 2007


Hi Lin

On Fri, Jun 22, 2007 at 07:35:05PM -0700, Lin Shao wrote:
> It seems like when calling leastsq(), if the Jacobian matrix is
> organized as rows of partial derivatives (w.r.t. each variable), then
> no optimization is done at all -- the return value is the same as the
> initial guess. It only works when the matrix is columns of derivatives
> and set the parameter col_deriv to 1.

It would be helpful if you could provide two short snippets of code to
illustrate the problems you mention.

Regards
Stéfan



More information about the SciPy-User mailing list