Good morning.
Of course I have question about commend in Yalmip. I have two versions YAlmip for Matlab 2012b and Matlab 2016b. I will have change file in version 2012b who will be working for Matlab 2016b and in this version my file don't work. And I know (I read in this forum) command "set" is obselve and I change this for "nothing", the same I change "solversdp" for "optimize". And of course I change solver SeDuMi 1.3 for Mosek (very nice solver). But I have conflikt and please help me beacuse I have'nt know what is wrong in my commend list, please check (I write comment line (%) which work in Matlab 2012b, with SeDuMi 1.3 for yalmip)
Ag1 =[ -0.0000 0 0 -0.2500 0 0
0 -0.0000 0 0 -0.2500 0
0 0 -0.0000 0 0 -0.2500
0.0013 0 0 -0.0060 0 0
0 0.0005 0.0000 0 -0.0140 -0.0002
0.0000 0.0000 0.0018 -0.0030 -0.0010 -0.0118]
Bg12 =[ 0 0 0
0 0 0
0 0 0
0.0061 0 0
0 0.0021 0.0000
0.0000 0.0000 0.0080];
yalmip('clear');
X=sdpvar(6,6,'symmetric');
Y=sdpvar(3,6);
W1=Ag1*X+Bg12*Y;
%F=set ('X > 0');
F=('X > 0');
%F=F+('kron(PP,X)+kron(QP,W1)+kron(QP'',W1'') <= 0');
F=('kron(PP,X)+kron(QP,W1)+kron(QP'',W1'') <= 0');
gam=1.65; %2.1
W21a=Cinf*X+Dinfu*Y;
%F=F+set('[W1+W1'' Bw W21a''; Bw'' -gam^2*eye(3) Dinfw''; W21a Dinfw -1*eye(3)] <= 0');
F=('[W1+W1'' Bw W21a''; Bw'' -gam^2*eye(3) Dinfw''; W21a Dinfw -1*eye(3)] <= 0');
Q=sdpvar(n,n,'symmetric');
W33a=C2*X+D2u*Y;
W33b=Ag1*X+Bg12*Y;
F=('[W33b+W33b''+Bw*Bw''] < 0');
F=F+set('[W33b+W33b''+Bw*Bw''] < 0');
%F=F+set('sqrt(trace(Q)) => gam^2');
F=('sqrt(trace(Q)) => gam^2');
ops=sdpsettings('solver','mosek','verbose',0);
%sol=solversdp(F,gam+trace(Q),ops);
(298) sol=optimize(F,gam+trace(Q),ops);
Then I have that answer:
Error using solvesdp (line 78) ------ this error is very strange beacuse i don't use this command in my file, this error is link with file solversdp.m
First argument (F) should be a constraint object.
Error in optimize (line 31)
[varargout{1:nargout}] = solvesdp(varargin{:});
Error in Control_KK_for_Mosek_Matlab2016b (line 298) ---- this error deal with my file Control_KK_for_Mosek_Matlab2016b
sol=optimize(F,gam+trace(Q),ops);
This is very important to my file...please check and answer to me ...I will hope this is very simple :)
Best regards: Monika Rybczak