Ch5 Integer Programming
Ch5 Integer Programming
Chapter 5
Mixed Integer Model: Some of the decision variables (but not all)
required to have integer values.
Required
Machine Floor Space (ft.2) Purchase Price
Press 15 $8,000
Lathe 30 4,000
Optimal Solution:
Z = $1,055.56
x1 = 2.22 presses
x2 = 5.55 lathes
=C7*C12+D7*C13
Decision variables—
+E7*C14+F7*C15
C12:C15
Exhibit 5.2
Exhibit 5.3
Copyright © 2016 Pearson Education, Ltd. 5-15
Computer Solution of IP Problems
0 – 1 Model with Excel (4 of 5)
Exhibit 5.4
Copyright © 2016 Pearson Education, Ltd. 5-16
Computer Solution of IP Problems
0 – 1 Model with Excel (5 of 5)
Deactivate
Exhibit 5.6
Copyright © 2016 Pearson Education, Ltd. 5-19
Computer Solution of IP Problems
0 – 1 Model with QM for Windows (3 of 3)
Click to solve.
Exhibit 5.7
Copyright © 2016 Pearson Education, Ltd. 5-20
Computer Solution of IP Problems
Total Integer Model with Excel (1 of 6)
Solution:
X1=1 swimming pool
X2=0 tennis center
X3=1 athletic field
X4=0 gymnasium
Z=700 people per day usage
Exhibit 5.8
Copyright © 2016 Pearson Education, Ltd. 5-22
Computer Solution of IP Problems
Total Integer Model with Excel (3 of 6)
Objective function
Slack, =G6-E6
Decision variables—
B10:B11 =C6*B10+D6*B11
Exhibit 5.9
Copyright © 2016 Pearson Education, Ltd. 5-23
Computer Solution of IP Problems
Total Integer Model with Excel (4 of 6)
Integer variables
Exhibit 5.10
Copyright © 2016 Pearson Education, Ltd. 5-24
Computer Solution of IP Problems
Total Integer Model with Excel (5 of 6)
Click on “int”
Exhibit 5.11
Copyright © 2016 Pearson Education, Ltd. 5-25
Computer Solution of IP Problems
Total Integer Model with Excel (6 of 6)
Integer Solution
Exhibit 5.12
Copyright © 2016 Pearson Education, Ltd. 5-26
Computer Solution of IP Problems
Mixed Integer Model with Excel (1 of 3)
Available to invest
=C4*B8+D4*B9+E4*B10
Exhibit 5.13
Copyright © 2016 Pearson Education, Ltd. 5-28
Computer Solution of IP Problems
Solution of Total Integer Model with Excel (3 of 3)
Exhibit 5.14
Click on “Real”
Exhibit 5.15
Copyright © 2016 Pearson Education, Ltd. 5-30
Computer Solution of IP Problems
Mixed Integer Model with QM for Windows (2 of 2)
Exhibit 5.16
Copyright © 2016 Pearson Education, Ltd. 5-31
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.
=SUMPRODUCT(C7:C11,E7:E11)
=C9+C10
Exhibit 5.17
Copyright © 2016 Pearson Education, Ltd. 5-34
0 – 1 Integer Programming Modeling Examples
Capital Budgeting Example (4 of 4)
Exhibit 5.18
0-1 integer
restriction
Mutually exclusive
constraint
xij ≥ 0 yi = 0 or 1
=G10-C22*F10
=SUM(C5:C10) =C10+D10+E10
Exhibit 5.19
Copyright © 2016 Pearson Education, Ltd. 5-38
0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (4 of 4)
Exhibit 5.20
0-1 integer
restriction
Plant capacity
constraints
Harvest constraints
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Exhibit 5.21 5-42
0 – 1 Integer Programming Modeling Examples
Set Covering Example (4 of 4)
Exhibit 5.22
City constraints
set > 1