Index exceeds matrix dimensions in dual calculation

35 views
Skip to first unread message

Mostafa Nick

unread,
Jul 17, 2014, 12:21:57 PM7/17/14
to yal...@googlegroups.com
Hi

I have a QCP.  When I want to obtain the Duals (my solver is Gurobi), I receive the following messages:

Index exceeds matrix dimensions.

Error in setduals (line 45)
            duals{j}=reshape(Z.l(top:top+Finfo.lin(i,1)*Finfo.lin(i,2)-1),Finfo.lin(i,1),Finfo.lin(i,2));j
            = j+1;

Error in solvesdp (line 497)
                setduals(ForiginalQuadratics,-output.qcDual,Ktemp);

Error in RunThisFile (line 275)
sol = solvesdp(Constraints,Objective,options);

I couldn't figure out what is the problem.
I would highly appreciate it if you could help me with this issue.

Regards

Johan Löfberg

unread,
Jul 17, 2014, 12:57:19 PM7/17/14
to yal...@googlegroups.com
If your question involves code which crashes or similarly, please supply, if possible, fully reproducible code, i.e, code that actually runs and shows your problem. Try to reduce the code to something as simple as possible, while still illustrating your issue (i.e., don't send a complete library of code to setup the problem, use random data instead if possible, don't use a model with 5000 constraints when it crashes already on the first constraint, etc)
Reply all
Reply to author
Forward
0 new messages