We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 135fa9b + 3ae6980 commit a96cdc3Copy full SHA for a96cdc3
1 file changed
src/Numerics/Optimization/LevenbergMarquardtMinimizer.cs
@@ -158,7 +158,7 @@ public NonlinearMinimizationResult Minimum(IObjectiveModel objective, Vector<dou
158
Pstep = Hessian.Solve(-Gradient);
159
160
// if ||ΔP|| <= xTol * (||P|| + xTol), found and stop
161
- if (Pstep.L2Norm() <= stepTolerance * (stepTolerance + P.DotProduct(P)))
+ if (Pstep.L2Norm() <= stepTolerance * (P.L2Norm() + stepTolerance))
162
{
163
exitCondition = ExitCondition.RelativePoints;
164
break;
0 commit comments