Could you help me solve this problem:
Thank you so much.
I use a very simple example from a paper to see the effects of short and long horizons respectively (fixed horizon).
If I use the following solver, and set N=2, everything goes well.
solvesdp(constraints,objective,sdpsettings('verbose',1,'solver','quadprog'));
If I set N=10, get display:
Maximum number of iterations exceeded; increase options.MaxIter.
To continue solving the problem with the current solution as the
starting point, set x0 = x before calling quadprog.
and then I use
solvesdp(constraints,objective,sdpsettings('verbose',1,'solver','quadprog','quadprog.maxiter',5000));
Still get display:
Maximum number of iterations exceeded; increase options.MaxIter.
To continue solving the problem with the current solution as the
starting point, set x0 = x before calling quadprog.
on the other hand, when I use
solvesdp(constraints,objective,sdpsettings('verbose',1,'solver','qpoases'));
no error is shown, but all the states and control are NaN.
Do you have any suggestion?
Thank you again.