x = sdpvar(2,1);
Objective = -x(1)*x(2);
Constraints = [x(1) + x(2) == 2];
[KKTsystem, details] = kkt(Constraints,Objective,x);
Starting derivation of dual bounds (can be turned off using option kkt.dualbounds)Error using : For colon operator with char operands, first and last operands must be char.
Error in lmi/kkt (line 195)KKTConstraints = [KKTConstraints, (s == 0):'Stationarity'];
Error in constraint/kkt (line 9) [KKTConstraints, details] = kkt(lmi(F),h,parametricVariables);
Error in b1 (line 4)[KKTsystem, details] = kkt(Constraints,Objective,x);