File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ class Minimizer
222
222
tmpNorm = norm2 (tmpFx);
223
223
224
224
// Was there enough progress?
225
- if (tmpNorm * ( 1 + errorTolerance) < _minNorm) {
225
+ if (tmpNorm < _minNorm) {
226
226
_minX = tmpX;
227
227
_minFx = tmpFx;
228
228
_minNorm = tmpNorm;
@@ -545,7 +545,7 @@ class ConstrainedMinimizer
545
545
tmpNormFxGx += (_mu * (tmpGx[i] * tmpGx[i]) + 2 * tmpGx[i] * _minZ[i] + (_minZ[i] * _minZ[i]) / _mu);
546
546
547
547
// Was there enough progress?
548
- if (tmpNormFxGx * ( 1 + errorTolerance) < minNormFxGx) {
548
+ if (tmpNormFxGx < minNormFxGx) {
549
549
_minX = tmpX;
550
550
_minFx = tmpFx;
551
551
_minGx = tmpGx;
@@ -618,4 +618,4 @@ class ConstrainedMinimizer
618
618
619
619
} // namespace LazyMath
620
620
621
- #endif // LAZY_OPTIMIZATION_H
621
+ #endif // LAZY_OPTIMIZATION_H
You can’t perform that action at this time.
0 commit comments