finished mrd and added plotting functions

This commit is contained in:
Max Zwiessele 2013-04-11 18:44:18 +01:00
parent de6b00ebfd
commit 51ff92e591
7 changed files with 130 additions and 75 deletions

View file

@ -104,7 +104,8 @@ def SCG(f, gradf, x, optargs=(), maxiters=500, max_f_eval=500, display=True, xto
iteration += 1
if display:
print 'Iteration:', iteration, ' Objective:', fnow, ' Scale:', beta, '\r',
print 'Iteration: {0:<5g} Objective:{1:< 12g} Scale:{2:< 12g}\r'.format(iteration, fnow, beta),
# print 'Iteration:', iteration, ' Objective:', fnow, ' Scale:', beta, '\r',
sys.stdout.flush()
if success: