elaxation</span>
fprintf(1,<span class="string">'Solving the SDP relaxation of the two-way partitioning problem...'</span>);

cvx_begin <span class="string">sdp</span>
    variable <span class="string">X(n,n)</span> <span class="string">symmetric</span>
    minimize ( trace(W*X) )
    diag(X) == 1;
    X &gt;= 0;
cvx_end

fprintf(1,<span class="string">'Done! \n'</span>);
opt2 = cvx_optval;

<span class="comment">% Displaying results</span>
disp(<span class="string">'----------------------------------------