S0 = sdpvar(2,2);
Abar = randn(12,12);Abar = Abar - 20*eye(12);Bbar = randn(12,2);Cbar = randn(6,12);X = randn(12,12);X = X*X';%select solveroptions = sdpsettings('bisection.solver','mosek');
%solve LMI by minimiying alphadiagnostics = bisection(constr,alpha,options)Selected solver: MOSEK-SDPIteration Lower bound Test Upper bound Gap Status at test 1 : -1.00000E+00 -5.00000E-01 -0.00000E+00 1.00000E+00 Successfully solved 2 : -1.00000E+00 -7.50000E-01 -5.00000E-01 5.00000E-01 Infeasible problem 3 : -7.50000E-01 -6.25000E-01 -5.00000E-01 2.50000E-01 Successfully solved 4 : -7.50000E-01 -6.87500E-01 -6.25000E-01 1.25000E-01 Successfully solved 5 : -7.50000E-01 -7.18750E-01 -6.87500E-01 6.25000E-02 Successfully solved 6 : -7.50000E-01 -7.34375E-01 -7.18750E-01 3.12500E-02 Infeasible problem 7 : -7.34375E-01 -7.26563E-01 -7.18750E-01 1.56250E-02 Infeasible problem 8 : -7.26563E-01 -7.22656E-01 -7.18750E-01 7.81250E-03 Infeasible problem 9 : -7.22656E-01 -7.20703E-01 -7.18750E-01 3.90625E-03 Successfully solved 10 : -7.22656E-01 -7.21680E-01 -7.20703E-01 1.95313E-03 Successfully solved 11 : -7.22656E-01 -7.22168E-01 -7.21680E-01 9.76563E-04 Successfully solved 12 : -7.22656E-01 -7.22412E-01 -7.22168E-01 4.88281E-04 Successfully solved 13 : -7.22656E-01 -7.22534E-01 -7.22412E-01 2.44141E-04 Successfully solved 14 : -7.22656E-01 -7.22595E-01 -7.22534E-01 1.22070E-04 Successfully solved 15 : -7.22656E-01 -7.22626E-01 -7.22595E-01 6.10352E-05 Successfully solved 16 : -7.22656E-01 -7.22641E-01 -7.22626E-01 3.05176E-05 Successfully solved 17 : -7.22656E-01 -7.22649E-01 -7.22641E-01 1.52588E-05 Unknown error (looks like failure)
diagnostics =
struct with fields:
yalmiptime: 9.9626 solvertime: 0.72323 info: 'Successfully solved (bisection)' problem: 0>> M11=(Abar'*P)+(P*Abar)-(X*Bbar*Bbar'*P)-(P*Bbar*Bbar'*X)+(X*Bbar*Bbar'*X)-(alpha*P)Linear matrix variable 12x12 (full, real, 78 variables)
>> norm(getbase(M11-M11'),inf)
ans =
1.9323e-11
>> Abar
Abar =
Columns 1 through 8
-38.2537 -3.7183 -0.1042 -14.6877 13.4813 6.6874 -24.6399 -4.9530 -4.3918 -0.3332 -0.3937 -1.5858 1.4555 0.7220 -2.6602 -0.5347 -0.4291 0.6005 -0.7943 0.1055 -0.0472 -0.0234 0.0863 0.0173 -16.8199 -1.5684 0.0411 -6.5971 5.8820 2.9650 -10.9248 -2.1960 15.4232 1.4366 -0.0694 6.3089 -5.4809 -2.5005 9.9205 1.9942 7.7247 0.5247 -0.1151 2.8002 -2.7634 -1.4584 4.9525 1.0197 -28.1736 -2.7883 -0.0406 -10.7512 10.0478 5.0831 -18.4221 -3.6961 -5.4796 -1.2128 -0.5901 -2.2995 2.0030 1.1185 -3.7454 -0.7739 -2.4608 -0.3130 -0.0737 -0.9959 0.6346 0.3429 -1.7892 -0.2642 2.3839 0.3334 0.0628 0.7330 -1.6946 -0.1455 1.2806 0.3114 0.9628 1.2260 -0.4648 -0.3605 0.4991 0.1266 -0.8700 -0.3957 -0.0053 -0.0086 0.0021 0.0158 -0.0168 -0.0366 0.0011 -0.1196
Columns 9 through 12
-2.1707 2.0911 0 0 -0.2344 0.2258 0 0 0.0076 -0.0073 0 0 -0.9625 0.9272 0 0 0.8740 -0.8419 0 0 0.4469 -0.4305 0 0 -1.6167 1.5574 0 0 -0.3348 0.3225 0 0 -0.1494 0.1439 0 0 0.1496 -0.1441 0 0 -0.0692 0.0743 0 0 -0.0311 -0.0660 0 0
>> Bbar
Bbar =
1.5342 0.0000 0.0410 0.0080 0.1932 -0.0062 0.5642 -0.1193 -0.5313 -0.0051 -0.2681 -0.0468 0.9720 0.0546 0.1958 -0.0009 0.0858 -0.0000 -0.0827 0.0000 0 0 0 0
>> Q0
Q0 =
Columns 1 through 8
12.6690 0.6662 0.5334 0.3713 0.1807 0.4057 0.3368 0.4977 0.6662 12.6174 0.7185 0.9012 0.3383 0.5841 0.2510 0.3691 0.5334 0.7185 12.9870 0.5478 0.5692 0.0938 0.2556 0.5341 0.3713 0.9012 0.5478 12.4406 0.6743 0.5427 0.3363 0.6079 0.1807 0.3383 0.5692 0.6743 12.1126 0.3506 0.1507 0.4626 0.4057 0.5841 0.0938 0.5427 0.3506 12.2976 0.3070 0.1920 0.3368 0.2510 0.2556 0.3363 0.1507 0.3070 12.1425 0.1682 0.4977 0.3691 0.5341 0.6079 0.4626 0.1920 0.1682 12.4363 0.5090 0.4528 0.3851 0.6063 0.7697 0.5701 0.3636 0.1960 0.5044 0.4809 0.2005 0.5813 0.6569 0.8078 0.3651 0.1793 0.2760 0.3605 0.4204 0.5083 0.2889 0.2828 0.5014 0.7516 0.3392 0.4604 0.7367 0.6514 0.5896 0.7567 0.5384 0.3955
Columns 9 through 12
0.5090 0.5044 0.2760 0.3392 0.4528 0.4809 0.3605 0.4604 0.3851 0.2005 0.4204 0.7367 0.6063 0.5813 0.5083 0.6514 0.7697 0.6569 0.2889 0.5896 0.5701 0.8078 0.2828 0.7567 0.3636 0.3651 0.5014 0.5384 0.1960 0.1793 0.7516 0.3955 12.7724 0.5405 0.2098 0.5399 0.5405 12.4424 0.7285 0.0172 0.2098 0.7285 12.2748 0.2790 0.5399 0.0172 0.2790 12.6996
>> X
X =
1.0e+03 *
Columns 1 through 8
1.8331 2.0056 -1.1186 -0.8082 0.7925 0.3984 -1.6291 -0.4804 2.0056 2.3295 -1.2232 -0.8820 0.8757 0.4439 -1.7828 -0.5883 -1.1186 -1.2232 0.6927 0.4907 -0.4804 -0.2180 1.0077 0.2814 -0.8082 -0.8820 0.4907 0.4453 -0.2567 -0.2601 0.6861 0.2191 0.7925 0.8757 -0.4804 -0.2567 0.5348 0.2534 -0.6241 -0.2549 0.3984 0.4439 -0.2180 -0.2601 0.2534 0.7464 -0.0202 -0.2709 -1.6291 -1.7828 1.0077 0.6861 -0.6241 -0.0202 1.6341 0.3353 -0.4804 -0.5883 0.2814 0.2191 -0.2549 -0.2709 0.3353 0.2218 -0.0645 -0.0881 0.0276 0.0485 -0.0899 -0.2797 -0.0916 0.0906 0.2203 0.2433 -0.1324 -0.1382 0.0323 0.1010 -0.1852 -0.0581 0.4043 0.4601 -0.2453 -0.1754 0.1782 0.0850 -0.3609 -0.1131 -0.3680 -0.3679 0.2287 0.1849 -0.1291 -0.1108 0.3201 0.0672
Columns 9 through 12
-0.0645 0.2203 0.4043 -0.3680 -0.0881 0.2433 0.4601 -0.3679 0.0276 -0.1324 -0.2453 0.2287 0.0485 -0.1382 -0.1754 0.1849 -0.0899 0.0323 0.1782 -0.1291 -0.2797 0.1010 0.0850 -0.1108 -0.0916 -0.1852 -0.3609 0.3201 0.0906 -0.0581 -0.1131 0.0672 0.1956 -0.0298 -0.0164 0.0134 -0.0298 0.0794 0.0482 -0.0687 -0.0164 0.0482 0.1175 -0.0689 0.0134 -0.0687 -0.0689 0.2040
>> L
L =
-71.5638 + 0.0000i -1.0140 + 0.0000i -0.6673 + 0.6439i -0.6673 - 0.6439i -0.6026 + 0.0000i -0.3649 + 0.4846i -0.3649 - 0.4846i -0.1978 + 0.0911i -0.1978 - 0.0911i -0.0670 + 0.0000i -0.0464 + 0.0386i -0.0464 - 0.0386i
>> GG
GG =
Columns 1 through 8
-6.5999 -21.4709 5.8616 1.4045 -4.9059 0.8134 7.7027 6.7827 8.0414 9.2224 -5.1139 -12.4175 -7.9019 -1.2024 -9.1835 -0.4611
Columns 9 through 12
0.7364 -0.3122 -3.1147 -1.7022 1.8124 4.2860 1.6043 -3.1309
constr = [(M<=0),(0<=P),(0<=(eye(size(C*B*f3bar))+(C*B*f3bar)'+(C*B*f3bar)))]; options=sdpsettings('solver','mosek'); optimize(constr,trace(P),options)