solution=solvesdp([F,X1==0,X2==0,Y1==0,Y2==0,U1==0,U2==0,W1==0,U2==0],d,ops)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| ID| Constraint| Type| Primal residual|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| #1| Numeric value| Matrix inequality| -1.8472e-15|
| #2| Numeric value| Matrix inequality| -2.5204e-15|
| #3| Numeric value| Matrix inequality| 5.0144e-15|
| #4| Numeric value| Matrix inequality| 5.0599e-15|
| #5| Numeric value| Matrix inequality| -1.1589e-15|
| #6| Numeric value| Matrix inequality| -1.8401e-15|
| #7| Numeric value| Matrix inequality| 9.4342e-17|
| #8| Numeric value| Matrix inequality| 1.2199e-16|
| #9| Numeric value| Elementwise inequality| -9.6474e-17|
| #10| Numeric value| Elementwise inequality| -3.6091e-17|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
obj = norm([-4.9311 2.19;9.0843 6.5243]*U1-V1)+norm([1.4530 1.2455;-0.5835 0.3357]*U2-V2)
solution=solvesdp([F],obj,sdpsettings('solver','sedumi'))
>> double(V1)*inv(double(U1))
ans =
-4.9316 2.1915 9.0840 6.5271
>> double(V2)*inv(double(U2))
ans =
1.4530 1.2455 -0.5835 0.3357
>> double(W1)*inv(double(Y1))
ans =
1.0e+08 *
-1.8626 4.0610 0.7629 2.2752
>> double(W2)*inv(double(Y2))
ans =
1.0e+09 *
0.7100 1.0352 -0.2578 0.5424
>> checkset(F)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++| ID| Constraint| Type| Primal residual|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| #1| Numeric value| Matrix inequality| -4.1274e-10|| #2| Numeric value| Matrix inequality| -1.0626e-09|| #3| Numeric value| Equality constraint| -5.3538e-14|| #4| Numeric value| Equality constraint| -4.8815e-15|| #5| Numeric value| Matrix inequality| 0.36725|| #6| Numeric value| Matrix inequality| 0.83513|| #7| Numeric value| Matrix inequality| 7.0844e-10|| #8| Numeric value| Matrix inequality| 5.0414e-10|| #9| Numeric value| Elementwise inequality| 0.0028111|| #10| Numeric value| Elementwise inequality| 0.035669|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>> double(Y1)
ans =
1.0e-08 *
0.1099 -0.0038 -0.0038 0.0712
obj = norm([-4.9311 2.19;9.0843 6.5243]*U1-V1)+norm([1.4530 1.2455;-0.5835 0.3357]*U2-V2)
obj = obj + norm([-0.1797 0.2152;0.0641 0.1020]*Y1-W1)+norm([0.1030 0.0048;-0.1531 0.1479]*Y2-W2)
solvesdp(F,obj)
>> double(V1)*inv(double(U1))
ans =
-4.9434 2.2432 9.0671 6.6701
>> double(V2)*inv(double(U2))
ans =
1.4530 1.2455 -0.5835 0.3357
>> double(W1)*inv(double(Y1))
ans =
1.0e+08 *
-1.2400 2.7879 0.5025 1.6349
>> double(W2)*inv(double(Y2))
ans =
1.0e+09 *
0.5717 1.0999 -0.2261 0.7445