agonal;
    minimize( trace( D ) );
    subject to
        W + D == semidefinite(n);
cvx_end
</pre></div>
</div>
<p>If we apply this specification to the matrix <tt class="docutils literal"><span class="pre">W=randn(5,5)</span></tt>, a warning
is issued,</p>
<div class="highlight-none"><div class="highlight"><pre>Warning: Overdetermined equality constraints;
    problem is likely infeasible.
</pre></div>
</div>
<p>and the variable <tt class="docutils literal"><span class="pre">cvx_status</span></tt> is set 