grees of freedom&#8212;thus the problem is overdetermined. We can
correct this problem by replacing the equality constraint with</p>
<div class="highlight-none"><div class="highlight"><pre>sym( W ) + D == semidefinite(n);
</pre></div>
</div>
<p><tt class="docutils literal"><span class="pre">sym</span></tt> is a function we have provided that extracts the symmetric part
of its argument; that is, <tt class="docutils literal"><span class="pre">sym(W)</span></tt> equals <tt class="docutils literal"><span class=