File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ class Minimizer
222222 tmpNorm = norm2 (tmpFx);
223223
224224 // Was there enough progress?
225- if (tmpNorm * ( 1 + errorTolerance) < _minNorm) {
225+ if (tmpNorm < _minNorm) {
226226 _minX = tmpX;
227227 _minFx = tmpFx;
228228 _minNorm = tmpNorm;
@@ -545,7 +545,7 @@ class ConstrainedMinimizer
545545 tmpNormFxGx += (_mu * (tmpGx[i] * tmpGx[i]) + 2 * tmpGx[i] * _minZ[i] + (_minZ[i] * _minZ[i]) / _mu);
546546
547547 // Was there enough progress?
548- if (tmpNormFxGx * ( 1 + errorTolerance) < minNormFxGx) {
548+ if (tmpNormFxGx < minNormFxGx) {
549549 _minX = tmpX;
550550 _minFx = tmpFx;
551551 _minGx = tmpGx;
@@ -618,4 +618,4 @@ class ConstrainedMinimizer
618618
619619} // namespace LazyMath
620620
621- #endif // LAZY_OPTIMIZATION_H
621+ #endif // LAZY_OPTIMIZATION_H
You can’t perform that action at this time.
0 commit comments