37 #include <qpOASES.hpp> 46 real_t H[2*2] = { 1.0, 0.0, 0.0, 0.5 };
70 example.
init( H,g,A,lb,ub,lbA,ubA, nWSR,0 );
75 printf(
"maxKKTviolation: %e\n", maxKKTviolation );
79 example.
hotstart( H_new,g_new,A_new,lb_new,ub_new,lbA_new,ubA_new, nWSR,0 );
83 printf(
"maxKKTviolation: %e\n", maxKKTviolation );
92 for( run1 = 0; run1 < 5*5; run1++ )
107 printf(
"\nPrimal_Dual_VAR = \n");
108 for( run1 = 0; run1 < 5; run1++ ){
109 for( run2 = 0; run2 < 5; run2++ ){
110 printf(
" %10f", Primal_Dual_Var[run1*5+run2]);
#define USING_NAMESPACE_QPOASES
returnValue 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 &nWSR, const real_t *const yOpt=0, real_t *const cputime=0)
Implements the online active set strategy for QPs with varying matrices.
Provides additional tools for analysing QP solutions.
returnValue getMaxKKTviolation(QProblemB *qp, real_t &maxKKTviolation) const
returnValue getVarianceCovariance(QProblemB *qp, real_t *g_b_bA_VAR, real_t *Primal_Dual_VAR) const
returnValue hotstart(const real_t *const H_new, const real_t *const g_new, const real_t *const A_new, const real_t *const lb_new, const real_t *const ub_new, const real_t *const lbA_new, const real_t *const ubA_new, int &nWSR, real_t *const cputime)