Sketcher: Fix #3658 Levenberg-Marquardt solver precision issues

This commit is contained in:
DeepSOIC
2020-03-24 04:03:20 +03:00
committed by wwmayer
parent 3cb6327bab
commit c7c981f643

View File

@@ -1740,7 +1740,7 @@ int System::solve_LM(SubSystem* subsys, bool isRedundantsolving)
// check error
double err=e.squaredNorm();
if (err <= eps) { // error is small, Success
if (err <= eps*eps) { // error is small, Success
stop = 1;
break;
}