Skip to content

Commit

Permalink
requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
yurchisin committed Nov 13, 2024
1 parent a19cc38 commit 2b9e880
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
12 changes: 12 additions & 0 deletions optimization202/ESUPS_case_study/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
gurobipy==11.0.3
ipython==8.26.0
ipywidgets==8.1.3
numpy<2
pandas==2.2.2
pandera==0.20.3
plotly==5.23.0
pydantic==2.8.2
scipy==1.14.1
tqdm==4.66.4
typing_extensions==4.12.2
networkx
Original file line number Diff line number Diff line change
Expand Up @@ -2976,8 +2976,16 @@
"<div class=\"alert alert-warning alert-dismissible\">\n",
" <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>\n",
" <strong>Refresher: Whole model at a glance</strong> \n",
" <p>We created this model over several different cells so we could dig into how and why each step is done. When we put all the code together, the model is written in only a few lines of code. Here is the complete code to write and solve this model after you have the data available:</p>\n",
" <pre># Write and solve the nonlinear regression example:\n",
" <p>We created this model over several different cells so we could dig into how and why each step is done. When we put all the code together, the model is written in only a few lines of code. Here is the complete code to write and solve this model after you have the data available:</p>"
]
},
{
"cell_type": "markdown",
"id": "2c02b4f8",
"metadata": {},
"source": [
"```python\n",
"# Write and solve the nonlinear regression example:\n",
"import gurobipy as gp\n",
"from gurobipy import GRB\n",
"#\n",
Expand All @@ -2997,7 +3005,8 @@
"model.setObjective(sum((ymodel[i] - ytrain[i])**2 for i in points), sense=GRB.MINIMIZE)\n",
"#\n",
"# Solve the model\n",
"model.optimize()</pre>"
"model.optimize()\n",
"```"
]
},
{
Expand Down

0 comments on commit 2b9e880

Please sign in to comment.