MPC=opti.to_function('MPC',{xk,xs},{uf,xf},{'xk','xs'},{'uf_opt','xf_opt'});
where
xf = opti.variable(nx,N+1);
uf = opti.variable(nu,N);
when I call the function using full(MPC(xk,xs)), it just only return the first defined output (uf).
Any idea on what should I do to access also the other output xf?
Thanks
Antonio
ufsol, xfsol = MPC(..)
full(ufsol)
Best,
Joris