mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 09:00:37 +08:00
e9eb8a324e
Previously, even when an iteration was successful, the LineSearchMinimizer would only add the iteration summary to the Summary object if none of the convergence tests were passed. This could cause iterations with significant progress in the last iteration to be mis-reported. The solution would be correct, but the actual cost would be misreported. This change changes the order of these operations and ensures that the iteration summary is added whenever the iteration itself is successful. Thanks to Daniel Weindl for reporting this. Change-Id: Iff10eccb49d50ad28127f44e149c17fa466db4ae