># the COBRA model</span>
<span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">task_model</span><span class="o">.</span><span class="n">boundary</span><span class="p">:</span>
    <span class="n">k</span><span class="o">.</span><span class="n">knock_out</span><span class="p">()</span>

<span class="c1"># get the names of all reactions in the model - this will be useful further on</span>
<span class="n">all_reactions</span> <span class="o">=</span> <span class="nb">s