Sleipnir C++ API
Loading...
Searching...
No Matches
slp::NewtonKKTSystem< Scalar > Class Template Reference

#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/optimization/solver/util/kkt_system.hpp>

Public Types

using DenseVector = Eigen::VectorX< Scalar >
 Type alias for dense vector.
 
using SparseMatrix = Eigen::SparseMatrix< Scalar >
 Type alias for sparse matrix.
 
using SparseVector = Eigen::SparseVector< Scalar >
 Type alias for sparse vector.
 

Public Member Functions

 NewtonKKTSystem (const SparseMatrix &H)
 
bool factorize (const SparseMatrix &H)
 
NewtonStep< Scalar > solve (const SparseVector &g) const
 
Scalar hessian_regularization () const
 
Scalar constraint_jacobian_regularization () const
 

Detailed Description

template<typename Scalar>
class slp::NewtonKKTSystem< Scalar >

Newton's method's Newton-KKT system.

Definition intrusive_shared_ptr.hpp:27
Template Parameters
ScalarScalar type.

Constructor & Destructor Documentation

◆ NewtonKKTSystem()

template<typename Scalar >
slp::NewtonKKTSystem< Scalar >::NewtonKKTSystem ( const SparseMatrix &  H)
inlineexplicit

Constructs the system for a problem with the given Hessian sparsity pattern.

Parameters
HThe Hessian of the cost function.

Member Function Documentation

◆ constraint_jacobian_regularization()

template<typename Scalar >
Scalar slp::NewtonKKTSystem< Scalar >::constraint_jacobian_regularization ( ) const
inline

Returns the constraint Jacobian regularization factor from the last factorize().

Returns
Constraint Jacobian regularization factor.

◆ factorize()

template<typename Scalar >
bool slp::NewtonKKTSystem< Scalar >::factorize ( const SparseMatrix &  H)
inline

Factorizes the system's matrix at the given iterate.

Parameters
HThe Hessian of the cost function.
Returns
True if the factorization succeeded.

◆ hessian_regularization()

template<typename Scalar >
Scalar slp::NewtonKKTSystem< Scalar >::hessian_regularization ( ) const
inline

Returns the Hessian regularization factor from the last factorize().

Returns
Hessian regularization factor.

◆ solve()

template<typename Scalar >
NewtonStep< Scalar > slp::NewtonKKTSystem< Scalar >::solve ( const SparseVector &  g) const
inline

Solves the system with the last factorization.

Parameters
gThe cost function gradient.
Returns
The step.

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