Dear all,
I try to solve the mak-k cuts problem using semidefinite programming (see my attached file for the detail). Here is my code using Sedumi solver:
yalmip('clear');
Y = sdpvar(n,n);
C1 = Y >= 0; % positive semidefinite
C2 = Y(eye(n)==1) == 1; % diagonal condition
C3 = Y(eye(n)~=1) >= -1/(k-1); % off diagonal condition
C = [C1, C2, C3];
Goal = sum(sum(D .* Y));
Ops = sdpsettings('solver','sedumi','debug',1);
sol = optimize(C,Goal,Ops);
Res = value(Y);
This code run well when n is small. However, when I set n = 300. I received the following errors
SeDuMi 1.32 by AdvOL, 2005-2008 and Jos F. Sturm, 1998-2003.
Alg = 2: xz-corrector, theta = 0.250, beta = 0.500
Put 300 free variables in a quadratic cone
Error using callsedumi (line 44)
Error using sparse
Out of memory. Type HELP MEMORY for your options.
Error in solvesdp (line 335)
eval(['output = ' solver.call '(interfacedata);']);
Error in optimize (line 31)
[varargout{1:nargout}] = solvesdp(varargin{:});
Error in maxkcut_2 (line 75)
sol = optimize(C,Goal,Ops);
Is it the out of memory problem ? Is there a solution for this ?
Thanks !!!