Sleipnir C++ API
Loading...
Searching...
No Matches
slp::SQPKKTSystem< 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

 SQPKKTSystem (const SparseMatrix &H, const SparseMatrix &A_e)
 
void build (const SparseMatrix &H, const SparseMatrix &A_e)
 
bool factorize ()
 
SQPStep< Scalar > solve (const SparseVector &g, const SparseMatrix &A_e, const DenseVector &y, const DenseVector &c_e) const
 
Scalar hessian_regularization () const
 
Scalar constraint_jacobian_regularization () const
 

Detailed Description

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

The sequential quadratic programming method's Newton-KKT system.

[Aₑ 0 ][−pʸ] [ cₑ ]
Definition intrusive_shared_ptr.hpp:27
Template Parameters
ScalarScalar type.

Constructor & Destructor Documentation

◆ SQPKKTSystem()

template<typename Scalar >
slp::SQPKKTSystem< Scalar >::SQPKKTSystem ( const SparseMatrix &  H,
const SparseMatrix &  A_e 
)
inline

Constructs the system for a problem with the given derivative sparsity patterns.

Parameters
HThe Hessian of the Lagrangian.
A_eThe equality constraint Jacobian.

Member Function Documentation

◆ build()

template<typename Scalar >
void slp::SQPKKTSystem< Scalar >::build ( const SparseMatrix &  H,
const SparseMatrix &  A_e 
)
inline

Builds the system's matrix at the given iterate.

Parameters
HThe Hessian of the Lagrangian.
A_eThe equality constraint Jacobian.

◆ constraint_jacobian_regularization()

template<typename Scalar >
Scalar slp::SQPKKTSystem< 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::SQPKKTSystem< Scalar >::factorize ( )
inline

Factorizes the matrix from the last build().

Returns
True if the factorization succeeded.

◆ hessian_regularization()

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

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

Returns
Hessian regularization factor.

◆ solve()

template<typename Scalar >
SQPStep< Scalar > slp::SQPKKTSystem< Scalar >::solve ( const SparseVector &  g,
const SparseMatrix &  A_e,
const DenseVector &  y,
const DenseVector &  c_e 
) const
inline

Solves the system with the last factorization.

Parameters
gThe cost function gradient.
A_eThe equality constraint Jacobian.
yThe equality constraint dual variables.
c_eThe equality constraint values.
Returns
The step.

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