Dual

71 views
Skip to first unread message

Mostafa Nick

unread,
Mar 4, 2013, 10:09:35 AM3/4/13
to yal...@googlegroups.com
I have a QCQP and I am using YALMIP and CPLEX to solve my problem. I also would like to get the dual variables associated to the linear constraints. I am using the dual command to get these values, However, YALMIP returns back NaN values for all the dual variables. What is wrong and what should I do?

Thank you very much in advance.

Johan Löfberg

unread,
Mar 4, 2013, 10:20:55 AM3/4/13
to yal...@googlegroups.com
CPLEX does not return any duals for qcqps. It claims in the help that it does, but when I try to obtain them (using 5 outputs from cplexqcp) cplex crashes.

If you use Gurobi, you can extract them if you turn on the option 'gurobi.QCPdual'

Mostafa Nick

unread,
Mar 4, 2013, 11:42:14 AM3/4/13
to yal...@googlegroups.com
I used gurobi with the following settings and the duals are still NaN. 


D1=dual(Constraints(1));

D2=dual(Constraints(2));

options = sdpsettings('solver','gurobi','gurobi.QCPdual',1);

Johan Löfberg

unread,
Mar 4, 2013, 12:15:15 PM3/4/13
to yal...@googlegroups.com
Ah right, that is not available in the official release yet. I will send you an updated version
Reply all
Reply to author
Forward
0 new messages