Skip to content

Commit

Permalink
fix #63
Browse files Browse the repository at this point in the history
  • Loading branch information
hdavid16 committed May 12, 2023
1 parent b11f39c commit 5b1554e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified paper/paper.pdf
Binary file not shown.
5 changes: 3 additions & 2 deletions paper/paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,9 @@ \subsection{Example}
\end{lstlisting}
\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}$.
\begin{lstlisting}[language = Julia]
choose!(1, YR[1], YR[2]; mode = :exactly)
choose!(YR[2], YS[1], YS[2]; mode = :exactly)
YR, YS = m[:YR], m[:YS]
choose!(m, 1, YR[1], YR[2]; mode = :exactly)
choose!(m, YR[2], YS[1], YS[2]; mode = :exactly)
\end{lstlisting}
\item Add the objective function and optimize.
\begin{lstlisting}[language = Julia]
Expand Down

0 comments on commit 5b1554e

Please sign in to comment.