an>

<span class="comment">% A-optimal design</span>
<span class="comment">%</span>
<span class="comment">%      minimize    Trace (sum_i lambdai*vi*vi')^{-1}</span>
<span class="comment">%      subject to  lambda &gt;= 0, 1'*lambda = 1</span>
<span class="comment">%</span>

<span class="comment">% SDP formulation</span>
e = eye(2,2);
cvx_begin <span class="string">sdp</span>
  variables <span class="string">lambda(p)</span> <span class="string">u(n)</span>
  minimize ( sum(u) )
  subject <span class="strin