You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: notebooks/2/Logical_Modeling_GDP.html
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -689,8 +689,8 @@ <h3><span class="section-number">2.1.4.3. </span>Logical Statements and Conjucti
689
689
<p><em>The following excerpts are from Section 15.7 in Biegler, Grossmann, and Westerberg (1997).</em></p>
690
690
<p>The three step procedure below shows how to convert logical statements into conjuctive normal form:</p>
691
691
<p>Step 1: Replace the implication by its equivalent disjunction. Example:</p>
692
-
<divclass="amsmath math notranslate nohighlight" id="equation-88bd1afb-bb99-4c79-baf4-7bb2b2736df9">
693
-
<spanclass="eqno">(2.1)<aclass="headerlink" href="#equation-88bd1afb-bb99-4c79-baf4-7bb2b2736df9" title="Permalink to this equation">#</a></span>\[\begin{equation}
692
+
<divclass="amsmath math notranslate nohighlight" id="equation-1492ff8f-640c-45ff-8dd4-fe5cd0dadf32">
693
+
<spanclass="eqno">(2.1)<aclass="headerlink" href="#equation-1492ff8f-640c-45ff-8dd4-fe5cd0dadf32" title="Permalink to this equation">#</a></span>\[\begin{equation}
@@ -735,8 +735,8 @@ <h3><span class="section-number">2.1.4.3. </span>Logical Statements and Conjucti
735
735
</div>
736
736
</div>
737
737
</details><p>Step 2: Distribute the negation by applying DeMorgan’s Theorem. Examples:</p>
738
-
<divclass="amsmath math notranslate nohighlight" id="equation-c0a85a6b-a3a0-42f0-b9ee-526bc6ad08ee">
739
-
<spanclass="eqno">(2.2)<aclass="headerlink" href="#equation-c0a85a6b-a3a0-42f0-b9ee-526bc6ad08ee" title="Permalink to this equation">#</a></span>\[\begin{equation}
738
+
<divclass="amsmath math notranslate nohighlight" id="equation-547eb6a6-c578-4e13-89cd-27411b3a6613">
739
+
<spanclass="eqno">(2.2)<aclass="headerlink" href="#equation-547eb6a6-c578-4e13-89cd-27411b3a6613" title="Permalink to this equation">#</a></span>\[\begin{equation}
@@ -781,8 +781,8 @@ <h3><span class="section-number">2.1.4.3. </span>Logical Statements and Conjucti
781
781
</div>
782
782
<pclass="sd-card-text">The example holds.</p>
783
783
</div>
784
-
</details><divclass="amsmath math notranslate nohighlight" id="equation-7402adea-f735-463b-937c-610a4a2e7bf3">
785
-
<spanclass="eqno">(2.3)<aclass="headerlink" href="#equation-7402adea-f735-463b-937c-610a4a2e7bf3" title="Permalink to this equation">#</a></span>\[\begin{equation}
784
+
</details><divclass="amsmath math notranslate nohighlight" id="equation-fd82b6d9-6c04-4099-8eeb-96fa0d8b6f0d">
785
+
<spanclass="eqno">(2.3)<aclass="headerlink" href="#equation-fd82b6d9-6c04-4099-8eeb-96fa0d8b6f0d" title="Permalink to this equation">#</a></span>\[\begin{equation}
@@ -828,8 +828,8 @@ <h3><span class="section-number">2.1.4.3. </span>Logical Statements and Conjucti
828
828
<pclass="sd-card-text">The example holds.</p>
829
829
</div>
830
830
</details><p>Step 3: Recursively distribute the <spanclass="math notranslate nohighlight">\(\textbf{OR}\)</span> over the <spanclass="math notranslate nohighlight">\(\textbf{AND}\)</span> by using the following equivalence. Example:</p>
831
-
<divclass="amsmath math notranslate nohighlight" id="equation-90cd6e9f-02f3-4a88-9518-4af1a53b8ef2">
832
-
<spanclass="eqno">(2.4)<aclass="headerlink" href="#equation-90cd6e9f-02f3-4a88-9518-4af1a53b8ef2" title="Permalink to this equation">#</a></span>\[\begin{equation}
831
+
<divclass="amsmath math notranslate nohighlight" id="equation-c100e8f1-eb73-4f10-8435-90d31ac09e7b">
832
+
<spanclass="eqno">(2.4)<aclass="headerlink" href="#equation-c100e8f1-eb73-4f10-8435-90d31ac09e7b" title="Permalink to this equation">#</a></span>\[\begin{equation}
<p>When modeling disjunctions, we will have to represent logical constraints that involve continuous variables.</p>
1008
1008
<sectionid="general-notation">
1009
1009
<h3><spanclass="section-number">2.1.5.1. </span>General Notation<aclass="headerlink" href="#general-notation" title="Link to this heading">#</a></h3>
1010
-
<divclass="amsmath math notranslate nohighlight" id="equation-b55a70e5-6725-468b-bae9-e5a7121b54d4">
1011
-
<spanclass="eqno">(2.5)<aclass="headerlink" href="#equation-b55a70e5-6725-468b-bae9-e5a7121b54d4" title="Permalink to this equation">#</a></span>\[\begin{equation}
1010
+
<divclass="amsmath math notranslate nohighlight" id="equation-a67e1934-4f0e-42a0-9b9a-b944be4466dc">
1011
+
<spanclass="eqno">(2.5)<aclass="headerlink" href="#equation-a67e1934-4f0e-42a0-9b9a-b944be4466dc" title="Permalink to this equation">#</a></span>\[\begin{equation}
<li><p>If <em>reactor 2</em> is selected, then pressure <spanclass="math notranslate nohighlight">\(P\)</span> must be between <spanclass="math notranslate nohighlight">\(20\)</span> and <spanclass="math notranslate nohighlight">\(30\)</span> atmospheres.</p></li>
1057
1057
</ul>
1058
1058
<p><strong>Linear Disjunction Form:</strong></p>
1059
-
<divclass="amsmath math notranslate nohighlight" id="equation-307c7665-77e0-4295-b2e4-3c5b221a0e16">
1060
-
<spanclass="eqno">(2.6)<aclass="headerlink" href="#equation-307c7665-77e0-4295-b2e4-3c5b221a0e16" title="Permalink to this equation">#</a></span>\[\begin{equation}
1059
+
<divclass="amsmath math notranslate nohighlight" id="equation-793d63d3-84fe-4b27-978a-aae1c166b9aa">
1060
+
<spanclass="eqno">(2.6)<aclass="headerlink" href="#equation-793d63d3-84fe-4b27-978a-aae1c166b9aa" title="Permalink to this equation">#</a></span>\[\begin{equation}
1061
1061
\lor_{i \in D}
1062
1062
\begin{bmatrix}
1063
1063
A_{i}x \leq b_{i}(x)
1064
1064
\end{bmatrix}
1065
1065
\end{equation}\]</div>
1066
1066
<p><strong>Applied to the Reactor Problem:</strong></p>
1067
-
<divclass="amsmath math notranslate nohighlight" id="equation-263545db-509f-4c88-b8b9-e31b6fbb900e">
1068
-
<spanclass="eqno">(2.7)<aclass="headerlink" href="#equation-263545db-509f-4c88-b8b9-e31b6fbb900e" title="Permalink to this equation">#</a></span>\[\begin{equation}
1067
+
<divclass="amsmath math notranslate nohighlight" id="equation-b824f9d7-d358-4c7a-b4ba-7020fca75b1e">
1068
+
<spanclass="eqno">(2.7)<aclass="headerlink" href="#equation-b824f9d7-d358-4c7a-b4ba-7020fca75b1e" title="Permalink to this equation">#</a></span>\[\begin{equation}
1069
1069
\begin{bmatrix}
1070
1070
y_1\\
1071
1071
P \leq 10\\
@@ -1149,21 +1149,21 @@ <h3><span class="section-number">2.1.6.2. </span>Transform and Solve with Big-M
1149
1149
<sectionid="big-m-relaxation-approach">
1150
1150
<h3><spanclass="section-number">2.1.6.3. </span>Big-M Relaxation Approach<aclass="headerlink" href="#big-m-relaxation-approach" title="Link to this heading">#</a></h3>
1151
1151
<p><strong>General Notation:</strong></p>
1152
-
<divclass="amsmath math notranslate nohighlight" id="equation-2a686b36-3e88-45e6-8461-9f17efa58e52">
1153
-
<spanclass="eqno">(2.8)<aclass="headerlink" href="#equation-2a686b36-3e88-45e6-8461-9f17efa58e52" title="Permalink to this equation">#</a></span>\[\begin{equation}
1152
+
<divclass="amsmath math notranslate nohighlight" id="equation-8df56953-df18-4e56-b06e-389f3f44a43f">
1153
+
<spanclass="eqno">(2.8)<aclass="headerlink" href="#equation-8df56953-df18-4e56-b06e-389f3f44a43f" title="Permalink to this equation">#</a></span>\[\begin{equation}
1154
1154
A_{i}(x) \leq b_{i} + M_{i}(1-y_{i}) \ , \ \forall i \in D
1155
1155
\end{equation}\]</div>
1156
-
<divclass="amsmath math notranslate nohighlight" id="equation-6b8cfee9-3405-45a8-9b51-6d04588e0c8c">
1157
-
<spanclass="eqno">(2.9)<aclass="headerlink" href="#equation-6b8cfee9-3405-45a8-9b51-6d04588e0c8c" title="Permalink to this equation">#</a></span>\[\begin{equation}
1156
+
<divclass="amsmath math notranslate nohighlight" id="equation-cc47056c-8c50-4253-a54c-ad9830193a5c">
1157
+
<spanclass="eqno">(2.9)<aclass="headerlink" href="#equation-cc47056c-8c50-4253-a54c-ad9830193a5c" title="Permalink to this equation">#</a></span>\[\begin{equation}
1158
1158
\sum_{i \in D} y_{i} = 1
1159
1159
\end{equation}\]</div>
1160
-
<divclass="amsmath math notranslate nohighlight" id="equation-cc931efd-1327-4f7b-ae4e-6e0fb01c1a72">
1161
-
<spanclass="eqno">(2.10)<aclass="headerlink" href="#equation-cc931efd-1327-4f7b-ae4e-6e0fb01c1a72" title="Permalink to this equation">#</a></span>\[\begin{equation}
1160
+
<divclass="amsmath math notranslate nohighlight" id="equation-f0d20539-82e5-4c03-bd9e-f6e8fbb1a24a">
1161
+
<spanclass="eqno">(2.10)<aclass="headerlink" href="#equation-f0d20539-82e5-4c03-bd9e-f6e8fbb1a24a" title="Permalink to this equation">#</a></span>\[\begin{equation}
1162
1162
y_{i} \in \{0,1\} \ , \ \forall i \in D
1163
1163
\end{equation}\]</div>
1164
1164
<p><strong>Applied to the Reactor Problem:</strong></p>
1165
-
<divclass="amsmath math notranslate nohighlight" id="equation-1b821df3-e053-4630-bec3-10ad124586ed">
1166
-
<spanclass="eqno">(2.11)<aclass="headerlink" href="#equation-1b821df3-e053-4630-bec3-10ad124586ed" title="Permalink to this equation">#</a></span>\[\begin{equation}
1165
+
<divclass="amsmath math notranslate nohighlight" id="equation-18261702-834a-412c-9800-8d9d13823e03">
1166
+
<spanclass="eqno">(2.11)<aclass="headerlink" href="#equation-18261702-834a-412c-9800-8d9d13823e03" title="Permalink to this equation">#</a></span>\[\begin{equation}
<p><spanclass="math notranslate nohighlight">\(z_{i}\)</span>: continuous variables separated into as many new variables as there are terms for the disjunctions.</p>
1653
1653
<p><strong>Applied to the Reactor Problem:</strong><br></p>
1654
-
<divclass="amsmath math notranslate nohighlight" id="equation-cd43e01d-07fc-4b06-b1a2-f062055a2d81">
1655
-
<spanclass="eqno">(2.12)<aclass="headerlink" href="#equation-cd43e01d-07fc-4b06-b1a2-f062055a2d81" title="Permalink to this equation">#</a></span>\[\begin{equation}
1654
+
<divclass="amsmath math notranslate nohighlight" id="equation-b3ac98c1-da03-419a-bda6-0158796afdc1">
1655
+
<spanclass="eqno">(2.12)<aclass="headerlink" href="#equation-b3ac98c1-da03-419a-bda6-0158796afdc1" title="Permalink to this equation">#</a></span>\[\begin{equation}
0 commit comments