44 real_t H[2*2] = { 1.0, 0.0, 0.0, 0.5 };
77 printf(
"\nxOpt = [ %e, %e ]; objVal = %e\n\n", xOpt[0],xOpt[1],
QProblemB_getObjVal(&example) );
85 printf(
"\nxOpt = [ %e, %e ]; objVal = %e\n\n", xOpt[0],xOpt[1],
QProblemB_getObjVal(&example) );
void QProblemBCON(QProblemB *_THIS, int _nV, HessianType _hessianType)
#define USING_NAMESPACE_QPOASES
Implements the online active set strategy for box-constrained QPs.
real_t QProblemB_getObjVal(QProblemB *_THIS)
int_t QProblemB_hotstart(const real_t *const g, const real_t *const lb, const real_t *const ub, int_t *const nWSR, real_t *const cputime, real_t *const x, real_t *const y, real_t *const obj, int_t *const status)
Provides a generic way to set and pass user-specified options.
static returnValue QProblemB_setOptions(QProblemB *_THIS, Options _options)
returnValue QProblemB_getPrimalSolution(QProblemB *_THIS, real_t *const xOpt)
returnValue Options_setToDefault(Options *_THIS)
int_t QProblemB_init(const real_t *const H, const real_t *const g, const real_t *const lb, const real_t *const ub, int_t *const nWSR, real_t *const cputime, const qpOASES_Options *const options, real_t *const x, real_t *const y, real_t *const obj, int_t *const status)
SubjectToStatus initialStatusBounds