Skip to content

Commit d92c5cb

Browse files
committed
create colab Notebooks
1 parent e9038bc commit d92c5cb

File tree

6 files changed

+1972
-97
lines changed

6 files changed

+1972
-97
lines changed

food_manufacturing_1_2/food_manufacture_1.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13116,10 +13116,8 @@
1311613116
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
1311713117
</div><div class="inner_cell">
1311813118
<div class="text_cell_render border-box-sizing rendered_html">
13119-
<h1 id="Food-Manufacture-I">Food Manufacture I<a class="anchor-link" href="#Food-Manufacture-I">&#182;</a></h1><h2 id="Objective-and-Prerequisites">Objective and Prerequisites<a class="anchor-link" href="#Objective-and-Prerequisites">&#182;</a></h2><p>Both this model and Food Manufacture II are examples of blending problems. In blending optimization problems, multiple raw materials are combined in a way that meets the stated constraints at the lowest cost. These problems are common in numerous industries including the oil industry (blending different types of crude oil at a refinery) and agriculture (manufacturing feed that meets the different nutritional requirements of different animals).</p>
13120-
<h3 id="What-You-Will-Learn">What You Will Learn<a class="anchor-link" href="#What-You-Will-Learn">&#182;</a></h3><p>In this particular example, we will model and solve a production planning problem where we must create a final product from a number of ingredients — each of which has different costs, restrictions, and features. The aim is to create an optimal multi-period production plan that maximizes profit. More details can be found on the Problem Description and Model Formulation below.</p>
13121-
<p>In Food Manufacture II, we will extend this example with additional constraints that change the problem type from a linear program (LP) to a mixed-integer program (MIP), making it harder to solve.</p>
13122-
<p>More information on this type of model can be found in example #1 of the fifth edition of Modeling Building in Mathematical Programming by H. P. Williams on pages 253-254 and 296-298.</p>
13119+
<h1 id="Food-Manufacture-I">Food Manufacture I<a class="anchor-link" href="#Food-Manufacture-I">&#182;</a></h1><h2 id="Objective-and-Prerequisites">Objective and Prerequisites<a class="anchor-link" href="#Objective-and-Prerequisites">&#182;</a></h2><p>If you’re hungry for a mathematical optimization challenge, then try this food manufacturing problem. You’ll learn how to create an optimal multi-period production plan for a product that requires a number of ingredients – each of which has different costs, restrictions, and features.</p>
13120+
<p>More information on this type of model can be found in example #1 of the fifth edition of Modeling Building in Mathematical Programming by H. P. Williams on pages 253 – 254 and 296 – 298.</p>
1312313121
<p>This modeling example is at the intermediate level, where we assume that you know Python and are familiar with the Gurobi Python API. In addition, you should have some knowledge about building mathematical optimization models.</p>
1312413122
<p><strong>Download the Repository</strong> <br />
1312513123
You can download the repository containing this and other examples by clicking <a href="https://github.com/Gurobi/modeling-examples/archive/master.zip">here</a>.</p>
@@ -13446,7 +13444,6 @@ <h2 id="Model-Deployment">Model Deployment<a class="anchor-link" href="#Model-De
1344613444

1344713445
<div class="output_subarea output_stream output_stdout output_text">
1344813446
<pre>Using license file c:\gurobi\gurobi.lic
13449-
Set parameter TokenServer to value SANTOS-SURFACE-
1345013447
</pre>
1345113448
</div>
1345213449
</div>
@@ -13633,7 +13630,8 @@ <h2 id="Model-Deployment">Model Deployment<a class="anchor-link" href="#Model-De
1363313630

1363413631

1363513632
<div class="output_subarea output_stream output_stdout output_text">
13636-
<pre>Gurobi Optimizer version 9.0.0 build v9.0.0rc2 (win64)
13633+
<pre>Gurobi Optimizer version 9.1.0 build v9.1.0rc0 (win64)
13634+
Thread count: 4 physical cores, 8 logical processors, using up to 8 threads
1363713635
Optimize a model with 70 rows, 96 columns and 278 nonzeros
1363813636
Model fingerprint: 0xd588eb19
1363913637
Coefficient statistics:

food_manufacturing_1_2/food_manufacture_1.ipynb

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,9 @@
88
"\n",
99
"## Objective and Prerequisites \n",
1010
"\n",
11-
"Both this model and Food Manufacture II are examples of blending problems. In blending optimization problems, multiple raw materials are combined in a way that meets the stated constraints at the lowest cost. These problems are common in numerous industries including the oil industry (blending different types of crude oil at a refinery) and agriculture (manufacturing feed that meets the different nutritional requirements of different animals).\n",
11+
"If you’re hungry for a mathematical optimization challenge, then try this food manufacturing problem. You’ll learn how to create an optimal multi-period production plan for a product that requires a number of ingredients – each of which has different costs, restrictions, and features.\n",
1212
"\n",
13-
"### What You Will Learn\n",
14-
"\n",
15-
"In this particular example, we will model and solve a production planning problem where we must create a final product from a number of ingredients — each of which has different costs, restrictions, and features. The aim is to create an optimal multi-period production plan that maximizes profit. More details can be found on the Problem Description and Model Formulation below.\n",
16-
"\n",
17-
"In Food Manufacture II, we will extend this example with additional constraints that change the problem type from a linear program (LP) to a mixed-integer program (MIP), making it harder to solve.\n",
18-
"\n",
19-
"More information on this type of model can be found in example #1 of the fifth edition of Modeling Building in Mathematical Programming by H. P. Williams on pages 253-254 and 296-298.\n",
13+
"More information on this type of model can be found in example #1 of the fifth edition of Modeling Building in Mathematical Programming by H. P. Williams on pages 253 – 254 and 296 – 298.\n",
2014
"\n",
2115
"This modeling example is at the intermediate level, where we assume that you know Python and are familiar with the Gurobi Python API. In addition, you should have some knowledge about building mathematical optimization models.\n",
2216
"\n",
@@ -282,8 +276,7 @@
282276
"name": "stdout",
283277
"output_type": "stream",
284278
"text": [
285-
"Using license file c:\\gurobi\\gurobi.lic\n",
286-
"Set parameter TokenServer to value SANTOS-SURFACE-\n"
279+
"Using license file c:\\gurobi\\gurobi.lic\n"
287280
]
288281
}
289282
],
@@ -433,7 +426,8 @@
433426
"name": "stdout",
434427
"output_type": "stream",
435428
"text": [
436-
"Gurobi Optimizer version 9.0.0 build v9.0.0rc2 (win64)\n",
429+
"Gurobi Optimizer version 9.1.0 build v9.1.0rc0 (win64)\n",
430+
"Thread count: 4 physical cores, 8 logical processors, using up to 8 threads\n",
437431
"Optimize a model with 70 rows, 96 columns and 278 nonzeros\n",
438432
"Model fingerprint: 0xd588eb19\n",
439433
"Coefficient statistics:\n",

0 commit comments

Comments
 (0)