[SciPy-dev] fmin_cg bug

Ed Schofield schofield at ftw.at
Mon Apr 24 09:27:50 CDT 2006


Robert Cimrman wrote:
> Hi,
> the little script below revealed a little bug in scipy.optimize.fmin_cg:
>
> before fix:
> Warning: Desired error not necessarily achieved due to precision loss
>           Current function value: 333283335000.000000
>           Iterations: 0
>           Function evaluations: 2
>           Gradient evaluations: 1
> after fix:
> Optimization terminated successfully.
>           Current function value: 0.000000
>           Iterations: 5
>           Function evaluations: 26
>           Gradient evaluations: 26
>
> I dared to commit the (little :) change to SVN.
>   

Great!  I'm the one who committed the check and the warning, because I
noticed that sometimes it was silently failing.  Now you've fixed it
properly.  Thanks :)

-- Ed




More information about the Scipy-dev mailing list