[SciPy-user] how to stop optimization when using optimize.fmin_l_bfgs_b()

Wolfgang Meyer wolfgang.meyer at gmail.com
Tue Nov 11 20:16:18 EST 2008


In the optimization function
scipy.optimize.fmin_l_bfgs_b(func, x0, fprime=None, args=(), approx_grad=0,
bounds=None, m=10, factr=10000000.0, pgtol=1.0000000000000001e-05,
epsilon=1e-08, iprint=-1, maxfun=15000)

>>func<< is a function to minimize. Suppose during the optimization process
I detect some errors inside >>func<< and want to stop the optimization
process, how should I manoeuvre?  Maybe return some random values from
>>func<<? The same question for >>fprime<<: what should I do to break the
optimization process when I realized errors inside fprime?

Thanks!
-- 
Wolfgang Meyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20081112/8928a6f1/attachment.html>


More information about the SciPy-User mailing list