![]() |
Sleipnir C++ API
|
#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 |
The sequential quadratic programming method's Newton-KKT system.
| Scalar | Scalar type. |
|
inline |
|
inline |
|
inline |
Returns the constraint Jacobian regularization factor from the last factorize().
|
inline |
Factorizes the matrix from the last build().
|
inline |
Returns the Hessian regularization factor from the last factorize().
|
inline |
Solves the system with the last factorization.
| g | The cost function gradient. |
| A_e | The equality constraint Jacobian. |
| y | The equality constraint dual variables. |
| c_e | The equality constraint values. |