last stability changes

This commit is contained in:
Max Zwiessele 2013-05-20 10:11:27 +01:00
parent 3c12f85a28
commit 99017e5e50
4 changed files with 14 additions and 10 deletions

View file

@ -85,8 +85,6 @@ def SCG(f, gradf, x, optargs=(), maxiters=500, max_f_eval=500, display=True, xto
# Increase effective curvature and evaluate step size alpha.
delta = theta + beta * kappa
if delta <= 0:
if display:
print ""
delta = beta * kappa
beta = beta - theta / kappa