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.