96 constrValue[0] = 1.0 * x[(constrIndex/10)+2];
99 constrValue[0] +=
A[constrIndex*
nV + i] * x[i];
Interface for specifying user-defined evaluations of constraint products.
MyConstraintProduct(const MyConstraintProduct &rhs)
virtual int operator()(int constrIndex, const real_t *const x, real_t *const constrValue) const
MyConstraintProduct(int_t _nV, int_t _nC, real_t *_A)
virtual ~MyConstraintProduct()
Example illustrating the use of the ConstraintProduct class.
MyConstraintProduct & operator=(const MyConstraintProduct &rhs)
void rhs(const real_t *x, real_t *f)
#define END_NAMESPACE_QPOASES
#define BEGIN_NAMESPACE_QPOASES