added output message for TRYLAMBDA verbosity level

release/4.3a0
Luca 2014-04-21 19:18:21 -04:00
parent dd780e356c
commit e98c4c2ac2
1 changed files with 5 additions and 1 deletions

View File

@ -291,8 +291,12 @@ 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;
}
}
}