Integer Programming
Integer Programming
Chapter 5
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
Objective function
=C7*C12+D7*C1
Decision variables 3+E7*C14+F7*C1
—C12:C15 5
Exhibit 5.2
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-14
Computer Solution of IP Problems
0 – 1 Model with Excel (3 of 5)
Restricts variables,
C12:C15, to integer and 0-
1 values
Exhibit 5.3
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-15
Computer Solution of IP Problems
0 – 1 Model with Excel (4 of 5)
Exhibit 5.4
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-16
Computer Solution of IP Problems
0 – 1 Model with Excel (5 of 5)
Deactivate
Exhibit 5.6
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-19
Computer Solution of IP Problems
0 – 1 Model with QM for Windows (3 of 3)
Click to solve.
Exhibit 5.7
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 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 © 2013 Pearson Education, Inc. Publishing as Prentice Hall 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 © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-23
Computer Solution of IP Problems
Total Integer Model with Excel (4 of 6)
Integer
variables
Exhibit
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5.10 5-24
Computer Solution of IP Problems
Total Integer Model with Excel (5 of 6)
Click on
“int”
Exhibit 5.11
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-25
Computer Solution of IP Problems
Total Integer Model with Excel (6 of 6)
Integer
Solution
Exhibit 5.12
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 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 © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-28
Computer Solution of IP Problems
Solution of Total Integer Model with Excel (3 of 3)
Exhibit 5.14
Constraints for
Integer requirement for
acres, condos, and
condos (x1) and bonds (x3)
bonds
Click on “Real”
Exhibit 5.15
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-30
Computer Solution of IP Problems
Mixed Integer Model with QM for Windows (2 of
2)
Exhibit 5.16
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 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 © 2013 Pearson Education, Inc. Publishing as Prentice Hall 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
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-37
0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (3 of 4)
Objective function
=G10-C22*F10
=SUM(C5:C10 =C10+D10+E10
)
Exhibit 5.19
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 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
Decision =SUMPRODUCT(B18:M18,B20:M2
variables in row 0)
20
Copyright © 2013 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