44 real_t H[2*2] = { 1.0, 0.0, 0.0, 0.5 };
79 printf(
"\nxOpt = [ %e, %e ]; yOpt = [ %e, %e, %e ]; objVal = %e\n\n",
89 printf(
"\nxOpt = [ %e, %e ]; yOpt = [ %e, %e, %e ]; objVal = %e\n\n",
#define USING_NAMESPACE_QPOASES
returnValue QProblem_getPrimalSolution(QProblem *_THIS, real_t *const xOpt)
Provides a generic way to set and pass user-specified options.
real_t QProblem_getObjVal(QProblem *_THIS)
int_t QProblem_init(const real_t *const H, const real_t *const g, const real_t *const A, const real_t *const lb, const real_t *const ub, const real_t *const lbA, const real_t *const ubA, 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)
returnValue QProblem_getDualSolution(QProblem *_THIS, real_t *const yOpt)
returnValue Options_setToDefault(Options *_THIS)
int_t QProblem_hotstart(const real_t *const g, const real_t *const lb, const real_t *const ub, const real_t *const lbA, const real_t *const ubA, int_t *const nWSR, real_t *const cputime, real_t *const x, real_t *const y, real_t *const obj, int_t *const status)
Implements the online active set strategy for QPs with general constraints.
void QProblemCON(QProblem *_THIS, int _nV, int _nC, HessianType _hessianType)
static returnValue QProblem_setOptions(QProblem *_THIS, Options _options)
returnValue QProblem_printOptions(QProblem *_THIS)