Commit dbd50d0c authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Fix display of optimization iterations.

parent 2a139c6c
......@@ -19,7 +19,7 @@ class CallbackLogger:
def __init__(self):
self.nfeval = 1
def __call__(self,x):
print '===CBK=== {0:4d} {1: 3.6f} {2: 3.6f}'.format(self.nfeval, x[0], x[1], cost(x))
print '===CBK=== {0:4d} {1: 3.6f} {2: 3.6f} {3: 3.6f}'.format(self.nfeval, x[0], x[1], cost(x))
self.nfeval += 1
x0 = np.array([0.0,0.0])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment