qpOASES
3.1.1
|
Example illustrating the use of the ConstraintProduct class. More...
Public Member Functions | |
MyConstraintProduct () | |
MyConstraintProduct (int _nV, int _nC, real_t *_A) | |
MyConstraintProduct (const MyConstraintProduct &rhs) | |
virtual | ~MyConstraintProduct () |
MyConstraintProduct & | operator= (const MyConstraintProduct &rhs) |
virtual int | operator() (int constrIndex, const real_t *const x, real_t *const constrValue) const |
Protected Attributes | |
int | nV |
int | nC |
real_t * | A |
MyConstraintProduct::MyConstraintProduct | ( | ) | [inline] |
Default constructor.
MyConstraintProduct::MyConstraintProduct | ( | int | _nV, |
int | _nC, | ||
real_t * | _A | ||
) | [inline] |
MyConstraintProduct::MyConstraintProduct | ( | const MyConstraintProduct & | rhs | ) | [inline] |
virtual MyConstraintProduct::~MyConstraintProduct | ( | ) | [inline, virtual] |
Destructor.
virtual int MyConstraintProduct::operator() | ( | int | 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 MyConstraintProduct::nC [protected] |
Number of constraints.
Referenced by MyConstraintProduct(), and operator=().
int MyConstraintProduct::nV [protected] |
Number of variables.
Referenced by MyConstraintProduct(), operator()(), and operator=().