mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
47d26bcd3b38b5ff53b34768c33b499d47b26bd0
In the TrustRegionMinimizer, the step is currently implicitly negated. This is done so that the linearized residual is |r - J*step|^2, which corresponds to J*step = r, so neither J nor r have to be modified. However, it leads to the rather unintuitive situation that the strategy returns a step in positive gradient direction, which you would expect to increase the function value. One way is to rename the "step" parameter in the strategy to "negative_step" and document it. This patch instead moves the negation inside the strategy, just around the linear solver call, so that it is done in a local context and easier to document. Change-Id: Idb258149a01f61c64e22128ea221c5a30cd89c89
Ceres Solver - A non-linear least squares minimizer ================================================== Please see ceres-solver.pdf in docs/ for a tutorial and reference.
Description
Languages
C++
94.4%
CMake
3.8%
Python
0.8%
C
0.5%
Starlark
0.4%