Integer Linear Programming Models: 2024/4/15, 5 33 PM Page 1 of 46
Integer Linear Programming Models: 2024/4/15, 5 33 PM Page 1 of 46
Programming Models
Chapter 5
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 1 of 46
:
Chapter Topics
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 2 of 46
:
Integer Programming Models
Types of Models
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 3 of 46
:
A Total Integer Model (1 of 2)
Required
Machine Floor Space (ft.2) Purchase Price
Press 15 $8,000
Lathe 30 4,000
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 4 of 46
:
A Total Integer Model (2 of 2)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 5 of 46
:
A 0 - 1 Integer Model (1 of 2)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 6 of 46
:
A 0 - 1 Integer Model (2 of 2)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 7 of 46
:
A Mixed Integer Model (1 of 2)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 8 of 46
:
A Mixed Integer Model (2 of 2)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 9 of 46
:
Integer Programming Graphical Solution
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 10 of 46
:
Integer Programming Example
Graphical Solution of Machine Shop Model
Optimal Solution:
Z = $1,055.56
x1 = 2.22 presses
x2 = 5.55 lathes
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 11 of 46
:
Branch and Bound Method
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 12 of 46
:
Computer Solution of IP Problems
0 – 1 Model with Excel (1 of 5)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 13 of 46
:
Computer Solution of IP Problems
0 – 1 Model with Excel (2 of 5)
Exhibit
5.2
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 14 of 46
:
Computer Solution of IP Problems
0 – 1 Model with Excel (3 of 5)
Exhibit
5.3
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 15 of 46
:
Computer Solution of IP Problems
0 – 1 Model with Excel (4 of 5)
Exhibit
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
5.4 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 16 of 46
:
Computer Solution of IP Problems
0 – 1 Model with Excel (5 of 5)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 17 of 46
:
Computer Solution of IP Problems
0 – 1 Model with QM for Windows (1 of 3)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 18 of 46
:
Computer Solution of IP Problems
0 – 1 Model with QM for Windows (2 of 3)
Exhibit 5.6
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 19 of 46
:
Computer Solution of IP Problems
0 – 1 Model with QM for Windows (3 of 3)
Exhibit 5.7
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 20 of 46
:
Computer Solution of IP Problems
Total Integer Model with Excel (1 of 5)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 21 of 46
:
Computer Solution of IP Problems
Total Integer Model with Excel (2 of 5)
Exhibit 5.8
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 22 of 46
:
Computer Solution of IP Problems
Total Integer Model with Excel (4 of 5)
Exhibit 5.9
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 23 of 46
:
Computer Solution of IP Problems
Total Integer Model with Excel (3 of 5)
Exhibit
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
5.10 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 24 of 46
:
Computer Solution of IP Problems
Total Integer Model with Excel (5 of 5)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 25 of 46
:
Computer Solution of IP Problems
Mixed Integer Model with Excel (1 of 3)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 26 of 46
:
Computer Solution of IP Problems
Total Integer Model with Excel (2 of 3)
Exhibit 5.12
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 27 of 46
:
Computer Solution of IP Problems
Solution of Total Integer Model with Excel (3 of 3)
Exhibit 5.13
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 28 of 46
:
Computer Solution of IP Problems
Mixed Integer Model with QM for Windows (1 of
2)
Exhibit 5.14
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 29 of 46
:
Computer Solution of IP Problems
Mixed Integer Model with QM for Windows (2 of
2)
Exhibit 5.15
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 30 of 46
:
0 – 1 Integer Programming Modeling Examples
Capital Budgeting Example (1 of 4)
■ University bookstore expansion project.
■ Not enough space available for both a computer department and a
clothing department.
■ ATM takes the integer (0,1,2,3,….); other project takes either 0 or 1
NPV Return Project Costs per Year ($1000)
Project
($1,000s) 1 2 3
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 31 of 46
:
0 – 1 Integer Programming Modeling Examples
Capital Budgeting Example (2 of 4)
x1 = selection of web site project
x2 = selection of warehouse project
x3 = selection clothing department project
x4 = selection of computer department project
x5 = selection of ATM project
xi = 1 if project “i” is selected, 0 if project “i” is not selected
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 32 of 46
:
0 – 1 Integer Programming Modeling Examples
Capital Budgeting Example (3 of 4)
Exhibit
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5.16 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 33 of 46
:
0 – 1 Integer Programming Modeling Examples
Capital Budgeting Example (4 of 4)
Exhibit
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5.17 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 34 of 46
:
0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (1 of 4)
Which of six farms should be purchased that will meet current
production capacity at minimum total cost, including annual
fixed costs and shipping costs?
Available Plant ($/ton shipped)
Plant Capacity
(tons,1000s) Farm A B C
A 12
B 10 1 18 15 12
C 14 2 13 10 17
Farms Annual Fixed Projected Annual 3 16 14 18
Costs Harvest (tons, 1000s) 4 19 15 16
($1000)
1 405 11.2 5 17 19 12
2 390 10.5 6 14 16 12
3 450 12.8
4 368 9.3
5 520 10.8
6 465 9.6
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 35 of 46
:
0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (2 of 4)
yi = 0 if farm i is not selected, and 1 if farm i is selected; i = 1,2,3,4,5,6
xij = potatoes (1000 tons) shipped from farm I to plant j; j = A,B,C.
Minimize Z = 18x1A+ 15x1B+ 12x1C+ 13x2A+ 10x2B+ 17x2C+ 16x3+ 14x3B
+18x3C+ 19x4A+ 15x4b+ 16x4C+ 17x5A+ 19x5B+12x5C+ 14x6A
+ 16x6B+ 12x6C+ 405y1+ 390y2+ 450y3+ 368y4+ 520y5+ 465y6
subject to:
x1A + x1B + x1B - 11.2y1 ≤ 0 x2A + x2B + x2C -10.5y2 ≤ 0
x3A + x3A + x3C - 12.8y3 ≤ 0 x4A + x4b + x4C - 9.3y4 ≤ 0
x5A + x5B + x5B - 10.8y5 ≤ 0 x6A + x6B + X6C - 9.6y6 ≤ 0
xij ≥ 0 yi = 0 or 1
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 36 of 46
:
0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (3 of 4)
Exhibit
5-0
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
5.18
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 37 of 46
:
0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (4 of 4)
Exhibit
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
5.19 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 38 of 46
:
0 – 1 Integer Programming Modeling Examples
Set Covering Example (1 of 4)
APS wants to construct the minimum set of new hubs in these
twelve cities such that there is a hub within 300 miles of every city:
Cities Cities within 300 miles
1. Atlanta Atlanta, Charlotte, Nashville
2. Boston Boston, New York
3. Charlotte Atlanta, Charlotte, Richmond
4. Cincinnati Cincinnati, Detroit, Indianapolis, Nashville, Pittsburgh
5. Detroit Cincinnati, Detroit, Indianapolis, Milwaukee, Pittsburgh
6. Indianapolis Cincinnati, Detroit, Indianapolis, Milwaukee, Nashville, St. Louis
7. Milwaukee Detroit, Indianapolis, Milwaukee
8. Nashville Atlanta, Cincinnati, Indianapolis, Nashville, St. Louis
9. New York Boston, New York, Richmond
10. Pittsburgh Cincinnati, Detroit, Pittsburgh, Richmond
11. Richmond Charlotte, New York, Pittsburgh, Richmond
12. St. Louis Indianapolis, Nashville, St. Louis
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 39 of 46
:
0 – 1 Integer Programming Modeling Examples
Set Covering Example (2 of 4)
xi = city i, i = 1 to 12; xi = 0 if city is not selected as a hub and xi = 1 if it is.
Minimize Z = x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 + x11 + x12
subject to: Atlanta: x1 + x3 + x8 1
Boston: x2 + x10 1
Charlotte: x1 + x3 + x11 1
Cincinnati: x4 + x5 + x6 + x8 + x10 1
Detroit: x4 + x5 + x6 + x7 + x10 1
Indianapolis: x4 + x5 + x6 + x7 + x8 + x12 1
Milwaukee: x5 + x6 + x7 1
Nashville: x1 + x4 + x6+ x8 + x12 1
New York: x2 + x9+ x11 1
Pittsburgh: x4 + x5 + x10 + x11 1
Richmond: x3 + x9 + x10 + x11 1
St Louis: x6 + x8 + x12 1 xij = 0 or 1
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 40 of 46
:
0 – 1 Integer Programming Modeling Examples
Set Covering Example (3 of 4)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 41 of 46
:
0 – 1 Integer Programming Modeling Examples
Set Covering Example (4 of 4)
Exhibit 5.21
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 42 of 46
:
Total Integer Programming Modeling Example
Problem Statement (1 of 3)
■ Textbook company developing two new regions.
■ Planning to transfer some of its 10 salespeople into new regions.
■ Average annual expenses for sales person:
▪ Region 1 - $10,000/salesperson
▪ Region 2 - $7,500/salesperson
■ Total annual expense budget is $72,000.
■ Sales generated each year:
▪ Region 1 - $85,000/salesperson
▪ Region 2 - $60,000/salesperson
■ How many salespeople should be transferred into each region in order
to maximize increased sales?
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 43 of 46
:
Total Integer Programming Modeling Example
Model Formulation (2 of 3)
Step 1:
Formulate the Integer Programming Model
Maximize Z = $85,000x1 + 60,000x2
subject to:
x1 + x2 10 salespeople
$10,000x1 + 7,000x2 $72,000 expense budget
x1, x2 0 or integer
Step 2:
Solve the Model using QM for Windows
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 44 of 46
:
Total Integer Programming Modeling Example
Solution with QM for Windows (3 of 3)
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 45 of 46
:
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5-0
https://wm5.nccu.edu.tw/base/10001/course/10028123/board/1000156071/000000005/WM65fa2cd22c47f.ppt 2024/4/15, 5 33 PM
Page 46 of 46
: