|
qpOASES
3.2.1
An Implementation of the Online Active Set Strategy
|
Example illustrating the use of the ConstraintProduct class. More...
Public Member Functions | |
| MyConstraintProduct () | |
| MyConstraintProduct (int_t _nV, int_t _nC, real_t *_A) | |
| MyConstraintProduct (const MyConstraintProduct &rhs) | |
| virtual | ~MyConstraintProduct () |
| MyConstraintProduct & | operator= (const MyConstraintProduct &rhs) |
| virtual int_t | operator() (int_t constrIndex, const real_t *const x, real_t *const constrValue) const |
Protected Attributes | |
| int_t | nV |
| int_t | nC |
| real_t * | A |
| MyConstraintProduct::MyConstraintProduct | ( | ) | [inline] |
Default constructor.
| MyConstraintProduct::MyConstraintProduct | ( | int_t | _nV, |
| int_t | _nC, | ||
| real_t * | _A | ||
| ) | [inline] |
| MyConstraintProduct::MyConstraintProduct | ( | const MyConstraintProduct & | rhs | ) | [inline] |
| virtual MyConstraintProduct::~MyConstraintProduct | ( | ) | [inline, virtual] |
Destructor.
| virtual int_t MyConstraintProduct::operator() | ( | int_t | constrIndex, |
| const real_t *const | x, | ||
| real_t *const | constrValue | ||
| ) | const [inline, virtual] |
Evaluates the product of a given constraint with the current iterate. This function needs to be implemented in a derived class for the user-defined constraint product function.
Implements ConstraintProduct.
| MyConstraintProduct& MyConstraintProduct::operator= | ( | const MyConstraintProduct & | rhs | ) | [inline] |
real_t* MyConstraintProduct::A [protected] |
Pointer to full constraint matrix (typically not needed!).
Referenced by MyConstraintProduct(), operator()(), and operator=().
int_t MyConstraintProduct::nC [protected] |
Number of constraints.
Referenced by MyConstraintProduct(), and operator=().
int_t MyConstraintProduct::nV [protected] |
Number of variables.
Referenced by MyConstraintProduct(), operator()(), and operator=().
1.7.6.1