Skip to content

Commit df8a4c4

Browse files
committed
exercise 1 update
1 parent 2a51501 commit df8a4c4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

optimization201/Modeling_Session_1/completed_exercise_set1.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"**Q10.** Write `gurobipy` code using indicator constraints to model the following. Both parts reference the decision variables in the Modeling Example 1 notebook.\n",
144144
">a. The link between $x_{p,d}$ and $y_p$.\n",
145145
"\n",
146-
">b. If Cleveland and Baltimore are open, then Charleston must be closed. "
146+
">b. If Cleveland and Baltimore are open, then Charleston must be closed. Feel free to add *auxiliary variables* if you want. "
147147
]
148148
},
149149
{

optimization201/Modeling_Session_1/exercise_set1.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
"\n",
6161
"**Q7.** Write the `contrapositive` of \"If Duke is late for a meeting, that's because he was out surfing.\"\n",
6262
"\n",
63-
"**Q8.** In the **Using Big M Constraints** section of this session's notebook, we used the following inequality $x + M_2 \\times z \\ge C$.\n",
64-
">a. Simplify this inequality using replacing $𝑀_2$ with $C$.\n",
63+
"**Q8.** In the **Using Big M Constraints** section of last session's notebook, we used the following inequality $x + M_2 \\times z \\ge C$.\n",
64+
">a. Simplify this inequality replacing $𝑀_2$ with $C$.\n",
6565
"\n",
66-
">b. The other clause of the `OR` statement this comes from was $x \\le M_1\\times(1-z)$. Write out what these two inequalities reduce to when $z = 1$ and $z = 0$."
66+
">b. The other clause of this `OR` statement was $x \\le M_1\\times(1-z)$. Write out what these two inequalities reduce to when $z = 1$ and $z = 0$."
6767
]
6868
},
6969
{
@@ -75,10 +75,10 @@
7575
"## Formulation and Coding\n",
7676
"**Q9.** In the **Constrainting production facilities** section of the Modeling Example 1 notebook, when adding the $y$ decision variables for opening production facilities, assume there are fixed costs, given by the list `[180, 150, 120, 155, 175]` for activating each respective distribution center. Write `gurobipy` code that will add these costs to the original objective function.\n",
7777
"\n",
78-
"**Q10.** Write `gurobipy` code using indicator constraints to rewrite the following. Both parts reference the decision variables in the Modeling Example 1 notebook.\n",
78+
"**Q10.** Write `gurobipy` code using indicator constraints to model the following. Both parts reference the decision variables in the Modeling Example 1 notebook.\n",
7979
">a. The link between $x_{p,d}$ and $y_p$.\n",
8080
"\n",
81-
">b. If Cleveland and Baltimore are open, then Charleston must be closed. **Hint:* you may still need *auxiliary* variable(s).\n",
81+
">b. If Cleveland and Baltimore are open, then Charleston must be closed. Feel free to add *auxiliary variables* if you want. \n",
8282
"\n",
8383
"**Homework (optional):** Formulate the **Regional restriction** constraint as a big M constraint (this one may be a bit difficult for non-experts).\n",
8484
"\n",

0 commit comments

Comments
 (0)