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

Wolfgang Meyer wolfgang.meyer@gmail....
Tue Nov 11 19:16:18 CST 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://projects.scipy.org/pipermail/scipy-user/attachments/20081112/8928a6f1/attachment.html 


More information about the SciPy-user mailing list