wbc
|
Describes a quadratic program of the form. More...
#include <QuadraticProgram.hpp>
Public Member Functions | |
void | resize (uint nq, uint neq, uint nin, bool bounds) |
void | check () const |
void | print () const |
Public Attributes | |
int | nq |
int | neq |
int | nin |
bool | bounded |
base::MatrixXd | H |
base::VectorXd | g |
base::MatrixXd | A |
base::VectorXd | b |
base::MatrixXd | C |
base::VectorXd | lower_y |
base::VectorXd | upper_y |
base::VectorXd | lower_x |
base::VectorXd | upper_x |
base::VectorXd | Wy |
Describes a quadratic program of the form.
\[ \begin{array}{ccc} min(\mathbf{x}) & \frac{1}{2} \mathbf{x}^T\mathbf{H}\mathbf{x}+\mathbf{x}^T\mathbf{g}& \\ & & \\ s.t. & lb(\mathbf{Ax}) \leq \mathbf{Ax} \leq ub(\mathbf{Ax})& \\ & lb(\mathbf{x}) \leq \mathbf{x} \leq ub(\mathbf{x})& \\ \end{array} \]
void wbc::QuadraticProgram::check | ( | ) | const |
Check if matrix and vectors dims match with nq, neq, nin. Throw exception if not
void wbc::QuadraticProgram::print | ( | ) | const |
Print content to console
void wbc::QuadraticProgram::resize | ( | uint | nq, |
uint | neq, | ||
uint | nin, | ||
bool | bounds ) |
Constraint weights (nc x 1). Default entry is 1. Initialize all variables with NaN
base::MatrixXd wbc::QuadraticProgram::A |
Gradient vector (nq x 1)
base::VectorXd wbc::QuadraticProgram::b |
Equalities constraint matrix (neq x nq)
bool wbc::QuadraticProgram::bounded |
Number of inequalities constraints for this prio
base::MatrixXd wbc::QuadraticProgram::C |
Equalities constraint vector (neq x 1)
base::VectorXd wbc::QuadraticProgram::g |
Hessian Matrix (nq x nq)
base::MatrixXd wbc::QuadraticProgram::H |
Contains simple boiunds for the variables
base::VectorXd wbc::QuadraticProgram::lower_x |
Upper bound of the constraint vector (nin x 1)
base::VectorXd wbc::QuadraticProgram::lower_y |
Inequalities constraint matrix (nin x nq)
int wbc::QuadraticProgram::neq |
Number of variables
int wbc::QuadraticProgram::nin |
Number of equalities constraints for this prio
int wbc::QuadraticProgram::nq |
base::VectorXd wbc::QuadraticProgram::upper_x |
Lower bound of the solution vector (nq x 1)
base::VectorXd wbc::QuadraticProgram::upper_y |
Lower bound of the constraint vector (nin x 1)
base::VectorXd wbc::QuadraticProgram::Wy |
Upper bound of the solution vector (nq x 1)