72 casadi_int* sz_iw, casadi_int* sz_w,
int elastic_mode,
int so_corr) {
74 casadi_int nnz_h, nnz_a, nx, ng;
116 if (so_corr) *sz_w += nx+nx+ng;
120 template<
typename T1>
122 const T1*** arg, T1*** res, casadi_int** iw, T1** w,
123 int elastic_mode,
int so_corr) {
125 casadi_int nnz_h, nnz_a, nx, ng;
133 d->
z_cand = *w; *w += nx + ng;
136 d->
gLag = *w; *w += nx;
139 d->
Bk = *w; *w += nnz_h;
151 d->
gf = *w; *w += nx + 2*ng;
153 d->
lbdz = *w; *w += nx + 3*ng;
154 d->
ubdz = *w; *w += nx + 3*ng;
156 d->
dx = *w; *w += nx + 2*ng;
157 d->
dlam = *w; *w += nx + 3*ng;
159 d->
Jk = *w; *w += nnz_a + 2*ng;
164 d->
gf = *w; *w += nx;
166 d->
lbdz = *w; *w += nx + ng;
167 d->
ubdz = *w; *w += nx + ng;
169 d->
dx = *w; *w += nx;
170 d->
dlam = *w; *w += nx + ng;
172 d->
Jk = *w; *w += nnz_a;
const casadi_sqpmethod_prob< T1 > * prob
const casadi_nlpsol_prob< T1 > * nlp