73 [[nodiscard]] std::string_view
getName()
const override;
80 return hessianApprox_;
100 void updateEnabledParameters();
103 void computeJtJFromBlockJtJ();
106 void computeJtJFromJacobianBlocks();
121 size_t targetRowsPerChunk_;
124 Eigen::MatrixX<T> hessianApprox_;
127 Eigen::VectorX<T> JtR_;
130 Eigen::LLT<Eigen::MatrixX<T>> llt_;
136 std::vector<int> enabledParameters_;
GaussNewtonSolverT(const SolverOptions &options, SolverFunctionT< T > *solver)
Creates a solver with the specified options and function to optimize.
const Eigen::VectorX< T > & getLastJtR() const
const Eigen::MatrixX< T > & getLastJtJ() const
void setOptions(const SolverOptions &options) final
Updates solver configuration, handling both base and Gauss-Newton specific options.
void initializeSolver() final
void doIteration() final
Performs one iteration of the Gauss-Newton algorithm.
std::string_view getName() const override
Returns "GaussNewton" as the solver name.
A dense column-major matrix whose underlying storage capacity grows monotonically and is reused acros...
Abstract base class for optimization objective functions.
SolverT(const SolverOptions &options, SolverFunctionT< T > *solver)
Constructor with solver options and function to optimize.
Vector< T, Dynamic > VectorX
Dynamic-size column vector. Common return type for solver residuals and parameter vectors.
GaussNewtonSolverBaseOptions()=default
Default constructor.
float regularization
Damping parameter added to Hessian diagonal for numerical stability; see https://en....
bool doLineSearch
Enables backtracking line search to ensure error reduction at each step.
GaussNewtonSolverBaseOptions(const SolverOptions &baseOptions)
Construct from base solver options while preserving Gauss-Newton defaults.
bool useBlockJtJ
Uses pre-computed JᵀJ and JᵀR from the solver function.
GaussNewtonSolverOptions()=default
Default constructor.
GaussNewtonSolverOptions(const SolverOptions &baseOptions)
Construct from base solver options while preserving Gauss-Newton defaults.
size_t targetRowsPerChunk
Target number of Jacobian rows to accumulate before computing JᵀJ.
Common options for numerical optimization solvers.