Difference between revisions of "Team:XJTU-China/Model"

Line 40: Line 40:
 
                         <ul>
 
                         <ul>
 
                             <li><a class="fa fa-plug" href="#summary">&nbsp;Summary</a></li>
 
                             <li><a class="fa fa-plug" href="#summary">&nbsp;Summary</a></li>
                             <li><a class="fa fa-plug" href="#establishment-of-model">&nbsp;Establishment of Model</a></li>
+
                             <li><a class="fa fa-plug" href="#establishment-of-model">&nbsp;Establishment of Model</a>
 +
                            </li>
 
                             <li><a class="fa fa-plug" href="#result-and-conclusion">&nbsp;Result and Conclusion</a>
 
                             <li><a class="fa fa-plug" href="#result-and-conclusion">&nbsp;Result and Conclusion</a>
 
                                 <ul>
 
                                 <ul>
                                     <li><a href="#population-density">· The Population Density of <i>E. coli</i></a></li>
+
                                     <li><a href="#population-density">· The Population Density of <i>E. coli</i></a>
 +
                                    </li>
 
                                     <li><a href="#effect">· The Effect of Toggle Switch</a></li>
 
                                     <li><a href="#effect">· The Effect of Toggle Switch</a></li>
 
                                     <li><a href="#product">· The Product of Genetic Circuits</a></li>
 
                                     <li><a href="#product">· The Product of Genetic Circuits</a></li>
Line 51: Line 53:
 
                             </li>
 
                             </li>
 
                             <li><a class="fa fa-plug" href="#reference">&nbsp;Reference</a></li>
 
                             <li><a class="fa fa-plug" href="#reference">&nbsp;Reference</a></li>
 +
                            <li><a class="fa fa-plug" href="#code">&nbsp;Code</a></li>
 
                         </ul>
 
                         </ul>
 
                     </nav>
 
                     </nav>
