56 [[nodiscard]] std::string_view
getName()
const override;
78 bool directSparseJtJ_{};
84 Eigen::SimplicialLLT<Eigen::SparseMatrix<T>, Eigen::Lower> lltSolver_;
87 Eigen::SparseMatrix<T> JtJ_;
90 Eigen::SparseMatrix<T> D_;
93 Eigen::MatrixX<T> jacobian_;
96 Eigen::MatrixX<T> hessianApprox_;
99 Eigen::VectorX<T> JtR_;
102 Eigen::VectorX<T> residual_;
Abstract base class for optimization objective functions.
SolverT(const SolverOptions &options, SolverFunctionT< T > *solver)
Constructor with solver options and function to optimize.
std::string_view getName() const override
Returns "SparseGaussNewton" as the solver name.
void setOptions(const SolverOptions &options) final
Updates solver configuration, handling both base and sparse Gauss-Newton specific options.
void initializeSolver() final
void doIteration() final
Performs one iteration of the sparse Gauss-Newton algorithm.
SparseGaussNewtonSolverT(const SolverOptions &options, SolverFunctionT< T > *solver)
Creates a solver with the specified options and function to optimize.
Vector< T, Dynamic > VectorX
Dynamic-size column vector. Common return type for solver residuals and parameter vectors.
Common options for numerical optimization solvers.
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.
bool directSparseJtJ
Directly computes sparse JᵀJ without dense intermediate representation.
SparseGaussNewtonSolverOptions()=default
Default constructor.
bool useBlockJtJ
Uses pre-computed JᵀJ and JᵀR from the solver function.
SparseGaussNewtonSolverOptions(const SolverOptions &baseOptions)
Construct from base solver options while preserving defaults.