Skip to content

Commit e9038bc

Browse files
committed
create colab Notebooks
1 parent f2aed87 commit e9038bc

File tree

6 files changed

+1957
-35
lines changed

6 files changed

+1957
-35
lines changed

factory_planning_1_2/factory_planning_1.html

Lines changed: 7 additions & 8 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="Factory-Planning-I">Factory Planning I<a class="anchor-link" href="#Factory-Planning-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 Factory Planning II are examples of production planning problems. In production planning problems, choices must be made about which products to produce, how much of those products to produce, and what resources to use in order to maximize profits or minimize costs, while meeting a range of constraints. These problems are common across a broad range of manufacturing situations.</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’ll model and solve a production mix problem: During each period we can manufacture a range of products. Each of the products requires a different amount of time to manufacture on different machines, and yields a different profit.The aim is to create an optimal multi-period production plan to maximize the profit. Some machines are not available in particular periods due to maintenance. There is an upper limit on the sales of each product in each month due to market limitations and the storage capacity is also restricted.</p>
13121-
<p>In Factory Planning II, we’ll add more complexity to this example; the month in which each machine is down for maintenance will be chosen as a part of the optimized plan.</p>
13122-
<p>More information on this type of model can be found in example # 3 of the fifth edition of Modeling Building in Mathematical Programming by H. P. Williams on pages 255-256 and 300-302.</p>
13119+
<h1 id="Factory-Planning-I">Factory Planning I<a class="anchor-link" href="#Factory-Planning-I">&#182;</a></h1><h2 id="Objective-and-Prerequisites">Objective and Prerequisites<a class="anchor-link" href="#Objective-and-Prerequisites">&#182;</a></h2><p>Want to learn how to create an optimal production plan that will maximize your profits? In this example, we’ll teach you how to solve this classic production planning problem.</p>
13120+
<p>More information on this type of model can be found in example # 3 of the fifth edition of Modeling Building in Mathematical Programming by H. P. Williams on pages 255 – 256 and 300 – 302.</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>
@@ -13530,7 +13528,6 @@ <h2 id="Model-Deployment">Model Deployment<a class="anchor-link" href="#Model-De
1353013528

1353113529
<div class="output_subarea output_stream output_stdout output_text">
1353213530
<pre>Using license file c:\gurobi\gurobi.lic
13533-
Set parameter TokenServer to value SANTOS-SURFACE-
1353413531
</pre>
1353513532
</div>
1353613533
</div>
@@ -13673,7 +13670,8 @@ <h2 id="Model-Deployment">Model Deployment<a class="anchor-link" href="#Model-De
1367313670

1367413671

1367513672
<div class="output_subarea output_stream output_stdout output_text">
13676-
<pre>Gurobi Optimizer version 9.0.0 build v9.0.0rc2 (win64)
13673+
<pre>Gurobi Optimizer version 9.1.0 build v9.1.0rc0 (win64)
13674+
Thread count: 4 physical cores, 8 logical processors, using up to 8 threads
1367713675
Optimize a model with 79 rows, 126 columns and 288 nonzeros
1367813676
Model fingerprint: 0xead11e9d
1367913677
Coefficient statistics:
@@ -13687,9 +13685,10 @@ <h2 id="Model-Deployment">Model Deployment<a class="anchor-link" href="#Model-De
1368713685

1368813686
Iteration Objective Primal Inf. Dual Inf. Time
1368913687
0 1.2466500e+05 3.640000e+02 0.000000e+00 0s
13690-
2 9.3715179e+04 0.000000e+00 0.000000e+00 0s
13688+
Extra simplex iterations after uncrush: 2
13689+
4 9.3715179e+04 0.000000e+00 0.000000e+00 0s
1369113690

13692-
Solved in 2 iterations and 0.01 seconds
13691+
Solved in 4 iterations and 0.01 seconds
1369313692
Optimal objective 9.371517857e+04
1369413693
</pre>
1369513694
</div>

factory_planning_1_2/factory_planning_1.ipynb

Lines changed: 8 additions & 13 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 Factory Planning II are examples of production planning problems. In production planning problems, choices must be made about which products to produce, how much of those products to produce, and what resources to use in order to maximize profits or minimize costs, while meeting a range of constraints. These problems are common across a broad range of manufacturing situations.\n",
11+
"Want to learn how to create an optimal production plan that will maximize your profits? In this example, we’ll teach you how to solve this classic production planning problem.\n",
1212
"\n",
13-
"### What You Will Learn\n",
14-
"\n",
15-
"In this particular example, we’ll model and solve a production mix problem: During each period we can manufacture a range of products. Each of the products requires a different amount of time to manufacture on different machines, and yields a different profit.The aim is to create an optimal multi-period production plan to maximize the profit. Some machines are not available in particular periods due to maintenance. There is an upper limit on the sales of each product in each month due to market limitations and the storage capacity is also restricted.\n",
16-
"\n",
17-
"In Factory Planning II, we’ll add more complexity to this example; the month in which each machine is down for maintenance will be chosen as a part of the optimized plan.\n",
18-
"\n",
19-
"More information on this type of model can be found in example # 3 of the fifth edition of Modeling Building in Mathematical Programming by H. P. Williams on pages 255-256 and 300-302.\n",
13+
"More information on this type of model can be found in example # 3 of the fifth edition of Modeling Building in Mathematical Programming by H. P. Williams on pages 255 – 256 and 300 – 302.\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",
@@ -291,8 +285,7 @@
291285
"name": "stdout",
292286
"output_type": "stream",
293287
"text": [
294-
"Using license file c:\\gurobi\\gurobi.lic\n",
295-
"Set parameter TokenServer to value SANTOS-SURFACE-\n"
288+
"Using license file c:\\gurobi\\gurobi.lic\n"
296289
]
297290
}
298291
],
@@ -404,7 +397,8 @@
404397
"name": "stdout",
405398
"output_type": "stream",
406399
"text": [
407-
"Gurobi Optimizer version 9.0.0 build v9.0.0rc2 (win64)\n",
400+
"Gurobi Optimizer version 9.1.0 build v9.1.0rc0 (win64)\n",
401+
"Thread count: 4 physical cores, 8 logical processors, using up to 8 threads\n",
408402
"Optimize a model with 79 rows, 126 columns and 288 nonzeros\n",
409403
"Model fingerprint: 0xead11e9d\n",
410404
"Coefficient statistics:\n",
@@ -418,9 +412,10 @@
418412
"\n",
419413
"Iteration Objective Primal Inf. Dual Inf. Time\n",
420414
" 0 1.2466500e+05 3.640000e+02 0.000000e+00 0s\n",
421-
" 2 9.3715179e+04 0.000000e+00 0.000000e+00 0s\n",
415+
"Extra simplex iterations after uncrush: 2\n",
416+
" 4 9.3715179e+04 0.000000e+00 0.000000e+00 0s\n",
422417
"\n",
423-
"Solved in 2 iterations and 0.01 seconds\n",
418+
"Solved in 4 iterations and 0.01 seconds\n",
424419
"Optimal objective 9.371517857e+04\n"
425420
]
426421
}

0 commit comments

Comments
 (0)