Dear fellows,
I'm using solver SDPT3 in Matlab to solve the LMI with code:
A=[ -2.548 9.1 0;1 -1 0;0 -14.2 0];
B = [1 0 0;0 1 0;0 0 1];
P=1000000*eye(3);
F=sdpvar(3,3);
GH = (A' + F'*B')*P + P*(A + B*F);
const =(GH<0);
diagnostics= solvesdp(const);
F = double(F)
But the result is:
******SDPT3: Infeasible path-following algorithms******
Please help me to solve this problem.
num. of constraints = 6
dim. of sdp var = 3, num. of sdp blk = 1
*******************************************************************
SDPT3: Infeasible path-following algorithms
*******************************************************************
version predcorr gam expon scale_data
HKM 1 0.000 1 0
it pstep dstep pinfeas dinfeas gap prim-obj dual-obj cputime
-------------------------------------------------------------------
0|0.000|0.000|3.5e+07|1.9e+00|7.6e+08| 7.096000e+07 0.000000e+00| 0:0:00| chol 1 1
1|0.989|1.000|3.8e+05|6.9e-09|8.3e+06| 7.734574e+05 0.000000e+00| 0:0:00| chol 1 1
2|0.989|1.000|4.1e+03|6.9e-10|9.1e+04| 8.498974e+03 0.000000e+00| 0:0:00| chol 1 1
3|0.989|1.000|4.6e+01|6.9e-11|1.0e+03| 9.339527e+01 0.000000e+00| 0:0:00| chol 1 1
4|0.989|1.000|5.0e-01|6.9e-12|1.1e+01| 1.026322e+00 0.000000e+00| 0:0:00| chol 1 1
5|0.989|1.000|5.5e-03|6.9e-13|1.2e-01| 1.127826e-02 0.000000e+00| 0:0:00| chol 1 1
6|0.989|1.000|6.1e-05|6.9e-08|1.3e-03| 1.239369e-04 0.000000e+00| 0:0:00| chol 1 1
7|0.989|1.000|6.6e-07|6.9e-08|1.5e-05| 1.361944e-06 0.000000e+00| 0:0:00| chol 1 1
8|0.989|1.000|7.3e-09|6.9e-08|1.6e-07| 1.496642e-08 0.000000e+00| 0:0:00| chol 1 1
9|0.989|1.000|8.0e-11|1.5e-09|1.8e-09| 1.644662e-10 0.000000e+00| 0:0:00|
stop: max(relative gap, infeasibilities) < 1.00e-07
-------------------------------------------------------------------
number of iterations = 9
primal objective value = 1.64466157e-10
dual objective value = 0.00000000e+00
gap := trace(XZ) = 1.77e-09
relative gap = 1.77e-09
actual relative gap = 1.64e-10
rel. primal infeas = 8.03e-11
rel. dual infeas = 1.46e-09
norm(X), norm(y), norm(Z) = 4.0e-17, 2.2e+01, 4.4e+07
norm(A), norm(b), norm(C) = 6.0e+06, 1.0e+00, 2.5e+07
Total CPU time (secs) = 0.21
CPU time per iteration = 0.02
termination code = 0
DIMACS errors: 8.0e-11 0.0e+00 2.6e-09 0.0e+00 1.6e-10 1.8e-09
-------------------------------------------------------------------
diagnostics =
struct with fields:
yalmipversion: '20200116'
matlabversion: '9.4.0.813654 (R2018a)'
yalmiptime: 0.2420
solvertime: 0.3210
info: 'Successfully solved (SDPT3-4)'
problem: 0