added output message for TRYLAMBDA verbosity level
parent
dd780e356c
commit
e98c4c2ac2
|
@ -291,10 +291,14 @@ void LevenbergMarquardtOptimizer::iterate() {
|
|||
|
||||
double minAbsoluteTolerance = params_.relativeErrorTol * state_.error;
|
||||
// if the change is small we terminate
|
||||
if (fabs(costChange) < minAbsoluteTolerance)
|
||||
if (fabs(costChange) < minAbsoluteTolerance){
|
||||
if (lmVerbosity >= LevenbergMarquardtParams::TRYLAMBDA)
|
||||
cout << "fabs(costChange)="<<fabs(costChange) << " minAbsoluteTolerance="<< minAbsoluteTolerance
|
||||
<< " (relativeErrorTol=" << params_.relativeErrorTol << ")" << endl;
|
||||
stopSearchingLambda = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (step_is_successful) { // we have successfully decreased the cost and we have good modelFidelity
|
||||
state_.values.swap(newValues);
|
||||
|
|
Loading…
Reference in New Issue