First of all, I would like to admit that I am very new to this 'YALMIP' community. Actually, I was going through one's MATLAB code. While understanding his code, I came to know about this platform.
In that MATLAB code, I noticed that he used 'set' function, but when I am trying to run that code by using newest 'YALMIP' package, it is giving me the following error-
"Error using constraint/set (line 6)
Obsolete command."
I tried to fixed it by omitting it from the code, but it is still not working. Few snaps how the code looks like-
1. c = set(A(:)>=0) + set(B(:)>=0);
2. c = c + set (C(:)==0);
3. c = c + set([eye(2), X; X', [Y(ii), Y(ij); Y(ij), Y(jj)]]>=0);
4. c = c + set(S==0, 'Equality');
My try was-
1. c = (A(:)>=0) + (B(:)>=0);
2. c = c + (C(:)==0);
3. c = c + ([eye(2), X; X', [Y(ii), Y(ij); Y(ij), Y(jj)]]>=0);
4. c = c + (S==0);
Please help me to fix the problem. Thanks in advance.