summaryrefslogtreecommitdiff
path: root/training/optimize.h
diff options
context:
space:
mode:
Diffstat (limited to 'training/optimize.h')
-rw-r--r--training/optimize.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/training/optimize.h b/training/optimize.h
index e2620f93..07943b44 100644
--- a/training/optimize.h
+++ b/training/optimize.h
@@ -22,6 +22,7 @@ class BatchOptimizer {
const std::vector<double>& g,
std::vector<double>* x) {
assert(g.size() == x->size());
+ ++eval_;
OptimizeImpl(obj, g, x);
scitbx::lbfgs::traditional_convergence_test<double> converged(g.size());
has_converged_ = converged(&(*x)[0], &g[0]);