[SciPy-User] fmin_bfgs

Yosef Meller yosefmel at post.tau.ac.il
Wed Apr 13 02:36:10 EDT 2011


On יום חמישי 31 מרץ 2011 14:54:15 Dirk Nachbar wrote:
> I am using fmin_bfgs to minimise a function, I put a print in the
> function so I can see the steps. It does show me that the value goes
> down but then goes back to the starting value and shows that it is
> optimised. But from the print I know it's not the true min, how can I
> make the function stop at the right min. I am not specifying a fprime
> function.

The function may be called several times around a point to see that no 
improvement is possible (even more times if you're using it with no gradient 
function). Check which value is returned, not which one is printed last.

Yosef.



More information about the SciPy-User mailing list