Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::SparseGaussNewtonSolverOptions Struct Reference

Extended options specific to the sparse Gauss-Newton optimization algorithm. More...

#include <gauss_newton_solver_sparse.h>

Inheritance diagram for momentum::SparseGaussNewtonSolverOptions:

Public Member Functions

 SparseGaussNewtonSolverOptions ()=default
 Default constructor.
 SparseGaussNewtonSolverOptions (const SolverOptions &baseOptions)
 Construct from base solver options while preserving defaults.
Public Member Functions inherited from momentum::SolverOptions
virtual ~SolverOptions ()=default
 Virtual destructor for polymorphic behavior.

Public Attributes

float regularization = 0.05f
 Damping parameter added to Hessian diagonal for numerical stability; see https://en.wikipedia.org/wiki/Levenberg%E2%80%93Marquardt_algorithm.
bool doLineSearch = false
 Enables backtracking line search to ensure error reduction at each step.
bool useBlockJtJ = false
 Uses pre-computed JᵀJ and JᵀR from the solver function.
bool directSparseJtJ = false
 Directly computes sparse JᵀJ without dense intermediate representation.
Public Attributes inherited from momentum::SolverOptions
size_t minIterations = 1
 Minimum number of iterations before checking convergence criteria.
size_t maxIterations = 2
 Maximum number of iterations before terminating.
float threshold = 1.0f
 Convergence threshold for relative error change.
bool verbose = false
 Enable detailed logging during optimization.

Detailed Description

Extended options specific to the sparse Gauss-Newton optimization algorithm.

Definition at line 16 of file gauss_newton_solver_sparse.h.

Constructor & Destructor Documentation

◆ SparseGaussNewtonSolverOptions() [1/2]

momentum::SparseGaussNewtonSolverOptions::SparseGaussNewtonSolverOptions ( )
default

Default constructor.

◆ SparseGaussNewtonSolverOptions() [2/2]

momentum::SparseGaussNewtonSolverOptions::SparseGaussNewtonSolverOptions ( const SolverOptions & baseOptions)
inline

Construct from base solver options while preserving defaults.

Definition at line 40 of file gauss_newton_solver_sparse.h.

Member Data Documentation

◆ directSparseJtJ

bool momentum::SparseGaussNewtonSolverOptions::directSparseJtJ = false

Directly computes sparse JᵀJ without dense intermediate representation.

Only effective when useBlockJtJ is true

Definition at line 34 of file gauss_newton_solver_sparse.h.

◆ doLineSearch

bool momentum::SparseGaussNewtonSolverOptions::doLineSearch = false

Enables backtracking line search to ensure error reduction at each step.

Definition at line 24 of file gauss_newton_solver_sparse.h.

Referenced by momentum::SparseGaussNewtonSolverT< T >::SparseGaussNewtonSolverT().

◆ regularization

float momentum::SparseGaussNewtonSolverOptions::regularization = 0.05f

Damping parameter added to Hessian diagonal for numerical stability; see https://en.wikipedia.org/wiki/Levenberg%E2%80%93Marquardt_algorithm.

Higher values improve stability but may slow convergence

Definition at line 21 of file gauss_newton_solver_sparse.h.

Referenced by momentum::SparseGaussNewtonSolverT< T >::SparseGaussNewtonSolverT().

◆ useBlockJtJ

bool momentum::SparseGaussNewtonSolverOptions::useBlockJtJ = false

Uses pre-computed JᵀJ and JᵀR from the solver function.

Can improve performance for problems with specialized structure

Definition at line 29 of file gauss_newton_solver_sparse.h.


The documentation for this struct was generated from the following file: