Skip to content

Commit b8f98c8

Browse files
committed
some fix for latest version
1 parent 47371f9 commit b8f98c8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

notebooks/05/cutting-stock.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@
767767
},
768768
{
769769
"cell_type": "code",
770-
"execution_count": 10,
770+
"execution_count": null,
771771
"metadata": {
772772
"id": "iHVQ3XUGieiJ"
773773
},
@@ -843,7 +843,7 @@
843843
"\n",
844844
"def generate_pattern_dual(stocks, finish, patterns):\n",
845845
" m = generate_pattern_dual_prob\n",
846-
"\n",
846+
" m.eval(\"reset data;\")\n",
847847
" m.set[\"F\"] = list(finish.keys())\n",
848848
" m.set[\"P\"] = list(range(len(patterns)))\n",
849849
"\n",

notebooks/09/markowitz_portfolio_with_chance_constraint.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"cell_type": "code",
24-
"execution_count": 1,
24+
"execution_count": null,
2525
"id": "5da22c67-5c34-4c3a-90a4-61222899e855",
2626
"metadata": {
2727
"colab": {
@@ -46,7 +46,7 @@
4646
"# Install AMPL and solvers\n",
4747
"%pip install -q amplpy pandas numpy scipy\n",
4848
"\n",
49-
"SOLVER = \"scip\"\n",
49+
"SOLVER = \"highs\"\n",
5050
"\n",
5151
"from amplpy import AMPL, ampl_notebook\n",
5252
"\n",

0 commit comments

Comments
 (0)