|
qpOASES 3.2.1
An Implementation of the Online Active Set Strategy
|
Auxiliary class for storing a copy of the current matrix factorisations. More...
#include <Flipper.hpp>
Public Member Functions | |
| Flipper () | |
| Flipper (uint_t _nV, uint_t _nC=0) | |
| Flipper (const Flipper &rhs) | |
| ~Flipper () | |
| Flipper & | operator= (const Flipper &rhs) |
| returnValue | init (uint_t _nV=0, uint_t _nC=0) |
| 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 | 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) |
Protected Member Functions | |
| returnValue | clear () |
| returnValue | copy (const Flipper &rhs) |
| uint_t | getDimT () const |
Protected Attributes | |
| uint_t | nV |
| uint_t | nC |
| Bounds | bounds |
| Constraints | constraints |
| real_t * | R |
| real_t * | Q |
| real_t * | T |
Friends | |
| class | QProblemB |
| class | QProblem |
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.
| BEGIN_NAMESPACE_QPOASES Flipper::Flipper | ( | ) |
| Flipper::Flipper | ( | uint_t | _nV, |
| uint_t | _nC = 0 |
||
| ) |
| Flipper::Flipper | ( | const Flipper & | rhs | ) |
| Flipper::~Flipper | ( | ) |
Destructor.
References clear().
|
protected |
Frees all allocated memory.
References Q, R, SUCCESSFUL_RETURN, and T.
Referenced by init(), operator=(), and ~Flipper().
|
protected |
Copies all members from given rhs object.
| rhs | Rhs object. |
References bounds, constraints, Q, R, set(), and T.
Referenced by Flipper(), and operator=().
| 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. |
References bounds, constraints, getDimT(), nV, Q, R, real_t, SUCCESSFUL_RETURN, and T.
Referenced by QProblemB::removeBound(), QProblem::removeBound(), and QProblem::removeConstraint().
|
protected |
| 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. |
References clear(), nC, nV, and SUCCESSFUL_RETURN.
Referenced by Flipper(), Flipper(), QProblem::QProblem(), QProblemB::QProblemB(), QProblem::reset(), and QProblemB::reset().
| 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. |
References bounds, constraints, getDimT(), nV, Q, R, real_t, SUCCESSFUL_RETURN, and T.
Referenced by copy(), QProblemB::removeBound(), QProblem::removeBound(), and QProblem::removeConstraint().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |