40 #include <scilab/stack-c.h> 41 #include <scilab/Scierror.h> 43 #include "../c/qpOASES_wrapper.h" 127 int_t x, obj, status, nWSRout,
y;
130 int minlhs = 1, maxlhs = 5, minrhs = 8, maxrhs = 8, one = 1, y_size;
132 CheckRhs( minrhs,maxrhs );
133 CheckLhs( minlhs,maxlhs );
137 GetRhsVar( 1,
"d", &H_rows,&H_cols,&H );
138 if ( ( H_rows != H_cols ) || ( H_rows < 1 ) )
140 Scierror( 111,
"ERROR (qpOASES): Dimension mismatch!\n" );
144 GetRhsVar( 2,
"d", &g_rows,&g_cols,&g );
145 if ( !( ( ( g_rows == H_rows ) && ( g_cols == 1 ) ) || ( ( g_rows == 1 ) && ( g_cols == H_rows ) ) ) )
147 Scierror( 112,
"ERROR (qpOASES): Dimension mismatch!\n" );
151 GetRhsVar( 3,
"d", &A_rows,&A_cols,&A );
152 if ( ( A_cols != H_rows ) || ( A_rows < 1 ) )
154 Scierror( 113,
"ERROR (qpOASES): Dimension mismatch!\n" );
158 GetRhsVar( 4,
"d", &lb_rows,&lb_cols,&lb);
159 if ( !( ( ( lb_rows == H_rows ) && ( lb_cols == 1 ) ) || ( ( lb_rows == 0 ) && ( lb_cols == 0 ) ) ) )
161 Scierror( 114,
"ERROR (qpOASES): Dimension mismatch!\n" );
165 GetRhsVar( 5,
"d", &ub_rows,&ub_cols,&ub);
166 if ( !( ( ( ub_rows == H_rows ) && ( ub_cols == 1 ) ) || ( ( ub_rows == 0 ) && ( ub_cols == 0 ) ) ) )
168 Scierror( 115,
"ERROR (qpOASES): Dimension mismatch!\n" );
172 GetRhsVar( 6,
"d", &lbA_rows,&lbA_cols,&lbA);
173 if ( !( ( ( lbA_rows == A_rows ) && ( lbA_cols == 1 ) ) || ( ( lbA_rows == 0 ) && ( lbA_cols == 0 ) ) ) )
175 Scierror( 116,
"ERROR (qpOASES): Dimension mismatch!\n" );
179 GetRhsVar( 7,
"d", &ubA_rows,&ubA_cols,&ubA);
180 if ( !( ( ( ubA_rows == A_rows ) && ( ubA_cols == 1 ) ) || ( ( ubA_rows == 0 ) && ( ubA_cols == 0 ) ) ) )
182 Scierror( 117,
"ERROR (qpOASES): Dimension mismatch!\n" );
186 GetRhsVar( 8,
"i", &nWSR_rows,&nWSR_cols,&nWSR);
187 if ( ( nWSR_rows != nWSR_cols ) || ( nWSR_cols != 1 ) )
189 Scierror( 118,
"ERROR (qpOASES): Dimension mismatch!\n" );
194 y_size = H_rows + A_rows;
196 CreateVar( 9,
"d", &H_rows,&one,&x );
197 CreateVar( 10,
"d", &one,&one,&obj );
198 CreateVar( 11,
"i", &one,&one,&status );
199 CreateVar( 12,
"i", &one,&one,&nWSRout );
200 CreateVar( 13,
"d", &y_size,&one,&y );
204 sci_qpOASES( stk(H),stk(g),stk(A), (lb_rows!=0) ? stk(lb) : 0, (ub_rows!=0) ? stk(ub) : 0, (lbA_rows!=0) ? stk(lbA) : 0, (ubA_rows!=0) ? stk(ubA) : 0,
205 &H_rows,&A_rows,istk(nWSR),
206 stk(x),stk(obj),istk(status),istk(nWSRout),stk(y)
233 int_t x, obj, status, nWSRout,
y;
236 int minlhs = 1, maxlhs = 5, minrhs = 8, maxrhs = 8, one = 1, y_size;
238 CheckRhs( minrhs,maxrhs );
239 CheckLhs( minlhs,maxlhs );
243 GetRhsVar( 1,
"d", &H_rows,&H_cols,&H );
244 if ( ( H_rows != H_cols ) || ( H_rows < 1 ) )
246 Scierror( 211,
"ERROR (qpOASES): Dimension mismatch!\n" );
250 GetRhsVar( 2,
"d", &g_rows,&g_cols,&g );
251 if ( !( ( ( g_rows == H_rows ) && ( g_cols == 1 ) ) || ( ( g_rows == 1 ) && ( g_cols == H_rows ) ) ) )
253 Scierror( 212,
"ERROR (qpOASES): Dimension mismatch!\n" );
257 GetRhsVar( 3,
"d", &A_rows,&A_cols,&A );
258 if ( ( A_cols != H_rows ) || ( A_rows < 1 ) )
260 Scierror( 213,
"ERROR (qpOASES): Dimension mismatch!\n" );
264 GetRhsVar( 4,
"d", &lb_rows,&lb_cols,&lb);
265 if ( !( ( ( lb_rows == H_rows ) && ( lb_cols == 1 ) ) || ( ( lb_rows == 0 ) && ( lb_cols == 0 ) ) ) )
267 Scierror( 214,
"ERROR (qpOASES): Dimension mismatch!\n" );
271 GetRhsVar( 5,
"d", &ub_rows,&ub_cols,&ub);
272 if ( !( ( ( ub_rows == H_rows ) && ( ub_cols == 1 ) ) || ( ( ub_rows == 0 ) && ( ub_cols == 0 ) ) ) )
274 Scierror( 215,
"ERROR (qpOASES): Dimension mismatch!\n" );
278 GetRhsVar( 6,
"d", &lbA_rows,&lbA_cols,&lbA);
279 if ( !( ( ( lbA_rows == A_rows ) && ( lbA_cols == 1 ) ) || ( ( lbA_rows == 0 ) && ( lbA_cols == 0 ) ) ) )
281 Scierror( 216,
"ERROR (qpOASES): Dimension mismatch!\n" );
285 GetRhsVar( 7,
"d", &ubA_rows,&ubA_cols,&ubA);
286 if ( !( ( ( ubA_rows == A_rows ) && ( ubA_cols == 1 ) ) || ( ( ubA_rows == 0 ) && ( ubA_cols == 0 ) ) ) )
288 Scierror( 217,
"ERROR (qpOASES): Dimension mismatch!\n" );
292 GetRhsVar( 8,
"i", &nWSR_rows,&nWSR_cols,&nWSR);
293 if ( ( nWSR_rows != nWSR_cols ) || ( nWSR_cols != 1 ) )
295 Scierror( 218,
"ERROR (qpOASES): Dimension mismatch!\n" );
300 y_size = H_rows + A_rows;
302 CreateVar( 9,
"d", &H_rows,&one,&x );
303 CreateVar( 10,
"d", &one,&one,&obj );
304 CreateVar( 11,
"i", &one,&one,&status );
305 CreateVar( 12,
"i", &one,&one,&nWSRout );
306 CreateVar( 13,
"d", &y_size,&one,&y );
314 sci_QProblem_init( stk(H),stk(g),stk(A), (lb_rows!=0) ? stk(lb) : 0, (ub_rows!=0) ? stk(ub) : 0, (lbA_rows!=0) ? stk(lbA) : 0, (ubA_rows!=0) ? stk(ubA) : 0,
315 &H_rows,&A_rows,istk(nWSR),
316 stk(x),stk(obj),istk(status),istk(nWSRout),stk(y)
340 int_t x, obj, status, nWSRout,
y;
343 int minlhs = 1, maxlhs = 5, minrhs = 5, maxrhs = 5, one = 1;
345 CheckRhs( minrhs,maxrhs );
346 CheckLhs( minlhs,maxlhs );
350 GetRhsVar( 1,
"d", &H_rows,&H_cols,&H );
351 if ( ( H_rows != H_cols ) || ( H_rows < 1 ) )
353 Scierror( 221,
"ERROR (qpOASES): Dimension mismatch!\n" );
357 GetRhsVar( 2,
"d", &g_rows,&g_cols,&g );
358 if ( !( ( ( g_rows == H_rows ) && ( g_cols == 1 ) ) || ( ( g_rows == 1 ) && ( g_cols == H_rows ) ) ) )
360 Scierror( 222,
"ERROR (qpOASES): Dimension mismatch!\n" );
364 GetRhsVar( 3,
"d", &lb_rows,&lb_cols,&lb);
365 if ( !( ( ( lb_rows == H_rows ) && ( lb_cols == 1 ) ) || ( ( lb_rows == 0 ) && ( lb_cols == 0 ) ) ) )
367 Scierror( 223,
"ERROR (qpOASES): Dimension mismatch!\n" );
371 GetRhsVar( 4,
"d", &ub_rows,&ub_cols,&ub);
372 if ( !( ( ( ub_rows == H_rows ) && ( ub_cols == 1 ) ) || ( ( ub_rows == 0 ) && ( ub_cols == 0 ) ) ) )
374 Scierror( 224,
"ERROR (qpOASES): Dimension mismatch!\n" );
378 GetRhsVar( 5,
"i", &nWSR_rows,&nWSR_cols,&nWSR);
379 if ( ( nWSR_rows != nWSR_cols ) || ( nWSR_cols != 1 ) )
381 Scierror( 225,
"ERROR (qpOASES): Dimension mismatch!\n" );
386 CreateVar( 9,
"d", &H_rows,&one,&x );
387 CreateVar( 10,
"d", &one,&one,&obj );
388 CreateVar( 11,
"i", &one,&one,&status );
389 CreateVar( 12,
"i", &one,&one,&nWSRout );
390 CreateVar( 13,
"d", &H_rows,&one,&y );
397 sci_QProblemB_init( stk(H),stk(g), (lb_rows!=0) ? stk(lb) : 0, (ub_rows!=0) ? stk(ub) : 0,
399 stk(x),stk(obj),istk(status),istk(nWSRout),stk(y)
426 int_t x, obj, status, nWSRout,
y;
429 int minlhs = 1, maxlhs = 5, minrhs = 8, maxrhs = 8, one = 1, y_size;
431 CheckRhs( minrhs,maxrhs );
432 CheckLhs( minlhs,maxlhs );
436 GetRhsVar( 1,
"d", &H_rows,&H_cols,&H );
437 if ( ( H_rows != H_cols ) || ( H_rows < 1 ) )
439 Scierror( 231,
"ERROR (qpOASES): Dimension mismatch!\n" );
443 GetRhsVar( 2,
"d", &g_rows,&g_cols,&g );
444 if ( !( ( ( g_rows == H_rows ) && ( g_cols == 1 ) ) || ( ( g_rows == 1 ) && ( g_cols == H_rows ) ) ) )
446 Scierror( 232,
"ERROR (qpOASES): Dimension mismatch!\n" );
450 GetRhsVar( 3,
"d", &A_rows,&A_cols,&A );
451 if ( ( A_cols != H_rows ) || ( A_rows < 1 ) )
453 Scierror( 233,
"ERROR (qpOASES): Dimension mismatch!\n" );
457 GetRhsVar( 4,
"d", &lb_rows,&lb_cols,&lb );
458 if ( !( ( ( lb_rows == H_rows ) && ( lb_cols == 1 ) ) || ( ( lb_rows == 0 ) && ( lb_cols == 0 ) ) ) )
460 Scierror( 234,
"ERROR (qpOASES): Dimension mismatch!\n" );
464 GetRhsVar( 5,
"d", &ub_rows,&ub_cols,&ub );
465 if ( !( ( ( ub_rows == H_rows ) && ( ub_cols == 1 ) ) || ( ( ub_rows == 0 ) && ( ub_cols == 0 ) ) ) )
467 Scierror( 235,
"ERROR (qpOASES): Dimension mismatch!\n" );
471 GetRhsVar( 6,
"d", &lbA_rows,&lbA_cols,&lbA );
472 if ( !( ( ( lbA_rows == A_rows ) && ( lbA_cols == 1 ) ) || ( ( lbA_rows == 0 ) && ( lbA_cols == 0 ) ) ) )
474 Scierror( 236,
"ERROR (qpOASES): Dimension mismatch!\n" );
478 GetRhsVar( 7,
"d", &ubA_rows,&ubA_cols,&ubA );
479 if ( !( ( ( ubA_rows == A_rows ) && ( ubA_cols == 1 ) ) || ( ( ubA_rows == 0 ) && ( ubA_cols == 0 ) ) ) )
481 Scierror( 237,
"ERROR (qpOASES): Dimension mismatch!\n" );
485 GetRhsVar( 8,
"i", &nWSR_rows,&nWSR_cols,&nWSR) ;
486 if ( ( nWSR_rows != nWSR_cols ) || ( nWSR_cols != 1 ) )
488 Scierror( 238,
"ERROR (qpOASES): Dimension mismatch!\n" );
493 y_size = H_rows + A_rows;
495 CreateVar( 9,
"d", &H_rows,&one,&x );
496 CreateVar( 10,
"d", &one,&one,&obj );
497 CreateVar( 11,
"i", &one,&one,&status );
498 CreateVar( 12,
"i", &one,&one,&nWSRout );
499 CreateVar( 13,
"d", &y_size,&one,&y );
507 sci_SQProblem_init( stk(H),stk(g),stk(A), (lb_rows!=0) ? stk(lb) : 0, (ub_rows!=0) ? stk(ub) : 0, (lbA_rows!=0) ? stk(lbA) : 0, (ubA_rows!=0) ? stk(ubA) : 0,
508 &H_rows,&A_rows,istk(nWSR),
509 stk(x),stk(obj),istk(status),istk(nWSRout),stk(y)
534 int_t x, obj, status, nWSRout,
y;
537 int minlhs = 1, maxlhs = 5, minrhs = 6, maxrhs = 6, one = 1, y_size;
539 CheckRhs( minrhs,maxrhs );
540 CheckLhs( minlhs,maxlhs );
545 Scierror( 311,
"ERROR (qpOASES): Need to call qpOASES_init first!\n" );
550 GetRhsVar( 1,
"d", &g_rows,&g_cols,&g );
551 if ( !( ( ( g_rows ==
qp_rowsH ) && ( g_cols == 1 ) ) || ( ( g_rows == 1 ) && ( g_cols ==
qp_rowsH ) ) ) )
553 Scierror( 312,
"ERROR (qpOASES): Dimension mismatch!\n" );
557 GetRhsVar( 2,
"d", &lb_rows,&lb_cols,&lb );
558 if ( !( ( ( lb_rows ==
qp_rowsH ) && ( lb_cols == 1 ) ) || ( ( lb_rows == 0 ) && ( lb_cols == 0 ) ) ) )
560 Scierror( 313,
"ERROR (qpOASES): Dimension mismatch!\n" );
564 GetRhsVar( 3,
"d", &ub_rows,&ub_cols,&ub );
565 if ( !( ( ( ub_rows ==
qp_rowsH ) && ( ub_cols == 1 ) ) || ( ( ub_rows == 0 ) && ( ub_cols == 0 ) ) ) )
567 Scierror( 314,
"ERROR (qpOASES): Dimension mismatch!\n" );
571 GetRhsVar( 4,
"d", &lbA_rows,&lbA_cols,&lbA );
572 if ( !( ( ( lbA_rows ==
qp_rowsA ) && ( lbA_cols == 1 ) ) || ( ( lbA_rows == 0 ) && ( lbA_cols == 0 ) ) ) )
574 Scierror( 315,
"ERROR (qpOASES): Dimension mismatch!\n" );
578 GetRhsVar( 5,
"d", &ubA_rows,&ubA_cols,&ubA );
579 if ( !( ( ( ubA_rows ==
qp_rowsA ) && ( ubA_cols == 1 ) ) || ( ( ubA_rows == 0 ) && ( ubA_cols == 0 ) ) ) )
581 Scierror( 316,
"ERROR (qpOASES): Dimension mismatch!\n" );
585 GetRhsVar( 6,
"i", &nWSR_rows,&nWSR_cols,&nWSR );
586 if ( ( nWSR_rows != nWSR_cols ) || ( nWSR_cols != 1 ) )
588 Scierror( 317,
"ERROR (qpOASES): Dimension mismatch!\n" );
595 CreateVar( 7,
"d", &
qp_rowsH,&one,&x );
596 CreateVar( 8,
"d", &one,&one,&obj );
597 CreateVar( 9,
"i", &one,&one,&status );
598 CreateVar( 10,
"i", &one,&one,&nWSRout );
599 CreateVar( 11,
"d", &y_size,&one,&y );
603 sci_QProblem_hotstart( stk(g), (lb_rows!=0) ? stk(lb) : 0, (ub_rows!=0) ? stk(ub) : 0, (lbA_rows!=0) ? stk(lbA) : 0, (ubA_rows!=0) ? stk(ubA) : 0,
605 stk(x),stk(obj),istk(status),istk(nWSRout),stk(y)
628 int_t x, obj, status, nWSRout,
y;
631 int minlhs = 1, maxlhs = 5, minrhs = 4, maxrhs = 4, one = 1;
633 CheckRhs( minrhs,maxrhs );
634 CheckLhs( minlhs,maxlhs );
639 Scierror( 321,
"ERROR (qpOASES): Need to call qpOASES_initSB first!\n" );
644 GetRhsVar( 1,
"d", &g_rows,&g_cols,&g );
645 if ( !( ( ( g_rows ==
qpb_rowsH ) && ( g_cols == 1 ) ) || ( ( g_rows == 1 ) && ( g_cols ==
qpb_rowsH ) ) ) )
647 Scierror( 322,
"ERROR (qpOASES): Dimension mismatch!\n" );
651 GetRhsVar( 2,
"d", &lb_rows,&lb_cols,&lb );
652 if ( !( ( ( lb_rows ==
qpb_rowsH ) && ( lb_cols == 1 ) ) || ( ( lb_rows == 0 ) && ( lb_cols == 0 ) ) ) )
654 Scierror( 323,
"ERROR (qpOASES): Dimension mismatch!\n" );
658 GetRhsVar( 3,
"d", &ub_rows,&ub_cols,&ub );
659 if ( !( ( ( ub_rows ==
qpb_rowsH ) && ( ub_cols == 1 ) ) || ( ( ub_rows == 0 ) && ( ub_cols == 0 ) ) ) )
661 Scierror( 324,
"ERROR (qpOASES): Dimension mismatch!\n" );
665 GetRhsVar( 4,
"i", &nWSR_rows,&nWSR_cols,&nWSR );
666 if ( ( nWSR_rows != nWSR_cols ) || ( nWSR_cols != 1 ) )
668 Scierror( 325,
"ERROR (qpOASES): Dimension mismatch!\n" );
674 CreateVar( 6,
"d", &one,&one,&obj );
675 CreateVar( 7,
"i", &one,&one,&status );
676 CreateVar( 8,
"i", &one,&one,&nWSRout );
683 stk(x),stk(obj),istk(status),istk(nWSRout),stk(y)
710 int_t obj, x,
y, status, nWSRout;
713 int minlhs = 1, maxlhs = 5, minrhs = 8, maxrhs = 8, one = 1, y_size;
715 CheckRhs( minrhs,maxrhs );
716 CheckLhs( minlhs,maxlhs );
721 Scierror( 331,
"ERROR (qpOASES): Need to call qpOASES_initVM first!\n" );
726 GetRhsVar( 1,
"d", &H_rows,&H_cols,&H );
727 if ( ( H_rows != H_cols ) || ( H_rows < 1 ) )
729 Scierror( 332,
"ERROR (qpOASES): Dimension mismatch!\n" );
733 GetRhsVar( 2,
"d", &g_rows,&g_cols,&g );
734 if ( !( ( ( g_rows == H_rows ) && ( g_cols == 1 ) ) || ( ( g_rows == 1 ) && ( g_cols == H_rows ) ) ) )
736 Scierror( 333,
"ERROR (qpOASES): Dimension mismatch!\n" );
740 GetRhsVar( 3,
"d", &A_rows,&A_cols,&A );
741 if ( ( A_cols != H_rows ) || ( A_rows < 1 ) )
743 Scierror( 334,
"ERROR (qpOASES): Dimension mismatch!\n" );
747 GetRhsVar( 4,
"d", &lb_rows,&lb_cols,&lb);
748 if ( !( ( ( lb_rows == H_rows ) && ( lb_cols == 1 ) ) || ( ( lb_rows == 0 ) && ( lb_cols == 0 ) ) ) )
750 Scierror( 335,
"ERROR (qpOASES): Dimension mismatch!\n" );
754 GetRhsVar( 5,
"d", &ub_rows,&ub_cols,&ub);
755 if ( !( ( ( ub_rows == H_rows ) && ( ub_cols == 1 ) ) || ( ( ub_rows == 0 ) && ( ub_cols == 0 ) ) ) )
757 Scierror( 399,
"ERROR (qpOASES): Dimension mismatch!\n" );
761 GetRhsVar( 6,
"d", &lbA_rows,&lbA_cols,&lbA);
762 if ( !( ( ( lbA_rows == A_rows ) && ( lbA_cols == 1 ) ) || ( ( lbA_rows == 0 ) && ( lbA_cols == 0 ) ) ) )
764 Scierror( 336,
"ERROR (qpOASES): Dimension mismatch!\n" );
768 GetRhsVar( 7,
"d", &ubA_rows,&ubA_cols,&ubA);
769 if ( !( ( ( ubA_rows == A_rows ) && ( ubA_cols == 1 ) ) || ( ( ubA_rows == 0 ) && ( ubA_cols == 0 ) ) ) )
771 Scierror( 337,
"ERROR (qpOASES): Dimension mismatch!\n" );
775 GetRhsVar( 8,
"i", &nWSR_rows,&nWSR_cols,&nWSR);
776 if ( ( nWSR_rows != nWSR_cols ) || ( nWSR_cols != 1 ) )
778 Scierror( 338,
"ERROR (qpOASES): Dimension mismatch!\n" );
785 Scierror( 339,
"ERROR (qpOASES): Dimension mismatch!\n" );
790 y_size = H_rows + A_rows;
792 CreateVar( 9,
"d", &H_rows,&one,&x );
793 CreateVar( 10,
"d", &one,&one,&obj );
794 CreateVar( 11,
"i", &one,&one,&status );
795 CreateVar( 12,
"i", &one,&one,&nWSRout );
796 CreateVar( 13,
"d", &y_size,&one,&y );
800 sci_SQProblem_hotstart( stk(H),stk(g),stk(A), (lb_rows!=0) ? stk(lb) : 0, (ub_rows!=0) ? stk(ub) : 0, (lbA_rows!=0) ? stk(lbA) : 0, (ubA_rows!=0) ? stk(ubA) : 0,
802 stk(x),stk(obj),istk(status),istk(nWSRout),stk(y)
820 const int minlhs = 0, maxlhs = 1, minrhs = 0, maxrhs = 0;
822 CheckRhs( minrhs,maxrhs );
823 CheckLhs( minlhs,maxlhs );
838 const int minlhs = 0, maxlhs = 1, minrhs = 0, maxrhs = 0;
840 CheckRhs( minrhs,maxrhs );
841 CheckLhs( minlhs,maxlhs );
855 const int minlhs = 0, maxlhs = 1, minrhs = 0, maxrhs = 0;
857 CheckRhs( minrhs,maxrhs );
858 CheckLhs( minlhs,maxlhs );
878 char*
name[] = {
"qpOASES",
879 "qpOASES_init",
"qpOASES_initSB",
"qpOASES_initVM",
880 "qpOASES_hotstart",
"qpOASES_hotstartSB",
"qpOASES_hotstartVM",
881 "qpOASES_cleanup",
"qpOASES_cleanupSB",
"qpOASES_cleanupVM" int interface_QProblemB_init(char *fname)
int C2F() qpOASESgateway()
int interface_QProblemB_hotstart(char *fname)
void sci_QProblem_hotstart(real_t *g, real_t *lb, real_t *ub, real_t *lbA, real_t *ubA, int_t *nWSR, real_t *x, real_t *obj, int_t *status, int_t *nWSRout, real_t *y)
void sci_QProblemB_hotstart(real_t *g, real_t *lb, real_t *ub, int_t *nWSR, real_t *x, real_t *obj, int_t *status, int_t *nWSRout, real_t *y)
void sci_QProblem_init(real_t *H, real_t *g, real_t *A, real_t *lb, real_t *ub, real_t *lbA, real_t *ubA, int_t *nV, int_t *nC, int_t *nWSR, real_t *x, real_t *obj, int_t *status, int_t *nWSRout, real_t *y)
void sci_SQProblem_cleanup()
int interface_QProblem_hotstart(char *fname)
int sci_gateway(char *name, gate_function f)
int interface_SQProblem_hotstart(char *fname)
int interface_QProblemB_cleanup(char *fname)
void sci_QProblemB_init(real_t *H, real_t *g, real_t *lb, real_t *ub, int_t *nV, int_t *nWSR, real_t *x, real_t *obj, int_t *status, int_t *nWSRout, real_t *y)
void sci_QProblem_cleanup()
int interface_qpOASES(char *fname)
int interface_QProblem_cleanup(char *fname)
int interface_SQProblem_init(char *fname)
void sci_QProblemB_cleanup()
void sci_SQProblem_init(real_t *H, real_t *g, real_t *A, real_t *lb, real_t *ub, real_t *lbA, real_t *ubA, int_t *nV, int_t *nC, int_t *nWSR, real_t *x, real_t *obj, int_t *status, int_t *nWSRout, real_t *y)
int(* gate_function)(char *)
int interface_QProblem_init(char *fname)
void sci_SQProblem_hotstart(real_t *H, real_t *g, real_t *A, real_t *lb, real_t *ub, real_t *lbA, real_t *ubA, int_t *nWSR, real_t *x, real_t *obj, int_t *status, int_t *nWSRout, real_t *y)
void sci_qpOASES(real_t *H, real_t *g, real_t *A, real_t *lb, real_t *ub, real_t *lbA, real_t *ubA, int_t *nV, int_t *nC, int_t *nWSR, real_t *x, real_t *obj, int_t *status, int_t *nWSRout, real_t *y)
int interface_SQProblem_cleanup(char *fname)