prob = struct('f', J, 'x', vertcat(w{:}), 'g', vertcat(g{:}), 'p', [Uk_1_0; Par_norm_mx;Z0_mx]);
solver = nlpsol('solver', 'ipopt', prob);
where prob is a struct with fields:
f: [3x3 casadi.MX]
x: [654×3 casadi.MX]
g: [666×3 casadi.MX]
p: [10×3 casadi.MX]
Can you please advise me on this? is it possible to solve three systems at the same time or is it better to create a different variable for each of them?
Thank you!
Paulina.
PS. I've tried the exact same problem but for a single system (instead of 3) and it did work well.