Auxiliary class for storing a copy of the current matrix factorisations. More...
#include <Flipper.hpp>
Public Member Functions | |
Flipper () | |
Flipper () | |
Flipper (int _nV, int _nC=0) | |
Flipper (uint_t _nV, uint_t _nC=0) | |
Flipper (const Flipper &rhs) | |
Flipper (const Flipper &rhs) | |
returnValue | get (Bounds *const _bounds, real_t *const R, Constraints *const _constraints=0, real_t *const _Q=0, real_t *const _T=0) const |
returnValue | get (Bounds *const _bounds, double *const R, Constraints *const _constraints=0, double *const _Q=0, double *const _T=0) const |
returnValue | init (uint_t _nV=0, uint_t _nC=0) |
returnValue | init (int _nV=0, int _nC=0) |
Flipper & | operator= (const Flipper &rhs) |
Flipper & | operator= (const Flipper &rhs) |
returnValue | set (const Bounds *const _bounds, const double *const _R, const Constraints *const _constraints=0, const double *const _Q=0, const double *const _T=0) |
returnValue | set (const Bounds *const _bounds, const real_t *const _R, const Constraints *const _constraints=0, const real_t *const _Q=0, const real_t *const _T=0) |
~Flipper () | |
~Flipper () | |
Public Attributes | |
unsigned int | nC |
unsigned int | nV |
real_t | Q [NVMAX *NVMAX] |
real_t | R [NVMAX *NVMAX] |
real_t | T [NVCMIN *NVCMIN] |
Protected Member Functions | |
returnValue | clear () |
returnValue | clear () |
returnValue | copy (const Flipper &rhs) |
returnValue | copy (const Flipper &rhs) |
int | getDimT () const |
uint_t | getDimT () const |
Protected Attributes | |
Bounds | bounds |
Constraints | constraints |
uint_t | nC |
int | nC |
uint_t | nV |
int | nV |
real_t * | Q |
real_t * | R |
real_t * | T |
Friends | |
class | QProblem |
class | QProblemB |
Auxiliary class for storing a copy of the current matrix factorisations.
This auxiliary class stores a copy of the current matrix factorisations. It is used by the classe QProblemB and QProblem in case flipping bounds are enabled.
This auxiliary class stores a copy of the current matrix factorisations. It is used by the classe QProblemB and QProblem in case flipping bounds are enabled.
This auxiliary class stores a copy of the current matrix factorisations. It is used by the classe QProblemB and QProblem in case flipping bounds are enabled.
Definition at line 57 of file qpOASES-3.0beta/include/qpOASES/Flipper.hpp.
BEGIN_NAMESPACE_QPOASES Flipper::Flipper | ( | ) |
Default constructor.
Definition at line 50 of file qpOASES-3.0beta/src/Flipper.cpp.
Flipper::Flipper | ( | int | _nV, |
int | _nC = 0 |
||
) |
Constructor which takes the number of bounds and constraints.
_nV | Number of bounds. |
_nC | Number of constraints. |
Definition at line 63 of file qpOASES-3.0beta/src/Flipper.cpp.
Flipper::Flipper | ( | const Flipper & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Definition at line 78 of file qpOASES-3.0beta/src/Flipper.cpp.
Flipper::~Flipper | ( | ) |
Destructor.
Definition at line 91 of file qpOASES-3.0beta/src/Flipper.cpp.
Flipper::Flipper | ( | ) |
Default constructor.
Constructor which takes the number of bounds and constraints.
_nV | Number of bounds. |
_nC | Number of constraints. |
Definition at line 63 of file qpOASES-3.2.0/src/Flipper.cpp.
Flipper::Flipper | ( | const Flipper & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Flipper::~Flipper | ( | ) |
Destructor.
|
protected |
Frees all allocated memory.
Definition at line 225 of file qpOASES-3.0beta/src/Flipper.cpp.
|
protected |
Frees all allocated memory.
|
protected |
Copies all members from given rhs object.
rhs | Rhs object. |
Definition at line 252 of file qpOASES-3.0beta/src/Flipper.cpp.
|
protected |
Copies all members from given rhs object.
rhs | Rhs object. |
returnValue Flipper::get | ( | Bounds *const | _bounds, |
double *const | R, | ||
Constraints *const | _constraints = 0 , |
||
double *const | _Q = 0 , |
||
double *const | _T = 0 |
||
) | const |
Copies current values to non-null arguments (assumed to be allocated with consistent size).
_bounds | Pointer to new bounds. |
R | New matrix R. |
_constraints | Pointer to new constraints. |
_Q | New matrix Q. |
_T | New matrix T. |
Definition at line 147 of file qpOASES-3.0beta/src/Flipper.cpp.
returnValue Flipper::get | ( | Bounds *const | _bounds, |
real_t *const | R, | ||
Constraints *const | _constraints = 0 , |
||
real_t *const | _Q = 0 , |
||
real_t *const | _T = 0 |
||
) | const |
Copies current values to non-null arguments (assumed to be allocated with consistent size).
_bounds | Pointer to new bounds. |
R | New matrix R. |
_constraints | Pointer to new constraints. |
_Q | New matrix Q. |
_T | New matrix T. |
|
protected |
Returns dimension of matrix T.
|
protected |
Returns dimension of matrix T.
Definition at line 259 of file qpOASES-3.0beta/src/Flipper.cpp.
returnValue Flipper::init | ( | uint_t | _nV = 0 , |
uint_t | _nC = 0 |
||
) |
Initialises object with given number of bounds and constraints.
_nV | Number of bounds. |
_nC | Number of constraints. |
Definition at line 116 of file qpOASES-3.2.0/src/Flipper.cpp.
returnValue Flipper::init | ( | int | _nV = 0 , |
int | _nC = 0 |
||
) |
Initialises object with given number of bounds and constraints.
_nV | Number of bounds. |
_nC | Number of constraints. |
Definition at line 116 of file qpOASES-3.0beta/src/Flipper.cpp.
Assignment operator (deep copy).
rhs | Rhs object. |
Definition at line 100 of file qpOASES-3.0beta/src/Flipper.cpp.
Assignment operator (deep copy).
rhs | Rhs object. |
returnValue Flipper::set | ( | const Bounds *const | _bounds, |
const double *const | _R, | ||
const Constraints *const | _constraints = 0 , |
||
const double *const | _Q = 0 , |
||
const double *const | _T = 0 |
||
) |
Assigns new values to non-null arguments.
_bounds | Pointer to new bounds. |
_R | New matrix R. |
_constraints | Pointer to new constraints. |
_Q | New matrix Q. |
_T | New matrix T. |
Definition at line 176 of file qpOASES-3.0beta/src/Flipper.cpp.
returnValue Flipper::set | ( | const Bounds *const | _bounds, |
const real_t *const | _R, | ||
const Constraints *const | _constraints = 0 , |
||
const real_t *const | _Q = 0 , |
||
const real_t *const | _T = 0 |
||
) |
Assigns new values to non-null arguments.
_bounds | Pointer to new bounds. |
_R | New matrix R. |
_constraints | Pointer to new constraints. |
_Q | New matrix Q. |
_T | New matrix T. |
|
friend |
Definition at line 60 of file qpOASES-3.0beta/include/qpOASES/Flipper.hpp.
|
friend |
Definition at line 59 of file qpOASES-3.0beta/include/qpOASES/Flipper.hpp.
|
protected |
Data structure for problem's bounds.
Definition at line 138 of file qpOASES-3.0beta/include/qpOASES/Flipper.hpp.
|
protected |
Data structure for problem's constraints.
Definition at line 139 of file qpOASES-3.0beta/include/qpOASES/Flipper.hpp.
|
protected |
Number of constraints.
Definition at line 136 of file qpOASES-3.2.0/include/qpOASES/Flipper.hpp.
|
protected |
Number of constraints.
Definition at line 136 of file qpOASES-3.0beta/include/qpOASES/Flipper.hpp.
|
protected |
Number of variables.
Definition at line 135 of file qpOASES-3.2.0/include/qpOASES/Flipper.hpp.
|
protected |
Number of variables.
Definition at line 135 of file qpOASES-3.0beta/include/qpOASES/Flipper.hpp.
|
protected |
Orthonormal quadratic matrix, A = [0 T]*Q'.
Definition at line 142 of file qpOASES-3.0beta/include/qpOASES/Flipper.hpp.
|
protected |
Cholesky factor of H (i.e. H = R^T*R).
Definition at line 141 of file qpOASES-3.0beta/include/qpOASES/Flipper.hpp.
|
protected |
Reverse triangular matrix, A = [0 T]*Q'.
Definition at line 143 of file qpOASES-3.0beta/include/qpOASES/Flipper.hpp.