WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
SolverIterationInfo.hpp
Go to the documentation of this file.
1// Copyright (c) Sleipnir contributors
2
3#pragma once
4
5#include <Eigen/Core>
6#include <Eigen/SparseCore>
7
8namespace sleipnir {
9
10/**
11 * Solver iteration information exposed to a user callback.
12 */
14 /// The solver iteration.
16
17 /// The decision variables.
18 const Eigen::VectorXd& x;
19
20 /// The inequality constraint slack variables.
21 const Eigen::VectorXd& s;
22
23 /// The gradient of the cost function.
24 const Eigen::SparseVector<double>& g;
25
26 /// The Hessian of the Lagrangian.
27 const Eigen::SparseMatrix<double>& H;
28
29 /// The equality constraint Jacobian.
30 const Eigen::SparseMatrix<double>& A_e;
31
32 /// The inequality constraint Jacobian.
33 const Eigen::SparseMatrix<double>& A_i;
34};
35
36} // namespace sleipnir
Definition Hessian.hpp:18
Solver iteration information exposed to a user callback.
Definition SolverIterationInfo.hpp:13
const Eigen::SparseMatrix< double > & A_i
The inequality constraint Jacobian.
Definition SolverIterationInfo.hpp:33
int iteration
The solver iteration.
Definition SolverIterationInfo.hpp:15
const Eigen::SparseMatrix< double > & A_e
The equality constraint Jacobian.
Definition SolverIterationInfo.hpp:30
const Eigen::VectorXd & x
The decision variables.
Definition SolverIterationInfo.hpp:18
const Eigen::SparseMatrix< double > & H
The Hessian of the Lagrangian.
Definition SolverIterationInfo.hpp:27
const Eigen::SparseVector< double > & g
The gradient of the cost function.
Definition SolverIterationInfo.hpp:24
const Eigen::VectorXd & s
The inequality constraint slack variables.
Definition SolverIterationInfo.hpp:21