WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
iteration_info.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 slp {
9
10/**
11 * Solver iteration information exposed to an iteration callback.
12 */
14 /// The solver iteration.
16
17 /// The decision variables.
18 const Eigen::VectorXd& x;
19
20 /// The gradient of the cost function.
21 const Eigen::SparseVector<double>& g;
22
23 /// The Hessian of the Lagrangian.
24 const Eigen::SparseMatrix<double>& H;
25
26 /// The equality constraint Jacobian.
27 const Eigen::SparseMatrix<double>& A_e;
28
29 /// The inequality constraint Jacobian.
30 const Eigen::SparseMatrix<double>& A_i;
31};
32
33} // namespace slp
Definition expression_graph.hpp:11
Solver iteration information exposed to an iteration callback.
Definition iteration_info.hpp:13
const Eigen::SparseMatrix< double > & A_i
The inequality constraint Jacobian.
Definition iteration_info.hpp:30
int iteration
The solver iteration.
Definition iteration_info.hpp:15
const Eigen::VectorXd & x
The decision variables.
Definition iteration_info.hpp:18
const Eigen::SparseVector< double > & g
The gradient of the cost function.
Definition iteration_info.hpp:21
const Eigen::SparseMatrix< double > & H
The Hessian of the Lagrangian.
Definition iteration_info.hpp:24
const Eigen::SparseMatrix< double > & A_e
The equality constraint Jacobian.
Definition iteration_info.hpp:27