Skip to content

Commit

Permalink
Merge branch 'iulia-trcn-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marika-K committed Nov 20, 2024
2 parents 6de9572 + 127e460 commit 3fcc5e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion optimization202/Modeling_Session_1/exercise_set1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
"source": [
"### Quadratic expression\n",
"\n",
"In order to produce more widgets, production facilities must run their machines at faster speeds. This consumes more energy and produces more waste at a level that grows with each widget produced. Running their machines costs a production facility $0.01 times the square of the number of widgets produced. Modify the objective function to include this additional production cost. Here is the some code to get you started - it includes the original transportation cost expression that you will be adding to:\n",
"In order to produce more widgets, production facilities must run their machines at faster speeds. This consumes more energy and produces more waste at a level that grows with each widget produced. Running their machines costs a production facility $0.01 times the square of the number of widgets produced. Modify the objective function to include this additional production cost. Here is some code to get you started - it includes the original transportation cost expression that you will be adding to:\n",
"\n",
"```python\n",
"m.setObjective(gp.quicksum(transp_cost[p,d]*x[p,d] for p in production for d in distribution) + ..., GRB.MINIMIZE)\n",
Expand Down
4 changes: 2 additions & 2 deletions optimization202/Modeling_Session_2/exercise_set2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"- [Visualization of PWL](https://docs.gurobi.com/projects/optimizer/en/current/concepts/modeling/objectives.html#piecewise-linear-objectives)\n",
"\n",
"### Scenario 1\n",
"We have a new cost structure for transporting widgets we make. \n",
"We have a new cost structure for transporting the widgets we make. \n",
"- There will be a flat 0.50 increase for all transportation costs. \n",
"- If we decide to bulk ship at least half of a production facility's max to any one distribution location, every widget over that half capacity number costs 60% of the new transportation cost. \n",
"\n",
Expand Down Expand Up @@ -525,7 +525,7 @@
"source": [
"You now decide that your investments need to be a little more diversified. Add any necessary variables and constraints that will:\n",
"- Make sure you invest in at least four sectors.\n",
"- If an investment is made in a sector, then will need to be at least 10% of the budget."
"- If an investment is made in a sector, then it will need to be at least 10% of the budget."
]
},
{
Expand Down

0 comments on commit 3fcc5e4

Please sign in to comment.