The optimizer object seems to fail (with a reshape error) if one of its output variables (u's) is not used in the optimization.
sdpvar x y a
op = optimizer(a*x>=0, x, sdpsettings('solver','+sedumi'), a, {x y});
res = op{1}
(in my real problem, the objective and constraints may change and therefore not contain some of the variables)
Is there a way to circumvent this?
(and just have op{1} return NaN for the not-optimized variables)
Shahar.