Here is a minimal working example:
F = sdpvar(1,1);
Constraints = [];
Constraints = [Constraints; 2 <= F <= 5];
Constraints = [Constraints; F == 3];
solver_options = sdpsettings('solver', 'gurobi', 'verbose', 2);
sol = optimize(Constraints, [], solver_options);
value(F)
Despite the warning, the result I got was correct: F = 3.
My question is: in the case of scalar decision variables such as F, can this warning safely be ignored in practice? That is, does YALMIP automatically treat 2 <= F <= 5 as (2 <= F) & (F <= 5) in such cases? Or is it recommended that we always write the constraints explicitly as:
Constraints = [Constraints; 2 <= F; F <= 5];
Thank you very much for your time and for your continued work on YALMIP!