Problem becomes DUAL_INFEASIBLE when add new constraints about linear SDP

48 views
Skip to first unread message

jingqiao hu

unread,
May 18, 2019, 5:05:24 AM5/18/19
to YALMIP
Dear professor,

I have solved the linear SDP problem below by mosek successfully.

1558170231(1).png



However, when I try to add constraints:

1558169771(1).png

The problem can not  be solved caused DUAL_INFEASIBLE. The output.log is attached.


I don't know why. Why would the new constraints lead to DUAL_INFEASIBLE?


And how to do if I must add these new constraints?


Thanks in advance.


output.log

Johan Löfberg

unread,
May 18, 2019, 5:12:00 AM5/18/19
to YALMIP
you've added a new constraint and the problem simply became infeasible. Why is that strange? x>=0 is feasible, but if you now add x<=-1, the problem becomes infeasible

jingqiao hu

unread,
May 18, 2019, 7:43:18 AM5/18/19
to YALMIP
The new constraint is a manufacture restriction. Therefore, the minimal eigenvalues of C should be away from zero.

The linear SDP problem has nonlinear SDP expression either. How about I transform it to nonlinear SDP problem with the new constraints? The new nonlinear SDP problem might be solved by IPOPT or whatever......

Johan Löfberg

unread,
May 18, 2019, 7:50:08 AM5/18/19
to YALMIP
I have no idea what you are talking about. Supply reproducible example. C - delta*1>=0 does not say it is positive definite, it says it is larger than an all-ones matrix (which implies psd though). C - delta*eye(n)>=0 would be an eigenvalue constraint

The sentence "The linear SDP problem has nonlinear SDP expression" doesn't make sense

jingqiao hu

unread,
May 18, 2019, 8:13:32 AM5/18/19
to YALMIP

1. It is C - delta*eye(n)>=0. 


2. The original problem is below. It's a nonlinear SDP problem.


1558181265.png

However,using the Schur complement theorem, it can be written as a linear SDP problem:

1558181291(1).png
The sentence "The linear SDP problem has nonlinear SDP expression" is ambiguity. I mean I solve the problem using the original nonlinear SDP.

Sorry about my mistakes.

Johan Löfberg

unread,
May 18, 2019, 8:19:35 AM5/18/19
to YALMIP
How do you mean you solve the nonlinear SDP. The log you show is from mosek, so linear SDP

The problem can still become infeasible if delta is too large. If the problem only is marginally feasible, i.e. all feasible solutions are singular, then any delta>0 will render he problem infeasible. As I said, impossible to say anything without reproducible code

jingqiao hu

unread,
May 18, 2019, 9:38:57 AM5/18/19
to YALMIP
Thanks for reply.  I want to use IPOPT or some nonlinear SDP solver to solve original problem. I don't know if this way could solve the new constraints......

I attached my code. FMO.m is the main code, where line51 is the new constraint. 
The delta in line51 is supposed to be 25 as the reference paper said. However I tried to increase the delta to 1000 and the problem finally is solvable.


firstFMO.m
getK.m

Johan Löfberg

unread,
May 18, 2019, 9:56:04 AM5/18/19
to YALMIP
cannot run code as it requires data

jingqiao hu

unread,
May 18, 2019, 10:05:36 AM5/18/19
to YALMIP
The required data is already defined between line11-32.
Message has been deleted

Johan Löfberg

unread,
May 18, 2019, 10:21:02 AM5/18/19
to YALMIP

The model is trivially infeasible with the setup and delta=25

 

If you simplify, you're trying to solve something much more constrained and complicated compared to this

 

E = sdpvar(3)

cons = [];

cons = [cons, E >= 0]; 

cons = [cons, trace(E) <= .1]; 

cons = [cons,E-ones(3)/25 >= 0];

optimize(cons)

        


infeasible. The smallest possible delta would be 30 (which probably is easy to prove)

 

sdpvar f

cons = [];

cons = [cons, E >= 0]; 

cons = [cons, trace(E) <= .1]; 

cons = [cons,E-ones(3)*f >= 0];

optimize(cons,-f)

value(1/f)   

 

Doing the same for your full model shows that the smallest possible delta is  90.0009

 

 

btw, the line  assign(E{i}, repmat(0.1 * u / 2, 3, 3)); makes no difference in your code

jingqiao hu

unread,
May 18, 2019, 10:28:42 AM5/18/19
to YALMIP
Thank you so much, professor.
Reply all
Reply to author
Forward
0 new messages