[SciPy-User] possible bug in scipy.optimize.newton_krylov

Denis Laxalde denis@laxalde....
Sat Sep 1 05:11:15 CDT 2012

Matt Chan a écrit :
> I've pasted the stack trace below. Is there something I am doing
> incorrectly?
> Traceback (most recent call last):
>    File "<zip>", line 758, in <module>
>      x_star= op.newton_krylov(my_fn, x0, method='lgmres', inner_tol=1e-8)
>    File "<string>", line 8, in newton_krylov
>    File "/usr/lib64/python2.7/site-packages/scipy/optimize/nonlin.py",
> line 294, in nonlin_solve
>      dx = -jacobian.solve(Fx, tol=tol)
>    File "/usr/lib64/python2.7/site-packages/scipy/optimize/nonlin.py",
> line 1394, in solve
>      sol, info = self.method(self.op, rhs, tol=tol, **self.method_kw)
> TypeError: lgmres() got multiple values for keyword argument 'tol'

It is a bug, to be fixed by https://github.com/scipy/scipy/pull/301.

Thanks for reporting,

More information about the SciPy-User mailing list