diff --git a/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java index 07234cd1b..fc9b96456 100644 --- a/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java @@ -183,6 +183,8 @@ public class GaussNewtonOptimizer extends AbstractLeastSquaresOptimizer { converged = checker.converged(iter, previous, current); if (converged) { cost = computeCost(currentResiduals); + // Update (deprecated) "point" field. + point = current.getPoint(); return current; } }