Hi everyone,
is it possible to use binary variable in constraints while using KKTQP solver? I have some problems using it.
Here is a bit of my code:
UC = binvar(1,horizont);
Q = sdpvar(1,horizont);
Constr = [Constr, UC*Qmin <= Q <=UC*Qmax];
This gives me Solver not applicable
But when I changed the constraint to this, it works fine.
Constr = [Constr, Qmin <= Q <=Qmax];
How can I put a binary variable into constraint?
Thanks, M.