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