I'm running this example from
the post on optimizer():
clear
sdpvar x a b
Constraints = [-a <= x <= a];
Objective = (x-b)^2;
Saturation = optimizer([-a <= x <= a], Objective,[],[a;b],x);
xoptimal = Saturation{[1;3]};
check(Constraints)
The last line tries to calculate the residues of constraints, but it returns NaN. What is the best/easiest way to check feasibility using the solution found by optimizer()?
Thanks!