span>
<span class="comment">% Determines the optimal doping profile that minimizes base transit</span>
<span class="comment">% time in a (homojunction) bipolar junction transistor.</span>
<span class="comment">% This problem can be posed as a GP:</span>
<span class="comment">%</span>
<span class="comment">%   minimize   tau_B</span>
<span class="comment">%       s.t.   Nmin &lt;= v &lt;= Nmax</span>
<span class="comment">%              y_(i+1) + v_i^const1 &lt;= y_i</span>
<span class="comment">%           