Objective = e' * e;
options = sdpsettings('solver','sdpt3');
sol = solvesdp(Constraints,Objective, options);
if sol.problem == 0
solution = sparse(double(r));
else
display('Something went wrong!');
yalmiperror(sol.problem);
end
I am now working on a problem of the size 45000 (in stead of 70000) and use sdpt3 as the solver. R here is sparse, as nnz(R)/numel(R) = 5.6667*e-4. I actually know the real r values and the purpose of this work is to show the solved optimal solution is very close to the real r values. I have checked the real r values satisfies all constraints and under this r, e'*e = 159, a satisfactory result.
However, when I am running the code, I encounter the error message of "Maximum iterations or time limit exceeded (SDPT3-4)". What do you think might be the problem? I saw in another post you said it might be because the problem is numerically ill-posed so that increase the sdpt3.maxit may not help. But I cannot see it is the case in my problem. Thanks!