From 31e9c848f2dbb3619bb15a694c111834eb792d39 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Sun, 22 Mar 2009 13:19:05 +0000 Subject: [PATCH] fixed a forgotten counter update git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@757183 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/optimization/general/AbstractLeastSquaresOptimizer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java b/src/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java index 8f096ac68..70af06dbc 100644 --- a/src/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java +++ b/src/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java @@ -183,6 +183,7 @@ public abstract class AbstractLeastSquaresOptimizer implements VectorialDifferen protected void updateResidualsAndCost() throws ObjectiveException { + ++objectiveEvaluations; objective = f.objective(variables); if (objective.length != rows) { throw new ObjectiveException("dimension mismatch {0} != {1}",