Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio-tutorials
Commits
79a143f1
Commit
79a143f1
authored
Nov 29, 2017
by
Guilhem Saurel
Browse files
fix CallbackLogger's format
parent
81023223
Changes
1
Hide whitespace changes
Inline
Side-by-side
tp2_invgeom/main.asciidoc
View file @
79a143f1
...
...
@@ -42,7 +42,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])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment