Skip to content

Commit 5b1554e

Browse files
committed
fix #63
1 parent b11f39c commit 5b1554e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

paper/paper.pdf

267 Bytes
Binary file not shown.

paper/paper.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,9 @@ \subsection{Example}
354354
\end{lstlisting}
355355
\item Add the selection logical constraints using the \verb|choose!| function. The first constraint enforces that only one reactor is selected (i.e., $Y_{R_1} \ \underline{\vee} \ Y_{R_2}$). The second constraint enforces that the separation system be defined only if the second reactor ($R_2$) is selected. This constraint is equivalent to the proposition $Y_{R_2} \Leftrightarrow Y_{S_1} \ \underline{\vee} \ Y_{S_2}$.
356356
\begin{lstlisting}[language = Julia]
357-
choose!(1, YR[1], YR[2]; mode = :exactly)
358-
choose!(YR[2], YS[1], YS[2]; mode = :exactly)
357+
YR, YS = m[:YR], m[:YS]
358+
choose!(m, 1, YR[1], YR[2]; mode = :exactly)
359+
choose!(m, YR[2], YS[1], YS[2]; mode = :exactly)
359360
\end{lstlisting}
360361
\item Add the objective function and optimize.
361362
\begin{lstlisting}[language = Julia]

0 commit comments

Comments
 (0)