90 constrValue[0] = 1.0 * x[(constrIndex/10)+2];
92 for(
int i=0; i<2; ++i )
93 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
virtual ~MyConstraintProduct()
Example illustrating the use of the ConstraintProduct class.
MyConstraintProduct & operator=(const MyConstraintProduct &rhs)
MyConstraintProduct(int _nV, int _nC, real_t *_A)
void rhs(const real_t *x, real_t *f)
#define END_NAMESPACE_QPOASES
#define BEGIN_NAMESPACE_QPOASES