Professional Documents
Culture Documents
Decision Support
Chapter 5
Integer Programming
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
?
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-5
A Total Integer Model Example
Integer Programming Model:
?
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-8
A 0 - 1 Integer Model Example
Integer Programming Model:
Maximize Z = 300x1 + 90x2 + 400x3 + 150x4
subject to:
$35,000x1 + 10,000x2 + 25,000x3 + 90,000x4 $120,000
4x1 + 2x2 + 7x3 + 3x4 12 acres
x1 + x 2 1 (Mutually exclusive constraint ) facility
x1, x2, x3, x4 = 0 or 1
x1 = construction of a swimming pool
x2 = construction of a tennis center
x3 = construction of an athletic field
x4 = construction of a gymnasium
x1 + x2 + x3 + x4 =2
x1 + x2 + x3 + x4 2
x2 x1 (Conditional Constraint)
Optimal Solution:
Z = $1,055.56
x1 = 2.22 presses
x2 = 5.55 lathes
Objective function
=C7*C12+D7*C13
Decision variables—
+E7*C14+F7*C15
C12:C15
Exhibit 5.2
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-21
Computer Solution of IP Problems
0 – 1 Model with Excel (3 of 5)
Exhibit 5.3
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-22
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-23
Computer Solution of IP Problems
0 – 1 Model with Excel (5 of 5)
Deactivate
Solution:
X1=1 swimming pool
X2=0 tennis center
X3=1 athletic field
X4=0 gymnasium
Z=700 people per
day usage
Return to solver
window
Exhibit 5.5
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-24
Computer Solution of IP Problems
Total Integer Model with Excel (1 of 5)
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-26
Computer Solution of IP Problems
Total Integer Model with Excel (3 of 5)
Integer variables
Exhibit 5.10
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-27
Computer Solution of IP Problems
Total Integer Model with Excel (4 of 5)
Click on ―int‖
Exhibit 5.11
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-28
Computer Solution of IP Problems
Total Integer Model with Excel (5 of 5)
Integer Solution
Exhibit 5.12
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-29
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-31
Computer Solution of IP Problems
Solution of Total Integer Model with Excel (3 of 3)
Exhibit 5.14
=SUMPRODUCT(C7:C11,E7:E11)
=C9+C10
Exhibit 5.17
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-36
0 – 1 Integer Programming Modeling Examples
Capital Budgeting Example (5 of 6)
Exhibit 5.18
0-1 integer
restriction
Mutually exclusive
constraint
The shipping costs ($) per ton from the farms being considered for
purchase to the plants are as follows:
5 17 19 12
6 14 16 12
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-40
0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (3 of 7)
xij ≥ 0 yi = 0 or 1
=G10-C22*F10
=SUM(C5:C10) =C10+D10+E10
Exhibit 5.19
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 5-43
0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (6 of 7)
Exhibit 5.20
0-1 integer
restriction
Plant capacity
constraints
Harvest constraints
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Exhibit 5.21 5-48
0 – 1 Integer Programming Modeling Examples
Set Covering Example (4 of 4)
Exhibit 5.22
City constraints
set > 1