s no Cin)</span>
Cload_pi = sparse(M,1);
Cload_pi(primary_inputs) = 1;

<span class="comment">%********************************************************************</span>
<span class="comment">% optimization</span>
<span class="comment">%********************************************************************</span>
cvx_begin <span class="string">gp</span>
  <span class="comment">% optimization variables</span>
  variable <span class="string">x(N)</span>                 <span class="comment">% sizes</span>
  va