Академический Документы
Профессиональный Документы
Культура Документы
Integer Programming,
Goal Programming, and
Nonlinear Programming
To accompany
Quantitative Analysis for Management, Tenth Edition,
by Render, Stair, and Hanna
Power Point slides created by Jeff Heyl
Learning Objectives
After completing this chapter, students will be able to:
1. Understand the difference between LP and
2.
3.
4.
5.
integer programming
Understand and solve the three types of
integer programming problems
Apply the branch and bound method to solve
integer programming problems
Solve goal programming problems
graphically and using a modified simplex
technique
Formulate nonlinear programming problems
and solve using Excel
2009 Prentice-Hall, Inc.
11 2
Chapter Outline
11.1
11.2
11.3
11.4
11.5
Introduction
Integer Programming
Modeling with 0-1 (Binary) Variables
Goal Programming
Nonlinear Programming
11 3
Introduction
A large number of business problems can be
11 4
Integer Programming
An integer programming model is one where one
11 5
Integer Programming
Solving an integer programming problem is much
11 6
11 7
each fan $6
Harrisons production mix decision can be
formulated using LP as follows
11 8
Electric
Problem
X2
6
5
6X1 + 5X2 30
3
2
1
Figure 11.1
+
+
Optimal LP Solution
(X1 =3.75, X2 = 1.5,
Profit = $35.25)
2X1 + 3X2 12
X1
11 9
integer problem
His first attempt at solving it is to round the
values to X1 = 4 and X2 = 2
However, this is not feasible
Rounding X2 down to 1 gives a feasible solution,
but it may not be optimal
This could be solved using the enumeration
method
Enumeration is generally not possible for large
problems
11 10
$0
14
21
28
35
13
20
27
34
12
19
26
33
18
25
Integer
solutions
Optimal solution to
integer programming
problem
Solution if
rounding is used
Table 11.1
2009 Prentice-Hall, Inc.
11 11
11 12
Branch-and-Bound Method
The most common algorithm for solving integer
11 13
Branch-and-Bound Method
Bounds on the value of the objective function are
11 14
11 15
(a)
If a branch yields a solution to the LP
problem that is not feasible,
feasible terminate the
branch
(b) If a branch yields a solution to the LP
problem that is feasible, but not an integer
solution, go to step 6
(c)
If the branch yields a feasible integer
solution, examine the value of the objective
function. If this value equals the upper bound,
an optimal solution has been reached. If it not
equal to the upper bound, but exceeds the
lower bound, terminate this branch.
2009 Prentice-Hall, Inc.
11 16
11 17
11 18
not valid
The profit value of $35.25 will provide the initial
upper bound
We can round down to X1 = 3, X2 = 1, profit = $27,
which provides a feasible lower bound
The problem is now divided into two subproblems
11 19
11 20
bound method
11 21
subproblems A and B
Subproblem A
X1
X1 = 4
X2 = 1.2
P = 35.20
X1 = 3.75
X2 = 1.5
P = 35.25
X
Figure 11.2
X1 = 3
X2 = 2
P = 33.00
Stop This Branch
Solution Is Integer, Feasible
Provides New Lower Bound of $33.00
2009 Prentice-Hall, Inc.
11 22
subproblems, C and D
Subproblem C
Maximize profit = $7X1 + $6X2
subject to
2X1 + 3X2
6X1 + 5X2
X1
X2
12
30
4
2
Subproblem D
Maximize profit = $7X1 + $6X2
subject to
2X1 + 3X2
6X1 + 5X2
X1
X2
12
30
4
1
2009 Prentice-Hall, Inc.
11 23
11 24
12
30
4
4
1
12
30
4
5
1
Optimal solution to E:
X1 = 4, X2 = 1, profit = $34
Optimal solution to F:
X1 = 5, X2 = 0, profit = $35
11 25
11 26
Subproblem A
X2
X1
X1 = 4
X2 = 1.2
P = 35.20
Subproblem D
X
X1 = 3.75
X2 = 1.5
P = 35.25
X
Figure 11.3
Subproblem B
3
Subproblem E
X1
X1 = 4.17
X2 = 1
P = 35.16
1
Upper Bound
= $35.25
Lower Bound
= $27.00
Feasible, Integer
Solution
Subproblem F
X
X1 = 3
X2 = 2
P = 33.00
X1 = 4
X2 = 1
P = 34.00
X1 = 5
X2 = 0
P = 35.00
Optimal
Solution
2009 Prentice-Hall, Inc.
11 27
Electric data
Program 11.1A
2009 Prentice-Hall, Inc.
11 28
Electric data
Program 11.1B
2009 Prentice-Hall, Inc.
11 29
Program 11.1C
11 30
Program 11.2A
11 31
menu in Solver
Program 11.2B
2009 Prentice-Hall, Inc.
11 32
programming model
Program 11.2C
2009 Prentice-Hall, Inc.
11 33
Mixed-Integer Programming
Problem Example
There are many situations in which some of the
11 34
Mixed-Integer Programming
Problem Example
AMOUNT PER 50-POUND
BAG OF XYLINE (LB)
AMOUNT OF
INGREDIENTS
AVAILABLE
30
0.5
2,000 lbingredient A
18
0.4
800 lbingredient B
0.1
200 lbingredient C
11 35
Mixed-Integer Programming
Problem Example
The model is
2,000
800
200
0 and X integer
11 36
Mixed-Integer Programming
Problem Example
Using QM for Windows and Excel to solve
Bagwells IP model
Program 11.3
2009 Prentice-Hall, Inc.
11 37
Mixed-Integer Programming
Problem Example
Excel formulation of Bagwells IP problem with
Solver
Program 11.4A
2009 Prentice-Hall, Inc.
11 38
Mixed-Integer Programming
Problem Example
Excel solution to the Bagwell Chemical problem
Program 11.4B
11 39
11 40
projects undertaken
11 41
YEAR 1
YEAR 2
Catalytic Converter
$25,000
$8,000
$7,000
Software
$18,000
$6,000
$4,000
Warehouse expansion
$32,000
$12,000
$8,000
$20,000
$16,000
Available funds
Table 11.2
11 42
11 43
11 44
11 45
Dependent Selections
At times the selection of one project depends on
11 46
11 47
ANNUAL
FIXED COST
VARIABLE COST
PER UNIT
ANNUAL
CAPACITY
Baytown, TX
$340,000
$32
21,000
Lake Charles, LA
$270,000
$33
20,000
Mobile, AL
$290,000
$30
19,000
Table 11.3
11 48
11 49
X1 = 0, X2 = 1, X3 = 1, X4 = 0, X5 = 19,000, X6 = 19,000
Objective function value = $1,757,000
2009 Prentice-Hall, Inc.
11 50
variables
Simkin, Simkin, and Steinberg specialize in
recommending oil stock portfolios for wealthy
clients
One client has the following specifications
oil company
One of the two California oil stocks must be purchased
11 51
COMPANY NAME
EXPECTED ANNUAL
RETURN ($1,000s)
Trans-Texas Oil
50
480
British Petroleum
80
540
Dutch Shell
90
680
Houston Drilling
120
1,000
Texas Petroleum
110
700
40
510
California Petro
75
900
Table 11.4
2009 Prentice-Hall, Inc.
11 52
11 53
Program 11.5A
11 54
programming problem
Program 11.5B
2009 Prentice-Hall, Inc.
11 55
programming problem
Program 11.5C
2009 Prentice-Hall, Inc.
11 56
Goal Programming
Firms often have more than one goal
They may want to achieve several, sometimes
contradictory, goals
In linear and integer programming methods the
objective function is measured in one dimension
only
It is not possible for LP to have multiple goals
unless they are all measured in the same units,
and this is a highly unusual situation
An important technique that has been developed
to supplement LP is called goal programming
11 57
Goal Programming
Typically goals set by management can be
11 58
problem is
11 59
11 60
= d 1 + d 1+
11 61
11 62
11 63
d 1+
d 2+
d 3+
d 4+
= 30
= 12
= 30
=7
(profit constraint)
(wiring hours)
(assembly hours)
(ceiling fan constraint)
11 64
11 65
PRIORITY
P1
P2
P3
P4
11 66
ones
11 67
problems graphically
We must be aware of three characteristics
of goal programming problems
1. Goal programming models are all
minimization problems
2. There is no single objective, but multiple
goals to be attained
3. The deviation from the high-priority goal
must be minimized to the greatest extent
possible before the next-highest-priority goal
is considered
2009 Prentice-Hall, Inc.
11 68
model
11 69
11 70
X2
7
Minimize Z = P1d1
6
5
4
3
d1+
2
1
0
Figure 11.4
d 1
7X1 + 6X2 = 30
X1
11 71
minimizing d2
The region below the constraint line 2X1 + 3X2 =
12 represents the values for d2 while the region
above the line stands for d2+
To avoid underutilizing wiring department hours
the area below the line is eliminated
This goal must be attained within the feasible
region already defined by satisfying the first goal
11 72
first and
second goals
X2
7
6
5
d1+
4
3
2
2X1 + 3X2 = 12
1
d2+
0
Figure 11.5
7X1 + 6X2 = 30
d2
X1
11 73
assembly department
We want d3+ to be as close to zero as possible
This goal can be obtained
Any point inside the feasible region bounded by
the first three constraints will meet the three
most critical goals
The fourth constraint seeks to minimize d4
To do this requires eliminating the area below
the constraint line X2 = 7 which is not possible
given the previous, higher priority, constraints
11 74
all four
priority goals
X2
d 4+
7
6 A
5
D
4
X2 = 7
d 4
d3
d1+
d2+
6X1 + 5X2 = 30
B
0
Figure 11.6
2X1 + 3X2 = 12
7X1 + 6X2 = 30
|
X1
11 75
11 76
11 77
P1
P2
P4
P3
SOLUTION
MIX
X1
X2
d1
d2
d3
d4
d1+
d2+
d3+
d4+
QUANTITY
P1
d1
30
P2
d2
12
d3
30
P4
d4
Zj
P4
P3
P2
12
P1
30
P4
P3
P2
P1
Cj Zj
6 column
0
Pivot
Table 11.5
2009 Prentice-Hall, Inc.
11 78
11 79
11 80
11 81
11 82
P1
P2
P4
P3
SOLUTION
MIX
X1
X2
d1
d2
d3
d4
d1+
d2+
d3+
d4+
QUANTITY
X1
6/7
1/7
1/7
30/7
P2
d2
9/7
2/7
2/7
24/7
d3
1/7
6/7
6/7
30/7
P4
d4
Zj
P4
P3
P2
9/7
2/7
2/7
24/7
P1
P4
P3
P2
9/7
2/7
2/7
P1
Cj Zj
1 column
0
Pivot
Table 11.6
2009 Prentice-Hall, Inc.
11 83
P1
P2
P4
P3
SOLUTION
MIX
X1
X2
d1
d2
d3
d4
d1+
d2+
d3+
d4+
QUANTITY
d2+
8/5
3/5
3/5
X2
6/5
1/5
1/5
d1+
1/5
6/5
6/5
P4
d4
6/5
1/5
1/5
Zj
P4
6/5
1/5
1/5
P3
P2
P1
P4
6/5
1/5
1/5
P3
P2
P1
Cj Zj
Table 11.7
2009 Prentice-Hall, Inc.
11 84
11 85
X1 = 0 chandeliers produced
X2 = 6 ceiling fans produced
d1+ = $6 over the profit goal
d2+ = 6 wiring hours over the minimum set
d4 = 1 fewer fan than desired
11 86
11 87
11 88
Program 11.6A
11 89
Windows
Program 11.6B
11 90
Program 11.6C
2009 Prentice-Hall, Inc.
11 91
Nonlinear Programming
The methods seen so far have all assumed that
11 92
11 93
Maximize profit =
28X1
+ 21X2 +
0.25X22
subject to
X1 + 21X2
1,000
(units of
production capacity)
0.5X1
+ 0.4X2
500
(hours of
sales time
available)
When an objective function contains
a squared
X1, linear,
X2 it is0
term and the problem constraints are
11 94
Program 11.7A
2009 Prentice-Hall, Inc.
11 95
Program 11.7B
11 96
11 97
11 98
Program 11.8A
2009 Prentice-Hall, Inc.
11 99
Program 11.8B
11 100
11 101
$5X1
+ 0.25X12
+ 4X2
+ 0.3X22
125
(hardness
constraint)
13X1
+ X13
80
(tensile
strength)
2009 Prentice-Hall, Inc.
11 102
Program 11.9A
2009 Prentice-Hall, Inc.
11 103
Solver
Program 11.9B
2009 Prentice-Hall, Inc.
11 104
11 105
11 106