al(node,1) + C_total(k,1);
      <span class="keyword">end</span>
    <span class="keyword">end</span>

    <span class="comment">% objective is the critical Elmore delay</span>
    minimize( max( T(leafs) ) )
    subject <span class="string">to</span>
      <span class="comment">% generate Elmore delay constraints</span>
      R(1)*C_total(1) &lt;= T(1,1);
      <span class="keyword">for</span> node = 2:N
        R(node)*C_total(node) + T(parent(node),1) &lt;= T(node,1);
      <span class="keyword">end</sp