Line 2,304: Line 2,307:
 
                             <hr />
 
                             <hr />
 
                         </section>
 
                         </section>
 +
                        <!-- code -->
 +
                        <a class="anchor" id="code"></a>
 +
                        <section>
 +
                            <h1 id='code'><span>Code</span></h1>
 +
                            <blockquote>
 +
                                <p><span>Using MATLAB R2019b.</span></p>
 +
                            </blockquote>
 +
                            <h2 id='the-model-of-population-dynamics-2'><span>The model of population dynamics</span>
 +
                            </h2>
 +
                            <p><code>main.m</code></p>
 +
                            <pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false"
 +
                                lang="matlab"
 +
                                style="break-inside: unset;"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang="matlab"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 9.38889px; left: 7.98611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% initialization</span></span></pre>
 
                     </div>
 
                     </div>
 +
                    <pre class=" CodeMirror-line "
 +
                        role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">clc</span>;</span></pre>
 +
                    <pre class=" CodeMirror-line "
 +
                        role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">close</span> <span class="cm-variable">all</span>;</span></pre>
 +
                    <pre class=" CodeMirror-line "
 +
                        role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">clear</span> <span class="cm-variable">all</span>;</span></pre>
 +
                    <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
                    <pre class=" CodeMirror-line "
 +
                        role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% numerical solution</span></span></pre>
 +
                    <pre class=" CodeMirror-line "
 +
                        role="presentation"><span role="presentation" style="padding-right: 0.1px;">[<span class="cm-variable">t</span>, <span class="cm-variable">N</span>] = <span class="cm-variable">ode45</span>(<span class="cm-operator">@</span>(<span class="cm-variable">t</span>, <span class="cm-variable">N</span>) <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">N</span>)<span class="cm-operator">'</span>, [<span class="cm-number">0</span> <span class="cm-number">3000</span>], <span class="cm-number">6.08</span><span class="cm-operator">*</span><span class="cm-number">10</span><span class="cm-operator">^</span><span class="cm-number">9</span><span class="cm-operator">*</span><span class="cm-number">0.0001</span>);</span></pre>
 +
                    <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
                    <pre class=" CodeMirror-line "
 +
                        role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% draw figure</span></span></pre>
 +
                    <pre class=" CodeMirror-line "
 +
                        role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">figure</span>();</span></pre>
 +
                    <pre class=" CodeMirror-line "
 +
                        role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">plot</span>(<span class="cm-variable">t</span>, <span class="cm-variable">N</span>, <span class="cm-string">'LineWidth'</span>, <span class="cm-number">2</span>);</span></pre>
 +
                    <div class="" style="position: relative;">
 +
                        <pre class=" CodeMirror-line "
 +
                            role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">xlabel</span>(<span class="cm-string">'Time/min'</span>);</span></pre>
 +
                    </div>
 +
                    <pre class=" CodeMirror-line "
 +
                        role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">ylabel</span>(<span class="cm-string">'Population Density'</span>)</span></pre>
 +
                    <pre class=" CodeMirror-line "
 +
                        role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">grid</span> <span class="cm-variable">on</span>;</span></pre>
 +
                </div>
 +
            </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        <div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 319px;">
 +
        </div>
 +
        <div class="CodeMirror-gutters" style="display: none; height: 319px;"></div>
 +
        </div>
 +
        </div>
 +
        </pre>
 +
        <p><code>odefun.m</code></p>
 +
        <pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false"
 +
            lang="matlab"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang="matlab"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 9.38889px; left: 7.98611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre>
 +
        </div>
 +
        <div class="CodeMirror-measure"></div>
 +
        <div style="position: relative; z-index: 1;"></div>
 +
        <div class="CodeMirror-code" role="presentation">
 +
            <div class="CodeMirror-activeline" style="position: relative;">
 +
                <div class="CodeMirror-activeline-background CodeMirror-linebackground"></div>
 +
                <div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;">
 +
                </div>
 +
                <pre class=" CodeMirror-line "
 +
                    role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">function</span> <span class="cm-variable">dN</span> = <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">N</span>)</span></pre>
 +
            </div>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">r</span> = <span class="cm-number">0.0073</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">K</span> = <span class="cm-number">6.08</span><span class="cm-operator">*</span><span class="cm-number">10</span><span class="cm-operator">^</span><span class="cm-number">9</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dN</span> = <span class="cm-variable">r</span><span class="cm-operator">*</span><span class="cm-variable">N</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">-</span><span class="cm-variable">N</span><span class="cm-operator">/</span><span class="cm-variable">K</span>);</span></pre>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        <div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 91px;">
 +
        </div>
 +
        <div class="CodeMirror-gutters" style="display: none; height: 91px;"></div>
 +
        </div>
 +
        </div>
 +
        </pre>
 +
        <h2 id='the-model-of-toggle-switch-2'><span>The model of toggle switch</span></h2>
 +
        <p><code>main.m</code></p>
 +
        <pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="matlab"
 +
            style="break-inside: unset;"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang="matlab"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 9.38889px; left: 7.98611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre>
 +
        </div>
 +
        <div class="CodeMirror-measure"></div>
 +
        <div style="position: relative; z-index: 1;"></div>
 +
        <div class="CodeMirror-code" role="presentation" style="">
 +
            <div class="CodeMirror-activeline" style="position: relative;">
 +
                <div class="CodeMirror-activeline-background CodeMirror-linebackground"></div>
 +
                <div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;">
 +
                </div>
 +
                <pre class=" CodeMirror-line "
 +
                    role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% initialization</span></span></pre>
 +
            </div>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">clc</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">close</span> <span class="cm-variable">all</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">clear</span> <span class="cm-variable">all</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% initial value</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">tspan</span> = [<span class="cm-number">0</span> <span class="cm-number">3000</span>];</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">c0</span> = [<span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span>];</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% add IPTG</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">t1</span> = <span class="cm-number">1000</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">iptg1</span> = <span class="cm-number">10</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% raise temperature</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">t2</span> = <span class="cm-number">2000</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">alpha</span> = <span class="cm-number">1.2</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% numerical solution</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;">[<span class="cm-variable">t</span>, <span class="cm-variable">c</span>] = <span class="cm-variable">ode45</span>(<span class="cm-operator">@</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>) <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>, <span class="cm-variable">t1</span>, <span class="cm-variable">iptg1</span>, <span class="cm-variable">t2</span>, <span class="cm-variable">alpha</span>)<span class="cm-operator">'</span>, <span class="cm-variable">tspan</span>, <span class="cm-variable">c0</span>);</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% draw figure</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">figure</span>();</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">plot</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">6</span>), <span class="cm-string">'g'</span>, <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">8</span>), <span class="cm-string">'r'</span>, <span class="cm-string">'LineWidth'</span>, <span class="cm-number">2</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">legend</span>(<span class="cm-string">'[pGFP]'</span>, <span class="cm-string">'[pRFP]'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">xlabel</span>(<span class="cm-string">'Time/s'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">ylabel</span>(<span class="cm-string">'Concentration'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">grid</span> <span class="cm-variable">on</span>;</span></pre>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        <div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 615px;">
 +
        </div>
 +
        <div class="CodeMirror-gutters" style="display: none; height: 615px;"></div>
 +
        </div>
 +
        </div>
 +
        </pre>
 +
        <p><code>odefun.m</code></p>
 +
        <pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="matlab"
 +
            style="break-inside: unset;"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang="matlab"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 9.38889px; left: 7.98611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre>
 +
        </div>
 +
        <div class="CodeMirror-measure"></div>
 +
        <div style="position: relative; z-index: 1;"></div>
 +
        <div class="CodeMirror-code" role="presentation" style="">
 +
            <div class="CodeMirror-activeline" style="position: relative;">
 +
                <div class="CodeMirror-activeline-background CodeMirror-linebackground"></div>
 +
                <div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;">
 +
                </div>
 +
                <pre class=" CodeMirror-line "
 +
                    role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">function</span> <span class="cm-variable">dc</span> = <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>, <span class="cm-variable">t1</span>, <span class="cm-variable">iptg1</span>, <span class="cm-variable">t2</span>, <span class="cm-variable">alpha</span>)</span></pre>
 +
            </div>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% lambdaPR: lacI, GFP</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">lambdaPR</span> = <span class="cm-number">0.5</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphal0</span> = <span class="cm-number">0.5</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphal1</span> = <span class="cm-number">1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% Plac: cl857, RFP</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">Plac</span> = <span class="cm-number">1.3</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphap0</span> = <span class="cm-number">0.5</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphap1</span> = <span class="cm-number">1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% RFP</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynr</span> = <span class="cm-number">0.019</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kder</span> = <span class="cm-number">0.0013</span><span class="cm-operator">*</span><span class="cm-number">10</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynr</span> = <span class="cm-number">0.47</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpder</span> = <span class="cm-number">0.136</span><span class="cm-operator">*</span><span class="cm-number">10</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% GFP</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kg</span> = <span class="cm-number">0.877</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksyng</span> = <span class="cm-variable">kg</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdeg</span> = <span class="cm-variable">kg</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsyng</span> = <span class="cm-variable">kg</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdeg</span> = <span class="cm-variable">kg</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% cI857</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kc</span> = <span class="cm-number">0.95</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksync</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdec</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsync</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdec</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% lacI</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kl</span> = <span class="cm-number">0.626</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynl</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdel</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynl</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdel</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% add IPTG</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">iptg</span> = <span class="cm-number">0</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">if</span> (<span class="cm-variable">t</span><span class="cm-operator">&gt;</span><span class="cm-variable">t1</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-variable">iptg</span> = <span class="cm-variable">iptg1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">end</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% raise temperature</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">if</span> (<span class="cm-variable">t</span><span class="cm-operator">&gt;</span><span class="cm-variable">t2</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-variable">iptg</span> = <span class="cm-number">0</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-variable">alphal1</span> = <span class="cm-variable">alpha</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">end</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% differential equations</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">1</span>) = <span class="cm-variable">ksynl</span><span class="cm-operator">*</span><span class="cm-variable">alphal0</span><span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">+</span> <span class="cm-variable">ksynl</span><span class="cm-operator">*</span><span class="cm-variable">alphal1</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">7</span>)))<span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">-</span> <span class="cm-variable">kdel</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">1</span>); <span class="cm-comment">% [rlacI]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">2</span>) = <span class="cm-variable">ksyng</span><span class="cm-operator">*</span><span class="cm-variable">alphal0</span><span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">+</span> <span class="cm-variable">ksyng</span><span class="cm-operator">*</span><span class="cm-variable">alphal1</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">7</span>)))<span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">-</span> <span class="cm-variable">kdeg</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">2</span>); <span class="cm-comment">% [rGFP]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">3</span>) = <span class="cm-variable">ksync</span><span class="cm-operator">*</span><span class="cm-variable">alphap0</span><span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">+</span> <span class="cm-variable">ksync</span><span class="cm-operator">*</span><span class="cm-variable">alphap1</span><span class="cm-operator">*</span>(<span class="cm-variable">iptg</span><span class="cm-operator">/</span>(<span class="cm-variable">iptg</span><span class="cm-operator">+</span><span class="cm-variable">c</span>(<span class="cm-number">5</span>)))<span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">-</span> <span class="cm-variable">kdec</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">3</span>); <span class="cm-comment">% [rcI857]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">4</span>) = <span class="cm-variable">ksynr</span><span class="cm-operator">*</span><span class="cm-variable">alphap0</span><span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">+</span> <span class="cm-variable">ksynr</span><span class="cm-operator">*</span><span class="cm-variable">alphap1</span><span class="cm-operator">*</span>(<span class="cm-variable">iptg</span><span class="cm-operator">/</span>(<span class="cm-variable">iptg</span><span class="cm-operator">+</span><span class="cm-variable">c</span>(<span class="cm-number">5</span>)))<span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">-</span> <span class="cm-variable">kder</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">4</span>); <span class="cm-comment">% [rRFP]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">5</span>) = <span class="cm-variable">kpsynl</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">1</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdel</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">5</span>); <span class="cm-comment">% [placI]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">6</span>) = <span class="cm-variable">kpsyng</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">2</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdeg</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">6</span>); <span class="cm-comment">% [pGFP]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">7</span>) = <span class="cm-variable">kpsync</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">3</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdec</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">7</span>); <span class="cm-comment">% [pcI857]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">8</span>) = <span class="cm-variable">kpsynr</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">4</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpder</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">8</span>); <span class="cm-comment">% [pRFP]</span></span></pre>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        <div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 1435px;">
 +
        </div>
 +
        <div class="CodeMirror-gutters" style="display: none; height: 1435px;"></div>
 +
        </div>
 +
        </div>
 +
        </pre>
 +
        <h2 id='the-model-of-genetic-circuits-2'><span>The model of genetic circuits</span></h2>
 +
        <p><code>main.m</code></p>
 +
        <pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="matlab"
 +
            style="break-inside: unset;"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang="matlab"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 9.38889px; left: 7.98611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre>
 +
        </div>
 +
        <div class="CodeMirror-measure"></div>
 +
        <div style="position: relative; z-index: 1;"></div>
 +
        <div class="CodeMirror-code" role="presentation" style="">
 +
            <div class="CodeMirror-activeline" style="position: relative;">
 +
                <div class="CodeMirror-activeline-background CodeMirror-linebackground"></div>
 +
                <div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;">
 +
                </div>
 +
                <pre class=" CodeMirror-line "
 +
                    role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% initialization</span></span></pre>
 +
            </div>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">clc</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">close</span> <span class="cm-variable">all</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">clear</span> <span class="cm-variable">all</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% initial value</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">tspan</span> = [<span class="cm-number">0</span> <span class="cm-number">3000</span>];</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">c0</span> = [<span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span>];</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% add IPTG</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">t1</span> = <span class="cm-number">1000</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">iptg1</span> = <span class="cm-number">10</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% raise temperature</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">t2</span> = <span class="cm-number">2000</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">alpha</span> = <span class="cm-number">1.2</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% numerical solution</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;">[<span class="cm-variable">t</span>, <span class="cm-variable">c</span>] = <span class="cm-variable">ode45</span>(<span class="cm-operator">@</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>) <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>, <span class="cm-variable">t1</span>, <span class="cm-variable">iptg1</span>, <span class="cm-variable">t2</span>, <span class="cm-variable">alpha</span>)<span class="cm-operator">'</span>, <span class="cm-variable">tspan</span>, <span class="cm-variable">c0</span>);</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% draw figure</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">figure</span>();</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">plot</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">7</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">8</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">9</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">10</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">11</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">12</span>), <span class="cm-string">'LineWidth'</span>, <span class="cm-number">2</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">legend</span>(<span class="cm-string">'[placI]'</span>, <span class="cm-string">'[paroG]'</span>, <span class="cm-string">'[ptrpB]'</span>, <span class="cm-string">'[ptrpA]'</span>, <span class="cm-string">'[pcI857]'</span>, <span class="cm-string">'[ppykA]'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">grid</span> <span class="cm-variable">on</span>;</span></pre>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        <div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 592px;">
 +
        </div>
 +
        <div class="CodeMirror-gutters" style="display: none; height: 592px;"></div>
 +
        </div>
 +
        </div>
 +
        </pre>
 +
        <p><code>odefun.m</code></p>
 +
        <pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="matlab"
 +
            style="break-inside: unset;"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang="matlab"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 9.38889px; left: 7.98611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre>
 +
        </div>
 +
        <div class="CodeMirror-measure"></div>
 +
        <div style="position: relative; z-index: 1;"></div>
 +
        <div class="CodeMirror-code" role="presentation" style="">
 +
            <div class="CodeMirror-activeline" style="position: relative;">
 +
                <div class="CodeMirror-activeline-background CodeMirror-linebackground"></div>
 +
                <div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;">
 +
                </div>
 +
                <pre class=" CodeMirror-line "
 +
                    role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">function</span> <span class="cm-variable">dc</span> = <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>, <span class="cm-variable">t1</span>, <span class="cm-variable">iptg1</span>, <span class="cm-variable">t2</span>, <span class="cm-variable">alpha</span>)</span></pre>
 +
            </div>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% lambdaPR: lacI, aroG, trpB, trpA</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">lambdaPR</span> = <span class="cm-number">0.5</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphal0</span> = <span class="cm-number">0.5</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphal1</span> = <span class="cm-number">1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% Plac: cl857, pykA</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">Plac</span> = <span class="cm-number">1.3</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphap0</span> = <span class="cm-number">0.5</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphap1</span> = <span class="cm-number">1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% RFP</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynr</span> = <span class="cm-number">0.019</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kder</span> = <span class="cm-number">0.0013</span><span class="cm-operator">*</span><span class="cm-number">10</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynr</span> = <span class="cm-number">0.47</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpder</span> = <span class="cm-number">0.136</span><span class="cm-operator">*</span><span class="cm-number">10</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% lacI</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kl</span> = <span class="cm-number">0.626</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynl</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdel</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynl</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdel</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% aroG</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ka</span> = <span class="cm-number">0.644</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksyna</span> = <span class="cm-variable">ka</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdea</span> = <span class="cm-variable">ka</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsyna</span> = <span class="cm-variable">ka</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdea</span> = <span class="cm-variable">ka</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% trpB</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kB</span> = <span class="cm-number">0.568</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynB</span> = <span class="cm-variable">kB</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdeB</span> = <span class="cm-variable">kB</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynB</span> = <span class="cm-variable">kB</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdeB</span> = <span class="cm-variable">kB</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% trpA</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kA</span> = <span class="cm-number">0.84</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynA</span> = <span class="cm-variable">kA</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdeA</span> = <span class="cm-variable">kA</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynA</span> = <span class="cm-variable">kA</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdeA</span> = <span class="cm-variable">kA</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% cI857</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kc</span> = <span class="cm-number">0.95</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksync</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdec</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsync</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdec</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% pykA</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kp</span> = <span class="cm-number">0.47</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynp</span> = <span class="cm-variable">kp</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdep</span> = <span class="cm-variable">kp</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynp</span> = <span class="cm-variable">kp</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdep</span> = <span class="cm-variable">kp</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% add IPTG</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">iptg</span> = <span class="cm-number">0</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">if</span> (<span class="cm-variable">t</span><span class="cm-operator">&gt;</span><span class="cm-variable">t1</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-variable">iptg</span> = <span class="cm-variable">iptg1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">end</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% raise temperature</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">if</span> (<span class="cm-variable">t</span><span class="cm-operator">&gt;</span><span class="cm-variable">t2</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-variable">iptg</span> = <span class="cm-number">0</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-variable">alphal1</span> = <span class="cm-variable">alpha</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">end</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% differential equations</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">1</span>) = <span class="cm-variable">ksynl</span><span class="cm-operator">*</span><span class="cm-variable">alphal0</span><span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">+</span> <span class="cm-variable">ksynl</span><span class="cm-operator">*</span><span class="cm-variable">alphal1</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">11</span>)))<span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">-</span> <span class="cm-variable">kdel</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">1</span>); <span class="cm-comment">% [rlacI]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">2</span>) = <span class="cm-variable">ksyna</span><span class="cm-operator">*</span><span class="cm-variable">alphal0</span><span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">+</span> <span class="cm-variable">ksyna</span><span class="cm-operator">*</span><span class="cm-variable">alphal1</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">11</span>)))<span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">-</span> <span class="cm-variable">kdea</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">2</span>); <span class="cm-comment">% [raroG]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">3</span>) = <span class="cm-variable">ksynB</span><span class="cm-operator">*</span><span class="cm-variable">alphal0</span><span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">+</span> <span class="cm-variable">ksynB</span><span class="cm-operator">*</span><span class="cm-variable">alphal1</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">11</span>)))<span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">-</span> <span class="cm-variable">kdeB</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">3</span>); <span class="cm-comment">% [rtrpB]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">4</span>) = <span class="cm-variable">ksynA</span><span class="cm-operator">*</span><span class="cm-variable">alphal0</span><span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">+</span> <span class="cm-variable">ksynA</span><span class="cm-operator">*</span><span class="cm-variable">alphal1</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">11</span>)))<span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">-</span> <span class="cm-variable">kdeB</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">4</span>); <span class="cm-comment">% [rtrpA]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">5</span>) = <span class="cm-variable">ksync</span><span class="cm-operator">*</span><span class="cm-variable">alphap0</span><span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">+</span> <span class="cm-variable">ksync</span><span class="cm-operator">*</span><span class="cm-variable">alphap1</span><span class="cm-operator">*</span>(<span class="cm-variable">iptg</span><span class="cm-operator">/</span>(<span class="cm-variable">iptg</span><span class="cm-operator">+</span><span class="cm-variable">c</span>(<span class="cm-number">7</span>)))<span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">-</span> <span class="cm-variable">kdec</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">5</span>); <span class="cm-comment">% [rcI857]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">6</span>) = <span class="cm-variable">ksynp</span><span class="cm-operator">*</span><span class="cm-variable">alphap0</span><span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">+</span> <span class="cm-variable">ksynp</span><span class="cm-operator">*</span><span class="cm-variable">alphap1</span><span class="cm-operator">*</span>(<span class="cm-variable">iptg</span><span class="cm-operator">/</span>(<span class="cm-variable">iptg</span><span class="cm-operator">+</span><span class="cm-variable">c</span>(<span class="cm-number">7</span>)))<span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">-</span> <span class="cm-variable">kder</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">6</span>); <span class="cm-comment">% [rpykA]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">7</span>) = <span class="cm-variable">kpsynl</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">1</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdel</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">7</span>); <span class="cm-comment">% [placI]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">8</span>) = <span class="cm-variable">kpsyna</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">2</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdea</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">8</span>); <span class="cm-comment">% [paroG]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">9</span>) = <span class="cm-variable">kpsynB</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">3</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdeB</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">9</span>); <span class="cm-comment">% [ptrpB]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">10</span>) = <span class="cm-variable">kpsynA</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">4</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdeA</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">10</span>); <span class="cm-comment">% [ptrpA]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">11</span>) = <span class="cm-variable">kpsync</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">5</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdec</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">11</span>); <span class="cm-comment">% [pcI857]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">12</span>) = <span class="cm-variable">kpsynp</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">6</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdep</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">12</span>); <span class="cm-comment">% [ppykA]</span></span></pre>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        <div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 2050px;">
 +
        </div>
 +
        <div class="CodeMirror-gutters" style="display: none; height: 2050px;"></div>
 +
        </div>
 +
        </div>
 +
        </pre>
 +
        <h2 id='the-model-of-synthesis-of-tryptophan-2'><span>The model of synthesis of tryptophan</span></h2>
 +
        <p><code>main.m</code></p>
 +
        <pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="matlab"
 +
            style="break-inside: unset;"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang="matlab"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 9.38889px; left: 7.98611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre>
 +
        </div>
 +
        <div class="CodeMirror-measure"></div>
 +
        <div style="position: relative; z-index: 1;"></div>
 +
        <div class="CodeMirror-code" role="presentation" style="">
 +
            <div class="CodeMirror-activeline" style="position: relative;">
 +
                <div class="CodeMirror-activeline-background CodeMirror-linebackground"></div>
 +
                <div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;">
 +
                </div>
 +
                <pre class=" CodeMirror-line "
 +
                    role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% initialization</span></span></pre>
 +
            </div>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">clc</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">close</span> <span class="cm-variable">all</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% initial value</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">tspan</span> = [<span class="cm-number">0</span> <span class="cm-number">3000</span>];</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">c0</span> = [<span class="cm-number">0</span> <span class="cm-number">0</span> <span class="cm-number">0</span> <span class="cm-number">0</span> <span class="cm-number">0</span> <span class="cm-number">20</span>];</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">aroG</span> = <span class="cm-number">1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">pykA</span> = <span class="cm-number">0.15</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">trpAB</span> = <span class="cm-number">2.5</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% numerical solution</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;">[<span class="cm-variable">t</span>, <span class="cm-variable">c</span>] = <span class="cm-variable">ode45</span>(<span class="cm-operator">@</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>) <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>, <span class="cm-variable">aroG</span>, <span class="cm-variable">pykA</span>, <span class="cm-variable">trpAB</span>)<span class="cm-operator">'</span>, <span class="cm-variable">tspan</span>, <span class="cm-variable">c0</span>);</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% draw figure</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">figure</span>();</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">plot</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">6</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">1</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">2</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">3</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">4</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">5</span>), <span class="cm-string">'LineWidth'</span>, <span class="cm-number">2</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">legend</span>(<span class="cm-string">'[Glc]'</span>, &nbsp;<span class="cm-string">'[PEP]'</span>, <span class="cm-string">'[DAHP]'</span>, <span class="cm-string">'[Pyr]'</span>, <span class="cm-string">'[3IGP]'</span>, <span class="cm-string">'[Trp]'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">xlabel</span>(<span class="cm-string">'Time/min'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">ylabel</span>(<span class="cm-string">'Concetration'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">grid</span> <span class="cm-variable">on</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">axis</span>([<span class="cm-number">0</span> <span class="cm-number">3000</span> <span class="cm-number">0</span> <span class="cm-number">20</span>]);</span></pre>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        <div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 524px;">
 +
        </div>
 +
        <div class="CodeMirror-gutters" style="display: none; height: 524px;"></div>
 +
        </div>
 +
        </div>
 +
        </pre>
 +
        <p><code>odefun.m</code></p>
 +
        <pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="matlab"
 +
            style="break-inside: unset;"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang="matlab"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 9.38889px; left: 7.98611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre>
 +
        </div>
 +
        <div class="CodeMirror-measure"></div>
 +
        <div style="position: relative; z-index: 1;"></div>
 +
        <div class="CodeMirror-code" role="presentation" style="">
 +
            <div class="CodeMirror-activeline" style="position: relative;">
 +
                <div class="CodeMirror-activeline-background CodeMirror-linebackground"></div>
 +
                <div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;">
 +
                </div>
 +
                <pre class=" CodeMirror-line "
 +
                    role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">function</span> <span class="cm-variable">dc</span> = <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>, <span class="cm-variable">aroG</span>, <span class="cm-variable">pykA</span>, <span class="cm-variable">trpAB</span>)</span></pre>
 +
            </div>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% reaction 1</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">vmax1</span> = <span class="cm-number">0.1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">km1</span> = <span class="cm-number">0.005</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% reaction 2</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">vmax2</span> = <span class="cm-number">0.03</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">km2</span> = <span class="cm-number">0.002</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% reaction aroG</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kcataroG</span> = <span class="cm-number">0.1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kmaroG</span> = <span class="cm-number">0.009</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% reaction pykA</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kcatpykA</span> = <span class="cm-number">0.15</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kmpykA</span> = <span class="cm-number">0.05</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% reaction trpAB</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kcattrpAB</span> = <span class="cm-number">0.009</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kmtrpAB</span> = <span class="cm-number">0.1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% differential equations</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">1</span>) = <span class="cm-variable">vmax1</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">6</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">6</span>)<span class="cm-operator">+</span><span class="cm-variable">km1</span>)<span class="cm-operator">-</span><span class="cm-variable">kcataroG</span><span class="cm-operator">*</span><span class="cm-variable">aroG</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">1</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">1</span>)<span class="cm-operator">+</span><span class="cm-variable">kmaroG</span>)<span class="cm-operator">-</span><span class="cm-variable">kcatpykA</span><span class="cm-operator">*</span><span class="cm-variable">pykA</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">1</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">1</span>)<span class="cm-operator">+</span><span class="cm-variable">kmpykA</span>); <span class="cm-comment">% [PEP]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">2</span>) = <span class="cm-variable">kcataroG</span><span class="cm-operator">*</span><span class="cm-variable">aroG</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">1</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">1</span>)<span class="cm-operator">+</span><span class="cm-variable">kmaroG</span>)<span class="cm-operator">-</span><span class="cm-variable">vmax2</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">2</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">2</span>)<span class="cm-operator">+</span><span class="cm-variable">km2</span>); <span class="cm-comment">% [DAHP]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">3</span>) = <span class="cm-variable">kcatpykA</span><span class="cm-operator">*</span><span class="cm-variable">pykA</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">1</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">1</span>)<span class="cm-operator">+</span><span class="cm-variable">kmpykA</span>); <span class="cm-comment">% [Pyr]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">4</span>) = <span class="cm-variable">vmax2</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">2</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">2</span>)<span class="cm-operator">+</span><span class="cm-variable">km2</span>)<span class="cm-operator">-</span><span class="cm-variable">kcattrpAB</span><span class="cm-operator">*</span><span class="cm-variable">trpAB</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">4</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">4</span>)<span class="cm-operator">+</span><span class="cm-variable">kmtrpAB</span>); <span class="cm-comment">% [3IGP]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">5</span>) = <span class="cm-variable">kcattrpAB</span><span class="cm-operator">*</span><span class="cm-variable">trpAB</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">4</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">4</span>)<span class="cm-operator">+</span><span class="cm-variable">kmtrpAB</span>); <span class="cm-comment">% [Trp]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">6</span>) = <span class="cm-operator">-</span><span class="cm-variable">vmax1</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">6</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">6</span>)<span class="cm-operator">+</span><span class="cm-variable">km1</span>); <span class="cm-comment">% [Glc]</span></span></pre>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        <div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 661px;">
 +
        </div>
 +
        <div class="CodeMirror-gutters" style="display: none; height: 661px;"></div>
 +
        </div>
 +
        </div>
 +
        </pre>
 +
        <h2 id='the-model-of-production-2'><span>The model of production</span></h2>
 +
        <p><code>main.m</code></p>
 +
        <pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="matlab"
 +
            style="break-inside: unset;"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang="matlab"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 9.38889px; left: 7.98611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre>
 +
        </div>
 +
        <div class="CodeMirror-measure"></div>
 +
        <div style="position: relative; z-index: 1;"></div>
 +
        <div class="CodeMirror-code" role="presentation" style="">
 +
            <div class="CodeMirror-activeline" style="position: relative;">
 +
                <div class="CodeMirror-activeline-background CodeMirror-linebackground"></div>
 +
                <div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;">
 +
                </div>
 +
                <pre class=" CodeMirror-line "
 +
                    role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% initialization</span></span></pre>
 +
            </div>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">clc</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">close</span> <span class="cm-variable">all</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">clear</span> <span class="cm-variable">all</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% initial value</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">tspan</span> = [<span class="cm-number">0</span> <span class="cm-number">3000</span>];</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">c0</span> = [<span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.1</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0.01</span> <span class="cm-number">0</span> <span class="cm-number">0</span> <span class="cm-number">0</span> <span class="cm-number">0</span> <span class="cm-number">0</span> <span class="cm-number">20</span> <span class="cm-number">6.08</span><span class="cm-operator">*</span><span class="cm-number">10</span><span class="cm-operator">^</span><span class="cm-number">9</span><span class="cm-operator">*</span><span class="cm-number">0.001</span>];</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% adjust t2</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">n</span> = <span class="cm-number">10</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">maxt</span> = <span class="cm-number">3000</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">mint</span> = <span class="cm-number">0</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">for</span> <span class="cm-variable">i</span> = <span class="cm-number">1</span>:<span class="cm-variable">n</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">clc</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">fprintf</span>(<span class="cm-string">'%d/%d\n'</span>,<span class="cm-variable">i</span>,<span class="cm-variable">n</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">t2</span> = <span class="cm-variable">mint</span> <span class="cm-operator">+</span> (<span class="cm-variable">maxt</span><span class="cm-operator">-</span><span class="cm-variable">mint</span>)<span class="cm-operator">*</span><span class="cm-variable">i</span><span class="cm-operator">/</span><span class="cm-variable">n</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  [<span class="cm-variable">t</span>, <span class="cm-variable">c</span>] = <span class="cm-variable">ode45</span>(<span class="cm-operator">@</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>) <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>, <span class="cm-number">0</span>, <span class="cm-number">10</span>, <span class="cm-variable">t2</span>, <span class="cm-number">1.2</span>)<span class="cm-operator">'</span>, <span class="cm-variable">tspan</span>, <span class="cm-variable">c0</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">result</span>(<span class="cm-variable">i</span>,<span class="cm-number">1</span>) = <span class="cm-variable">c</span>(<span class="cm-builtin">size</span>(<span class="cm-variable">t</span>,<span class="cm-number">1</span>),<span class="cm-number">15</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">result</span>(<span class="cm-variable">i</span>,<span class="cm-number">2</span>) = <span class="cm-variable">c</span>(<span class="cm-builtin">size</span>(<span class="cm-variable">t</span>,<span class="cm-number">1</span>),<span class="cm-number">17</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">end</span></span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% figure 1</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">tspan2</span> = <span class="cm-variable">mint</span><span class="cm-operator">+</span>(<span class="cm-variable">maxt</span><span class="cm-operator">-</span><span class="cm-variable">mint</span>)<span class="cm-operator">/</span><span class="cm-variable">n</span>:(<span class="cm-variable">maxt</span><span class="cm-operator">-</span><span class="cm-variable">mint</span>)<span class="cm-operator">/</span><span class="cm-variable">n</span>:<span class="cm-variable">maxt</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">plot</span>(<span class="cm-variable">tspan2</span>, <span class="cm-variable">result</span>(:,<span class="cm-number">1</span>), <span class="cm-variable">tspan2</span>, <span class="cm-variable">result</span>(:,<span class="cm-number">2</span>), <span class="cm-string">'LineWidth'</span>, <span class="cm-number">2</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">xlabel</span>(<span class="cm-string">'Time of raising temperature/min'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">ylabel</span>(<span class="cm-string">'Output'</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">legend</span>(<span class="cm-string">'[Pyr]'</span>, <span class="cm-string">'[Trp]'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">grid</span> <span class="cm-variable">on</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% find the maximun</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">clc</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;">[<span class="cm-variable">m</span>, <span class="cm-variable">i</span>] = <span class="cm-builtin">max</span>(<span class="cm-variable">result</span>(:,<span class="cm-number">2</span>));</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">t2</span> = <span class="cm-variable">mint</span> <span class="cm-operator">+</span> (<span class="cm-variable">maxt</span><span class="cm-operator">-</span><span class="cm-variable">mint</span>)<span class="cm-operator">*</span><span class="cm-variable">i</span><span class="cm-operator">/</span><span class="cm-variable">n</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">fprintf</span>(<span class="cm-string">'When raising temperature at %dmin, the maximun output of Trp is %f. \n'</span>, <span class="cm-variable">t2</span>, <span class="cm-variable">m</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;">[<span class="cm-variable">t</span>, <span class="cm-variable">c</span>] = <span class="cm-variable">ode45</span>(<span class="cm-operator">@</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>) <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>, <span class="cm-number">0</span>, <span class="cm-number">10</span>, <span class="cm-variable">t2</span>, <span class="cm-number">1.2</span>)<span class="cm-operator">'</span>, <span class="cm-variable">tspan</span>, <span class="cm-variable">c0</span>);</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% figure 2</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">figure</span>();</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">plot</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">19</span>), <span class="cm-string">'LineWidth'</span>, <span class="cm-number">2</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">legend</span>(<span class="cm-string">'N'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">xlabel</span>(<span class="cm-string">'Time/min'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">ylabel</span>(<span class="cm-string">'Population Density'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">grid</span> <span class="cm-variable">on</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% figure 3</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">figure</span>();</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">plot</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">7</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">8</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">9</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">10</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">11</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">12</span>), <span class="cm-string">'LineWidth'</span>, <span class="cm-number">2</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">legend</span>(<span class="cm-string">'[placI]'</span>, <span class="cm-string">'[paroG]'</span>, <span class="cm-string">'[ptrpB]'</span>, <span class="cm-string">'[ptrpA]'</span>, <span class="cm-string">'[pcI857]'</span>, <span class="cm-string">'[ppykA]'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">xlabel</span>(<span class="cm-string">'Time/min'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">ylabel</span>(<span class="cm-string">'Concetration'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">grid</span> <span class="cm-variable">on</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">% figure 4</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">figure</span>();</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">plot</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">18</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">13</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">14</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">15</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">16</span>), <span class="cm-variable">t</span>, <span class="cm-variable">c</span>(:, <span class="cm-number">17</span>), <span class="cm-string">'LineWidth'</span>, <span class="cm-number">2</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">legend</span>(<span class="cm-string">'[Glc]'</span>, <span class="cm-string">'[PEP]'</span>, <span class="cm-string">'[DAHP]'</span>, <span class="cm-string">'[Pyr]'</span>, <span class="cm-string">'[3IGP]'</span>, <span class="cm-string">'[Trp]'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">xlabel</span>(<span class="cm-string">'Time/min'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">ylabel</span>(<span class="cm-string">'Concetration'</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-variable">axis</span>([<span class="cm-number">0</span> <span class="cm-number">3000</span> <span class="cm-number">0</span> <span class="cm-number">20</span>]);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">grid</span> <span class="cm-variable">on</span>;</span></pre>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        <div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 1481px;">
 +
        </div>
 +
        <div class="CodeMirror-gutters" style="display: none; height: 1481px;"></div>
 +
        </div>
 +
        </div>
 +
        </pre>
 +
        <p><code>odefun.m</code></p>
 +
        <pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="matlab"
 +
            style="break-inside: unset;"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang="matlab"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 9.38889px; left: 7.98611px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre>
 +
        </div>
 +
        <div class="CodeMirror-measure"></div>
 +
        <div style="position: relative; z-index: 1;"></div>
 +
        <div class="CodeMirror-code" role="presentation" style="">
 +
            <div class="CodeMirror-activeline" style="position: relative;">
 +
                <div class="CodeMirror-activeline-background CodeMirror-linebackground"></div>
 +
                <div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;">
 
                 </div>
 
                 </div>
                 <div class="col-lg-1"></div>
+
                 <pre class=" CodeMirror-line "
 +
                    role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-builtin">function</span> <span class="cm-variable">dc</span> = <span class="cm-variable">odefcn</span>(<span class="cm-variable">t</span>, <span class="cm-variable">c</span>, <span class="cm-variable">t1</span>, <span class="cm-variable">iptg1</span>, <span class="cm-variable">t2</span>, <span class="cm-variable">alpha</span>)</span></pre>
 +
            </div>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% lambdaPR: lacI, aroG, trpB, trpA</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">lambdaPR</span> = <span class="cm-number">0.5</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphal0</span> = <span class="cm-number">0.5</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphal1</span> = <span class="cm-number">1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% Plac: cl857, pykA</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">Plac</span> = <span class="cm-number">1.3</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphap0</span> = <span class="cm-number">0.5</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">alphap1</span> = <span class="cm-number">1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% RFP</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynr</span> = <span class="cm-number">0.019</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kder</span> = <span class="cm-number">0.0013</span><span class="cm-operator">*</span><span class="cm-number">10</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynr</span> = <span class="cm-number">0.47</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpder</span> = <span class="cm-number">0.136</span><span class="cm-operator">*</span><span class="cm-number">10</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% lacI</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kl</span> = <span class="cm-number">0.626</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynl</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdel</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynl</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdel</span> = <span class="cm-variable">kl</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% aroG</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ka</span> = <span class="cm-number">0.644</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksyna</span> = <span class="cm-variable">ka</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdea</span> = <span class="cm-variable">ka</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsyna</span> = <span class="cm-variable">ka</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdea</span> = <span class="cm-variable">ka</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% trpB</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kB</span> = <span class="cm-number">0.568</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynB</span> = <span class="cm-variable">kB</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdeB</span> = <span class="cm-variable">kB</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynB</span> = <span class="cm-variable">kB</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdeB</span> = <span class="cm-variable">kB</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% trpA</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kA</span> = <span class="cm-number">0.84</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynA</span> = <span class="cm-variable">kA</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdeA</span> = <span class="cm-variable">kA</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynA</span> = <span class="cm-variable">kA</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdeA</span> = <span class="cm-variable">kA</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% cI857</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kc</span> = <span class="cm-number">0.95</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksync</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdec</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsync</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdec</span> = <span class="cm-variable">kc</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% pykA</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kp</span> = <span class="cm-number">0.47</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">ksynp</span> = <span class="cm-variable">kp</span><span class="cm-operator">*</span><span class="cm-variable">ksynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kdep</span> = <span class="cm-variable">kp</span><span class="cm-operator">*</span><span class="cm-variable">kder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpsynp</span> = <span class="cm-variable">kp</span><span class="cm-operator">*</span><span class="cm-variable">kpsynr</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kpdep</span> = <span class="cm-variable">kp</span><span class="cm-operator">*</span><span class="cm-variable">kpder</span>;</span></pre>
 +
            <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
 +
</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% reaction 1</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">vmax1</span> = <span class="cm-number">0.1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">km1</span> = <span class="cm-number">0.005</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% reaction 2</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">vmax2</span> = <span class="cm-number">0.03</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">km2</span> = <span class="cm-number">0.002</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% reaction aroG</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kcataroG</span> = <span class="cm-number">0.1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kmaroG</span> = <span class="cm-number">0.009</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% reaction pykA</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kcatpykA</span> = <span class="cm-number">0.15</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kmpykA</span> = <span class="cm-number">0.05</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% reaction trpAB</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kcattrpAB</span> = <span class="cm-number">0.009</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">kmtrpAB</span> = <span class="cm-number">0.1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% population dynamics</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">K</span> = <span class="cm-number">6.08</span><span class="cm-operator">*</span><span class="cm-number">10</span><span class="cm-operator">^</span><span class="cm-number">9</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">r</span> = (<span class="cm-number">3.1364</span><span class="cm-operator">*</span><span class="cm-number">10</span><span class="cm-operator">^</span>(<span class="cm-number">-04</span>)<span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">15</span>)<span class="cm-number">+0.0052</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">k</span> = <span class="cm-number">5</span><span class="cm-operator">*</span><span class="cm-number">10</span><span class="cm-operator">^</span>(<span class="cm-number">-11</span>);</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% add IPTG</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">iptg</span> = <span class="cm-number">0</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">if</span> (<span class="cm-variable">t</span><span class="cm-operator">&gt;</span><span class="cm-variable">t1</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-variable">iptg</span> = <span class="cm-variable">iptg1</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">end</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% raise temperature</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">if</span> (<span class="cm-variable">t</span><span class="cm-operator">&gt;</span><span class="cm-variable">t2</span>)</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-variable">iptg</span> = <span class="cm-number">0</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-variable">alphal1</span> = <span class="cm-variable">alpha</span>;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-keyword">end</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;</span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-comment">% differential equations</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">1</span>) = (<span class="cm-variable">ksynl</span><span class="cm-operator">*</span><span class="cm-variable">alphal0</span><span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">+</span> <span class="cm-variable">ksynl</span><span class="cm-operator">*</span><span class="cm-variable">alphal1</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">11</span>)))<span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">-</span> <span class="cm-variable">kdel</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">1</span>)); <span class="cm-comment">% [rlacI]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">2</span>) = (<span class="cm-variable">ksyna</span><span class="cm-operator">*</span><span class="cm-variable">alphal0</span><span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">+</span> <span class="cm-variable">ksyna</span><span class="cm-operator">*</span><span class="cm-variable">alphal1</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">11</span>)))<span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">-</span> <span class="cm-variable">kdea</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">2</span>)); <span class="cm-comment">% [raroG]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">3</span>) = (<span class="cm-variable">ksynB</span><span class="cm-operator">*</span><span class="cm-variable">alphal0</span><span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">+</span> <span class="cm-variable">ksynB</span><span class="cm-operator">*</span><span class="cm-variable">alphal1</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">11</span>)))<span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">-</span> <span class="cm-variable">kdeB</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">3</span>)); <span class="cm-comment">% [rtrpB]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">4</span>) = (<span class="cm-variable">ksynA</span><span class="cm-operator">*</span><span class="cm-variable">alphal0</span><span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">+</span> <span class="cm-variable">ksynA</span><span class="cm-operator">*</span><span class="cm-variable">alphal1</span><span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">11</span>)))<span class="cm-operator">*</span><span class="cm-variable">lambdaPR</span> <span class="cm-operator">-</span> <span class="cm-variable">kdeB</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">4</span>)); <span class="cm-comment">% [rtrpA]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">5</span>) = (<span class="cm-variable">ksync</span><span class="cm-operator">*</span><span class="cm-variable">alphap0</span><span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">+</span> <span class="cm-variable">ksync</span><span class="cm-operator">*</span><span class="cm-variable">alphap1</span><span class="cm-operator">*</span>(<span class="cm-variable">iptg</span><span class="cm-operator">/</span>(<span class="cm-variable">iptg</span><span class="cm-operator">+</span><span class="cm-variable">c</span>(<span class="cm-number">7</span>)))<span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">-</span> <span class="cm-variable">kdec</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">5</span>)); <span class="cm-comment">% [rcI857]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">6</span>) = (<span class="cm-variable">ksynp</span><span class="cm-operator">*</span><span class="cm-variable">alphap0</span><span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">+</span> <span class="cm-variable">ksynp</span><span class="cm-operator">*</span><span class="cm-variable">alphap1</span><span class="cm-operator">*</span>(<span class="cm-variable">iptg</span><span class="cm-operator">/</span>(<span class="cm-variable">iptg</span><span class="cm-operator">+</span><span class="cm-variable">c</span>(<span class="cm-number">7</span>)))<span class="cm-operator">*</span><span class="cm-variable">Plac</span> <span class="cm-operator">-</span> <span class="cm-variable">kder</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">6</span>)); <span class="cm-comment">% [rpykA]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">7</span>) = (<span class="cm-variable">kpsynl</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">1</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdel</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">7</span>)); <span class="cm-comment">% [placI]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">8</span>) = (<span class="cm-variable">kpsyna</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">2</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdea</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">8</span>)); <span class="cm-comment">% [paroG]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">9</span>) = (<span class="cm-variable">kpsynB</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">3</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdeB</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">9</span>)); <span class="cm-comment">% [ptrpB]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">10</span>) = (<span class="cm-variable">kpsynA</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">4</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdeA</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">10</span>)); <span class="cm-comment">% [ptrpA]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">11</span>) = (<span class="cm-variable">kpsync</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">5</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdec</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">11</span>)); <span class="cm-comment">% [pcI857]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">12</span>) = (<span class="cm-variable">kpsynp</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">6</span>) <span class="cm-operator">-</span> <span class="cm-variable">kpdep</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">12</span>)); <span class="cm-comment">% [ppykA]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">13</span>) = <span class="cm-variable">k</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">19</span>)<span class="cm-operator">*</span>(<span class="cm-variable">vmax1</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">18</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">18</span>)<span class="cm-operator">+</span><span class="cm-variable">km1</span>)<span class="cm-operator">-</span><span class="cm-variable">kcataroG</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">8</span>)<span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">13</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">13</span>)<span class="cm-operator">+</span><span class="cm-variable">kmaroG</span>)<span class="cm-operator">-</span><span class="cm-variable">kcatpykA</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">12</span>)<span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">13</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">13</span>)<span class="cm-operator">+</span><span class="cm-variable">kmpykA</span>)); <span class="cm-comment">% [PEP]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">14</span>) = <span class="cm-variable">k</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">19</span>)<span class="cm-operator">*</span>(<span class="cm-variable">kcataroG</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">8</span>)<span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">13</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">13</span>)<span class="cm-operator">+</span><span class="cm-variable">kmaroG</span>)<span class="cm-operator">-</span><span class="cm-variable">vmax2</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">14</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">14</span>)<span class="cm-operator">+</span><span class="cm-variable">km2</span>)); <span class="cm-comment">% [DAHP]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">15</span>) = <span class="cm-variable">k</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">19</span>)<span class="cm-operator">*</span>(<span class="cm-variable">kcatpykA</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">12</span>)<span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">13</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">13</span>)<span class="cm-operator">+</span><span class="cm-variable">kmpykA</span>)); <span class="cm-comment">% [Pyr]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">16</span>) = <span class="cm-variable">k</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">19</span>)<span class="cm-operator">*</span>(<span class="cm-variable">vmax2</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">14</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">14</span>)<span class="cm-operator">+</span><span class="cm-variable">km2</span>)<span class="cm-operator">-</span><span class="cm-variable">kcattrpAB</span><span class="cm-operator">*</span>(<span class="cm-variable">c</span>(<span class="cm-number">3</span>)<span class="cm-operator">+</span><span class="cm-variable">c</span>(<span class="cm-number">4</span>))<span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">16</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">16</span>)<span class="cm-operator">+</span><span class="cm-variable">kmtrpAB</span>)); <span class="cm-comment">% [3IGP]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">17</span>) = <span class="cm-variable">k</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">19</span>)<span class="cm-operator">*</span>(<span class="cm-variable">kcattrpAB</span><span class="cm-operator">*</span>(<span class="cm-variable">c</span>(<span class="cm-number">3</span>)<span class="cm-operator">+</span><span class="cm-variable">c</span>(<span class="cm-number">4</span>))<span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">16</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">16</span>)<span class="cm-operator">+</span><span class="cm-variable">kmtrpAB</span>)); <span class="cm-comment">% [Trp]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">18</span>) = <span class="cm-variable">k</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">19</span>)<span class="cm-operator">*</span>(<span class="cm-operator">-</span><span class="cm-variable">vmax1</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">18</span>)<span class="cm-operator">/</span>(<span class="cm-variable">c</span>(<span class="cm-number">18</span>)<span class="cm-operator">+</span><span class="cm-variable">km1</span>)); <span class="cm-comment">% [Glc]</span></span></pre>
 +
            <pre class=" CodeMirror-line "
 +
                role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-variable">dc</span>(<span class="cm-number">19</span>) = <span class="cm-variable">r</span><span class="cm-operator">*</span><span class="cm-variable">c</span>(<span class="cm-number">19</span>)<span class="cm-operator">*</span>(<span class="cm-number">1</span><span class="cm-operator">-</span><span class="cm-variable">c</span>(<span class="cm-number">19</span>)<span class="cm-operator">/</span><span class="cm-variable">K</span>); <span class="cm-comment">% N</span></span></pre>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        </div>
 +
        <div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 2847px;">
 +
        </div>
 +
        <div class="CodeMirror-gutters" style="display: none; height: 2847px;"></div>
 +
        </div>
 +
        </div>
 +
        </pre>
 +
        <p>&nbsp;</p>
 +
    </section>
 +
    </div>
 +
    </div>
 +
    <div class="col-lg-1"></div>
 
     </section>
 
     </section>
 
     <!--JS-->
 
     <!--JS-->

Revision as of 06:44, 17 October 2021

Team:XJTU-China/Model

Model

Model

Summary

Our modeling includes five steps:

  • Establish the model of population dynamics, which displays the population change of E. coli;
  • Establish the model of toggle switch, where the production of red fluorescent protein (RFP) and green fluorescent protein (GFP) shows the effect of toggle switch;
  • Establish the model of genetic circuits based on the model of toggle switch;
  • Establish the model of synthesis of tryptophan based on Michaelis-Menten equation;
  • Finally, integrate the above models to establish the model of production.

Establishment of model

Due to the size limit of iGEM wiki, please click the following buttons to view our models establishment!

The Model of Population Dynamics The Model of Toggle Switch The Model of Genetic Circuits The Model of Synthesis of Tryptophan The Model of Production

Result and conclusion

The population density of E. coli

Here, K = 6.08 × 10 9 CFU / ml . The figure below shows the population density of E. coli.

  • When N < K 2 , the population density grows exponentially. And when N > K 2 , the environmental resources have a restrictive effect on E. coli. Finally the population density approaches K ;
  • The population density reach balance at about 33 h .

The effect of toggle switch

When t = 1000 min , add IPTG. When t = 2000 min , remove IPTG and raise temperature. The results are shown in the figure below.

  • The change rates of [ r l a c I ] and [ r G F P ] decrease as [ p c I 857 ] increases. The change rates of [ r c I 857 ] and [ r R F P ] decrease as [ p l a c I ] increases. [ I P T G ] restrains the production of RFP when its concentration is low, and promotes the production when its concentration is high;
  • At first, the concentration of GFP is more than the concentration of RFP, and green fluorescence appears. After adding IPTG, the concentration of RFP outnumbered GFP, and red fluorescence appears. After removing IPTG and raising temperature, the rank of RFP and GFP exchanged again, and green fluorescence appears.

The product of genetic circuits

Add IPTG at the beginning, and when t = 1170 min , remove IPTG and raise temperature. The figure below shows the concentration change of gene product.

  • There are two stable states during the period of time;
  • After raising temperature at 1170 min , the concentrations of cl857 and pykA go down, while the concentrations of lacI, aroG, trpA and trpB go up.

The output of tryptophan

Add IPTG at the beginning, and when t = 1170 min , remove IPTG and raise temperature. The figure below shows the concentration change during the synthesis of tryptophan.

  • When reaction starts, Glc begin to convert to PEP, and PEP immediately turns into Pyr and DAHP;
  • The concentration of DAHP reaches maximum at about 1900 min , and after that it goes down;
  • The product of DAHP is 3IGP, and 3IGP immediately converts to Trp;
  • The final products of reactions are Pyr and Trp, whose concentrations are stable at 3000 min .

The best production strategy

Let the initial value of [ G l c ] be 20 . Add IPTG at the beginning, and change the time of raising the temperature. Let t 2 be the time of raising temperature. The final outputs of [ P y r ] and [ T r p ] are shown in the figure below.

  • When t 2 < 1170 min , the output of tryptophan increases slowly as t 2 increases;
  • When t 2 = 1170 min , the maximun output of tryptophan is 15.43 ( 77.15 % of 20 );
  • When 1170 min < t 2 < 2000 min , the output of tryptophan drops sharply as t 2 increases;
  • Finally, when t 2 > 2000 min , the output of tryptophan is around 8 ( 40 % of 20 ).

Reference

[1] Verhulst, P.-F. "Recherches mathématiques sur la loi d'accroissement de la population." Nouv. mém. de l'Academie Royale des Sci. et Belles-Lettres de Bruxelles 18, 1-41, 1845.

[2] Verhulst, P.-F. "Deuxième mémoire sur la loi d'accroissement de la population." Mém. de l'Academie Royale des Sci., des Lettres et des Beaux-Arts de Belgique 20, 1-32, 1847.

[3] XIAN YIN, HYUN-DONG SHIN, et al. 2017. P gas, a Low-pH-Induced Promoter, as a Tool for Dynamic Control of Gene Expression for Metabolic Engineering of Aspergillus niger. Appl Environ Microbiol. [J/OL], 2;83(6):e03222-16.

[4] https://www.vedantu.com/chemistry/michaelis-menten-kinetics


Code

Using MATLAB R2019b.

The model of population dynamics

main.m

odefun.m

The model of toggle switch

main.m

odefun.m

The model of genetic circuits

main.m

odefun.m

The model of synthesis of tryptophan

main.m

odefun.m

The model of production

main.m

odefun.m

 

contact us

Xi'an Jiaotong University
28 Xianning West Road
Xi'an, Shaanxi, China, 710049
xjtu_igem@xjtu.edu.cn

Made with ❤️ by