编程实现
clc
clear all
A=[-1 -2 1;3 2 1;1 -2 -1];
B=[1;0;1];
setlmis([])
X=lmivar(1,[3 1])
W=lmivar(2,[1 3])
lmiterm([1 1 1 X],A,1,’s’)
lmiterm([1 1 1 W],B,1,’s’)
lmiterm([-2 1 1 X],1,1)
lmisys=getlmis
[tmin,xfeas]=feasp(lmisys)
XX=dec2mat(lmisys,xfeas,X)
WW=dec2mat(lmisys,xfeas,W)
K=WW*inv(XX)
2021-10-26 13:41:27
1.56MB
ppt
1