-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathactual_build_lmi11_jianbo.m
48 lines (32 loc) · 1.14 KB
/
actual_build_lmi11_jianbo.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% This is script is my attempt to build LMIs 11, 15 and 16 in a way that I
% can understand what is going on.
% Eduardo Mendes - 07/26/17
% DELT - UFMG
% Use pre_build_m11_multi to build the string version of the LMI
%% Build LMI 11
biglmi11=[];
for i=1:M
for n=1:N
for l=1:L
for t=1:T
% Evaluation of matrix auxm11 which is symbolic
for j1=1:size(auxm11,1) % (M+3)
for j2=1:size(auxm11,2) % (M+3)
m11{j1,j2}=eval(auxm11{j1,j2});
end
end
% Transform cell matrix m to a LMI
auxlmi=[];
for j1=1:size(auxm11,1) % (M+3)
s='[';
for j2=1:size(auxm11,2) % (M+3)
s=sprintf('%s m11{%d,%d}',s,j1,j2);
end
s=sprintf('%s];',s);
auxlmi=[auxlmi;eval(s)];
end
biglmi11=[biglmi11;auxlmi>=0];
end
end
end
end