Hi Johan,
Thank you for your help. The optimization works fine now. In fact I had installed the Optitoolbox to solve a quadratic problem, and now by deleting it the optimization works.
I had also some warnings when I launch Matlab, "warning name is nonexistent or not a directory matlab start". I deleted the path from "pathdef.m".
However I have a problem when I execute my quadratic problem. It tells me :
Error using solvesdp_multiple (line 8)
Parts of your matrix objective is not linear (multiple solutions can currently only be obtained for linear
objectives)
My objective is given by:
objective=objective+1/2*(C*(x{k}-xref(:,k)))'*Q*(C*(x{k}-xref(:,k)))+1/2*((u{k}-uref(:,k))'*R*(u{k}-uref(:,k)));
Which solver should I specify for this type of problem?