Merge pull request #1381 from acowley/BatchFixedLagSmoother-verbosity
commit
5c59862238
|
@ -282,9 +282,12 @@ FixedLagSmoother::Result BatchFixedLagSmoother::optimize() {
|
||||||
// Reject this change
|
// Reject this change
|
||||||
if (lambda >= lambdaUpperBound) {
|
if (lambda >= lambdaUpperBound) {
|
||||||
// The maximum lambda has been used. Print a warning and end the search.
|
// The maximum lambda has been used. Print a warning and end the search.
|
||||||
cout
|
if(parameters_.verbosity >= NonlinearOptimizerParams::TERMINATION
|
||||||
|
|| parameters_.verbosityLM == LevenbergMarquardtParams::SUMMARY) {
|
||||||
|
cout
|
||||||
<< "Warning: Levenberg-Marquardt giving up because cannot decrease error with maximum lambda"
|
<< "Warning: Levenberg-Marquardt giving up because cannot decrease error with maximum lambda"
|
||||||
<< endl;
|
<< endl;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
// Increase lambda and continue searching
|
// Increase lambda and continue searching
|
||||||
|
|
Loading…
Reference in New Issue