function [table_h2,table_hinf] = run_MOPB07_example_2()
%function [table_h2,table_hinf] = run_MOPB07_example_2()
% execute Example 2 presented in the paper for g=1:4 and d=0:3 using Theorem 4 with (40)-(42),
% Theorem 4 with (43)-(45) and Theorem 3.

load data_MOPB07_example_2;

for g=1:4
    for d=0:3
        t = clock;
        Info = synth_h2_P_MOPB07_IET_T4_yal(Ai,B1i,B2i,Ci,D1i,D2i,g,d);
        t = etime(clock,t);
        table_h2{1}(g,d+1) = Info.h2;        
        fprintf('(%d,%d) -> %.4f -> %.2f sec\n',g,d,Info.h2,t);
    end
end
table_h2{1} = [[1;2;3;4] table_h2{1}];

for g=1:4
    for d=0:3
        t = clock;
        Info = synth_h2_D_MOPB07_IET_T4_yal(Ai,B1i,B2i,Ci,D1i,D2i,g,d);
        t = etime(clock,t);
        table_h2{2}(g,d+1) = Info.h2;        
        fprintf('(%d,%d) -> %.4f -> %.2f sec\n',g,d,Info.h2,t);
    end
end
table_h2{2} = [[1;2;3;4] table_h2{2}];


for g=1:4
    for d=0:3
        t = clock;
        Info = synth_hinf_MOPB07_IET_T3_yal(Ai,B1i,B2i,Ci,D1i,D2i,g,d);
        t = etime(clock,t);
        table_hinf(g,d+1) = Info.hinf;
        fprintf('(%d,%d) -> %.4f -> %.2f sec\n',g,d,Info.hinf,t);
    end
end
table_hinf = [[1;2;3;4] table_hinf];
