Skip to content

Commit b8d70f4

Browse files
committed
Update documentation
1 parent fab16ce commit b8d70f4

14 files changed

+174
-174
lines changed

notebooks/2/Logical_Modeling_GDP.html

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ <h3><span class="section-number">2.1.4.3. </span>Logical Statements and Conjucti
689689
<p><em>The following excerpts are from Section 15.7 in Biegler, Grossmann, and Westerberg (1997).</em></p>
690690
<p>The three step procedure below shows how to convert logical statements into conjuctive normal form:</p>
691691
<p>Step 1: Replace the implication by its equivalent disjunction. Example:</p>
692-
<div class="amsmath math notranslate nohighlight" id="equation-88bd1afb-bb99-4c79-baf4-7bb2b2736df9">
693-
<span class="eqno">(2.1)<a class="headerlink" href="#equation-88bd1afb-bb99-4c79-baf4-7bb2b2736df9" title="Permalink to this equation">#</a></span>\[\begin{equation}
692+
<div class="amsmath math notranslate nohighlight" id="equation-1492ff8f-640c-45ff-8dd4-fe5cd0dadf32">
693+
<span class="eqno">(2.1)<a class="headerlink" href="#equation-1492ff8f-640c-45ff-8dd4-fe5cd0dadf32" title="Permalink to this equation">#</a></span>\[\begin{equation}
694694
P_{1} \Rightarrow P_{2} \Leftrightarrow \neg P_{1} \lor P_{2} \tag{15.18}
695695
\end{equation}\]</div>
696696
<details class="sd-sphinx-override sd-dropdown sd-card sd-mb-3">
@@ -735,8 +735,8 @@ <h3><span class="section-number">2.1.4.3. </span>Logical Statements and Conjucti
735735
</div>
736736
</div>
737737
</details><p>Step 2: Distribute the negation by applying DeMorgan’s Theorem. Examples:</p>
738-
<div class="amsmath math notranslate nohighlight" id="equation-c0a85a6b-a3a0-42f0-b9ee-526bc6ad08ee">
739-
<span class="eqno">(2.2)<a class="headerlink" href="#equation-c0a85a6b-a3a0-42f0-b9ee-526bc6ad08ee" title="Permalink to this equation">#</a></span>\[\begin{equation}
738+
<div class="amsmath math notranslate nohighlight" id="equation-547eb6a6-c578-4e13-89cd-27411b3a6613">
739+
<span class="eqno">(2.2)<a class="headerlink" href="#equation-547eb6a6-c578-4e13-89cd-27411b3a6613" title="Permalink to this equation">#</a></span>\[\begin{equation}
740740
\neg (P_{1} \land P_{2}) \Leftrightarrow \neg P_{1} \lor \neg P_{2}\tag{15.19}
741741
\end{equation}\]</div>
742742
<details class="sd-sphinx-override sd-dropdown sd-card sd-mb-3">
@@ -781,8 +781,8 @@ <h3><span class="section-number">2.1.4.3. </span>Logical Statements and Conjucti
781781
</div>
782782
<p class="sd-card-text">The example holds.</p>
783783
</div>
784-
</details><div class="amsmath math notranslate nohighlight" id="equation-7402adea-f735-463b-937c-610a4a2e7bf3">
785-
<span class="eqno">(2.3)<a class="headerlink" href="#equation-7402adea-f735-463b-937c-610a4a2e7bf3" title="Permalink to this equation">#</a></span>\[\begin{equation}
784+
</details><div class="amsmath math notranslate nohighlight" id="equation-fd82b6d9-6c04-4099-8eeb-96fa0d8b6f0d">
785+
<span class="eqno">(2.3)<a class="headerlink" href="#equation-fd82b6d9-6c04-4099-8eeb-96fa0d8b6f0d" title="Permalink to this equation">#</a></span>\[\begin{equation}
786786
\neg (P_{1} \lor P_{2}) \Leftrightarrow \neg P_{1} \land \neg P_{2}\tag{15.20}
787787
\end{equation}\]</div>
788788
<details class="sd-sphinx-override sd-dropdown sd-card sd-mb-3">
@@ -828,8 +828,8 @@ <h3><span class="section-number">2.1.4.3. </span>Logical Statements and Conjucti
828828
<p class="sd-card-text">The example holds.</p>
829829
</div>
830830
</details><p>Step 3: Recursively distribute the <span class="math notranslate nohighlight">\(\textbf{OR}\)</span> over the <span class="math notranslate nohighlight">\(\textbf{AND}\)</span> by using the following equivalence. Example:</p>
831-
<div class="amsmath math notranslate nohighlight" id="equation-90cd6e9f-02f3-4a88-9518-4af1a53b8ef2">
832-
<span class="eqno">(2.4)<a class="headerlink" href="#equation-90cd6e9f-02f3-4a88-9518-4af1a53b8ef2" title="Permalink to this equation">#</a></span>\[\begin{equation}
831+
<div class="amsmath math notranslate nohighlight" id="equation-c100e8f1-eb73-4f10-8435-90d31ac09e7b">
832+
<span class="eqno">(2.4)<a class="headerlink" href="#equation-c100e8f1-eb73-4f10-8435-90d31ac09e7b" title="Permalink to this equation">#</a></span>\[\begin{equation}
833833
(P_{1} \land P_{2}) \lor P_{3} \Leftrightarrow (P_{1} \lor P_{3}) \land (P_{2} \lor P_{3})\tag{15.21}
834834
\end{equation}\]</div>
835835
<details class="sd-sphinx-override sd-dropdown sd-card sd-mb-3">
@@ -1007,8 +1007,8 @@ <h2><span class="section-number">2.1.5. </span>Modeling Disjunctions<a class="he
10071007
<p>When modeling disjunctions, we will have to represent logical constraints that involve continuous variables.</p>
10081008
<section id="general-notation">
10091009
<h3><span class="section-number">2.1.5.1. </span>General Notation<a class="headerlink" href="#general-notation" title="Link to this heading">#</a></h3>
1010-
<div class="amsmath math notranslate nohighlight" id="equation-b55a70e5-6725-468b-bae9-e5a7121b54d4">
1011-
<span class="eqno">(2.5)<a class="headerlink" href="#equation-b55a70e5-6725-468b-bae9-e5a7121b54d4" title="Permalink to this equation">#</a></span>\[\begin{equation}
1010+
<div class="amsmath math notranslate nohighlight" id="equation-a67e1934-4f0e-42a0-9b9a-b944be4466dc">
1011+
<span class="eqno">(2.5)<a class="headerlink" href="#equation-a67e1934-4f0e-42a0-9b9a-b944be4466dc" title="Permalink to this equation">#</a></span>\[\begin{equation}
10121012
\lor_{i \in D_{R}}
10131013
\begin{bmatrix}
10141014
Y_{ik}\\
@@ -1056,16 +1056,16 @@ <h2><span class="section-number">2.1.6. </span>Example: The Reactor Problem<a cl
10561056
<li><p>If <em>reactor 2</em> is selected, then pressure <span class="math notranslate nohighlight">\(P\)</span> must be between <span class="math notranslate nohighlight">\(20\)</span> and <span class="math notranslate nohighlight">\(30\)</span> atmospheres.</p></li>
10571057
</ul>
10581058
<p><strong>Linear Disjunction Form:</strong></p>
1059-
<div class="amsmath math notranslate nohighlight" id="equation-307c7665-77e0-4295-b2e4-3c5b221a0e16">
1060-
<span class="eqno">(2.6)<a class="headerlink" href="#equation-307c7665-77e0-4295-b2e4-3c5b221a0e16" title="Permalink to this equation">#</a></span>\[\begin{equation}
1059+
<div class="amsmath math notranslate nohighlight" id="equation-793d63d3-84fe-4b27-978a-aae1c166b9aa">
1060+
<span class="eqno">(2.6)<a class="headerlink" href="#equation-793d63d3-84fe-4b27-978a-aae1c166b9aa" title="Permalink to this equation">#</a></span>\[\begin{equation}
10611061
\lor_{i \in D}
10621062
\begin{bmatrix}
10631063
A_{i}x \leq b_{i}(x)
10641064
\end{bmatrix}
10651065
\end{equation}\]</div>
10661066
<p><strong>Applied to the Reactor Problem:</strong></p>
1067-
<div class="amsmath math notranslate nohighlight" id="equation-263545db-509f-4c88-b8b9-e31b6fbb900e">
1068-
<span class="eqno">(2.7)<a class="headerlink" href="#equation-263545db-509f-4c88-b8b9-e31b6fbb900e" title="Permalink to this equation">#</a></span>\[\begin{equation}
1067+
<div class="amsmath math notranslate nohighlight" id="equation-b824f9d7-d358-4c7a-b4ba-7020fca75b1e">
1068+
<span class="eqno">(2.7)<a class="headerlink" href="#equation-b824f9d7-d358-4c7a-b4ba-7020fca75b1e" title="Permalink to this equation">#</a></span>\[\begin{equation}
10691069
\begin{bmatrix}
10701070
y_1\\
10711071
P \leq 10\\
@@ -1149,21 +1149,21 @@ <h3><span class="section-number">2.1.6.2. </span>Transform and Solve with Big-M
11491149
<section id="big-m-relaxation-approach">
11501150
<h3><span class="section-number">2.1.6.3. </span>Big-M Relaxation Approach<a class="headerlink" href="#big-m-relaxation-approach" title="Link to this heading">#</a></h3>
11511151
<p><strong>General Notation:</strong></p>
1152-
<div class="amsmath math notranslate nohighlight" id="equation-2a686b36-3e88-45e6-8461-9f17efa58e52">
1153-
<span class="eqno">(2.8)<a class="headerlink" href="#equation-2a686b36-3e88-45e6-8461-9f17efa58e52" title="Permalink to this equation">#</a></span>\[\begin{equation}
1152+
<div class="amsmath math notranslate nohighlight" id="equation-8df56953-df18-4e56-b06e-389f3f44a43f">
1153+
<span class="eqno">(2.8)<a class="headerlink" href="#equation-8df56953-df18-4e56-b06e-389f3f44a43f" title="Permalink to this equation">#</a></span>\[\begin{equation}
11541154
A_{i}(x) \leq b_{i} + M_{i}(1-y_{i}) \ , \ \forall i \in D
11551155
\end{equation}\]</div>
1156-
<div class="amsmath math notranslate nohighlight" id="equation-6b8cfee9-3405-45a8-9b51-6d04588e0c8c">
1157-
<span class="eqno">(2.9)<a class="headerlink" href="#equation-6b8cfee9-3405-45a8-9b51-6d04588e0c8c" title="Permalink to this equation">#</a></span>\[\begin{equation}
1156+
<div class="amsmath math notranslate nohighlight" id="equation-cc47056c-8c50-4253-a54c-ad9830193a5c">
1157+
<span class="eqno">(2.9)<a class="headerlink" href="#equation-cc47056c-8c50-4253-a54c-ad9830193a5c" title="Permalink to this equation">#</a></span>\[\begin{equation}
11581158
\sum_{i \in D} y_{i} = 1
11591159
\end{equation}\]</div>
1160-
<div class="amsmath math notranslate nohighlight" id="equation-cc931efd-1327-4f7b-ae4e-6e0fb01c1a72">
1161-
<span class="eqno">(2.10)<a class="headerlink" href="#equation-cc931efd-1327-4f7b-ae4e-6e0fb01c1a72" title="Permalink to this equation">#</a></span>\[\begin{equation}
1160+
<div class="amsmath math notranslate nohighlight" id="equation-f0d20539-82e5-4c03-bd9e-f6e8fbb1a24a">
1161+
<span class="eqno">(2.10)<a class="headerlink" href="#equation-f0d20539-82e5-4c03-bd9e-f6e8fbb1a24a" title="Permalink to this equation">#</a></span>\[\begin{equation}
11621162
y_{i} \in \{0,1\} \ , \ \forall i \in D
11631163
\end{equation}\]</div>
11641164
<p><strong>Applied to the Reactor Problem:</strong></p>
1165-
<div class="amsmath math notranslate nohighlight" id="equation-1b821df3-e053-4630-bec3-10ad124586ed">
1166-
<span class="eqno">(2.11)<a class="headerlink" href="#equation-1b821df3-e053-4630-bec3-10ad124586ed" title="Permalink to this equation">#</a></span>\[\begin{equation}
1165+
<div class="amsmath math notranslate nohighlight" id="equation-18261702-834a-412c-9800-8d9d13823e03">
1166+
<span class="eqno">(2.11)<a class="headerlink" href="#equation-18261702-834a-412c-9800-8d9d13823e03" title="Permalink to this equation">#</a></span>\[\begin{equation}
11671167
P \leq 10 + M_{1}(1-y_{1})\\
11681168
-P \leq -5 + M_{1}(1-y_{1})\\
11691169
P \leq 30 + M_{2}(1-y_{2})\\
@@ -1651,8 +1651,8 @@ <h3><span class="section-number">2.1.6.6. </span>Convex Hull Relaxation Approach
16511651
\]</div>
16521652
<p><span class="math notranslate nohighlight">\(z_{i}\)</span>: continuous variables separated into as many new variables as there are terms for the disjunctions.</p>
16531653
<p><strong>Applied to the Reactor Problem:</strong> <br></p>
1654-
<div class="amsmath math notranslate nohighlight" id="equation-cd43e01d-07fc-4b06-b1a2-f062055a2d81">
1655-
<span class="eqno">(2.12)<a class="headerlink" href="#equation-cd43e01d-07fc-4b06-b1a2-f062055a2d81" title="Permalink to this equation">#</a></span>\[\begin{equation}
1654+
<div class="amsmath math notranslate nohighlight" id="equation-b3ac98c1-da03-419a-bda6-0158796afdc1">
1655+
<span class="eqno">(2.12)<a class="headerlink" href="#equation-b3ac98c1-da03-419a-bda6-0158796afdc1" title="Permalink to this equation">#</a></span>\[\begin{equation}
16561656
P = P_{1} + P_{2} \\
16571657
P_{1} \leq 10y_{1}\\
16581658
P_{2} \leq 30y_{2} \\

0 commit comments

Comments
 (0)