Linear Programming
Linear Programming
© 2003 Thomson/South-Western 1
Slide
Linear Programming (LP) Problem
© 2003 Thomson/South-Western 2
Slide
Linear Programming (LP) Problem
© 2003 Thomson/South-Western 3
Slide
Problem Formulation
© 2003 Thomson/South-Western 4
Slide
Guidelines for Model Formulation
© 2003 Thomson/South-Western 5
Slide
Example 1: A Maximization Problem
LP Formulation
s.t. x1 < 6
2x1 + 3x2 < 19
x1 + x2 < 8
x1, x2 > 0
© 2003 Thomson/South-Western 6
Slide
Example 1: Graphical Solution
Constraint #1 Graphed
x2
6
x1 < 6
5
2
(6, 0)
1
x1
1 2 3 4 5 6 7 8 9 10
© 2003 Thomson/South-Western 7
Slide
Example 1: Graphical Solution
Constraint #2 Graphed
x2
8
(0, 6 1/3)
7
2 (9 1/2, 0)
1
x1
1 2 3 4 5 6 7 8 9 10
© 2003 Thomson/South-Western 8
Slide
Example 1: Graphical Solution
Constraint #3 Graphed
x2
(0, 8)
8
7
x1 + x2 < 8
6
1
(8, 0)
x1
1 2 3 4 5 6 7 8 9 10
© 2003 Thomson/South-Western 9
Slide
Example 1: Graphical Solution
Combined-Constraint Graph
x2
x1 + x2 < 8
8
6 x1 < 6
5
3
2x1 + 3x2 < 19
2
x1
1 2 3 4 5 6 7 8 9 10
© 2003 Thomson/South-Western 10
Slide
Example 1: Graphical Solution
3
Feasible
2
Region
1
x1
1 2 3 4 5 6 7 8 9 10
© 2003 Thomson/South-Western 11
Slide
Example 1: Graphical Solution
7
(0, 5)
6 Objective Function
5 5x11 + 7x22 = 35
4
2
(7, 0)
1
x1
1 2 3 4 5 6 7 8 9 10
© 2003 Thomson/South-Western 12
Slide
Example 1: Graphical Solution
Optimal Solution
x2
Objective Function
8
5x11 + 7x22 = 46
7
6
Optimal Solution
(x11 = 5, x22 = 3)
5
x1
1 2 3 4 5 6 7 8 9 10
© 2003 Thomson/South-Western 13
Slide
Summary of the Graphical Solution Procedure
for Maximization Problems
Prepare a graph of the feasible solutions for each of the
constraints.
Determine the feasible region that satisfies all the
constraints simultaneously..
Draw an objective function line.
Move parallel objective function lines toward larger
objective function values without entirely leaving the
feasible region.
Any feasible solution on the objective function line with
the largest value is an optimal solution.
© 2003 Thomson/South-Western 14
Slide
Extreme Points and the Optimal Solution
© 2003 Thomson/South-Western 15
Slide
Example 1: Graphical Solution
7
5
6
3
4
2 Feasible 3
1
Region
1 2
1 2 3 4 5 6 7 8 9 10
x1
© 2003 Thomson/South-Western 16
Slide
Computer Solutions
© 2003 Thomson/South-Western 17
Slide
Example 2: A Minimization Problem
LP Formulation
x1, x2 > 0
© 2003 Thomson/South-Western 18
Slide
Example 2: Graphical Solution
Graph the Constraints
Constraint 1: When x1 = 0, then x2 = 2; when x2 = 0,
then x1 = 5. Connect (5,0) and (0,2). The ">" side is
above this line.
Constraint 2: When x2 = 0, then x1 = 3. But setting x1 to
0 will yield x2 = -12, which is not on the graph.
Thus, to get a second point on this line, set x1 to any
number larger than 3 and solve for x2: when x1 = 5,
then x2 = 8. Connect (3,0) and (5,8). The ">" side is
to the right.
Constraint 3: When x1 = 0, then x2 = 4; when x2 = 0,
then x1 = 4. Connect (4,0) and (0,4). The ">" side is
above this line.
© 2003 Thomson/South-Western 19
Slide
Example 2: Graphical Solution
Constraints Graphed
x22 Feasible Region
3
2x11 + 5x22 > 10
2
1
x11
11 22 33 44 55 66
© 2003 Thomson/South-Western 20
Slide
Example 2: Graphical Solution
© 2003 Thomson/South-Western 21
Slide
Example 2: Graphical Solution
3
2x11 + 5x22 > 10
2
1
x11
1 2 3 4 5 6
© 2003 Thomson/South-Western 22
Slide
Example 2: Graphical Solution
© 2003 Thomson/South-Western 23
Slide
Example 2: Graphical Solution
© 2003 Thomson/South-Western 24
Slide
Example 2: Graphical Solution
Optimal Solution
x22 Min z = 5x11 + 2x22
© 2003 Thomson/South-Western 25
Slide
Feasible Region
© 2003 Thomson/South-Western 26
Slide
Special Cases
© 2003 Thomson/South-Western 27
Slide
Example: Infeasible Problem
x1, x2 > 0
© 2003 Thomson/South-Western 28
Slide
Example: Infeasible Problem
8 2x1 + x2 > 8
x1
3 4
© 2003 Thomson/South-Western 29
Slide
Example: Unbounded Problem
s.t. x1 + x2 > 5
3x1 + x2 > 8
x1, x2 > 0
© 2003 Thomson/South-Western 30
Slide
Example: Unbounded Problem
3x1 + x2 > 8
8
Max 3x1 + 4x2
5
x1 + x2 > 5
x1
2.67 5
© 2003 Thomson/South-Western 31
Slide
Chapter 3
Linear Programming: Sensitivity Analysis
and Interpretation of Solution
Introduction to Sensitivity Analysis
Graphical Sensitivity Analysis
Sensitivity Analysis: Computer Solution
Simultaneous Changes
© 2003 Thomson/South-Western 32
Slide
Sensitivity Analysis
© 2003 Thomson/South-Western 33
Slide
Example 1
LP Formulation
s.t. x1 < 6
2x1 + 3x2 < 19
x1 + x2 < 8
x1, x2 > 0
© 2003 Thomson/South-Western 34
Slide
Example 1
Graphical Solution
x2
8
x1 + x2 < 8
Max 5x1 + 7x2
7
6
x1 < 6
5
Optimal:
4
x1 = 5, x2 = 3, z = 46
3
2
2x1 + 3x2 < 19
1
1 2 3 4 5 6 7 8 9 10
x1
© 2003 Thomson/South-Western 35
Slide
Objective Function Coefficients
© 2003 Thomson/South-Western 36
Slide
Example 1
5 5
4
3
Feasible 4
2
Region 3
1
1 2
1 2 3 4 5 6 7 8 9 10
x1
© 2003 Thomson/South-Western 37
Slide
Range of Optimality
© 2003 Thomson/South-Western 38
Slide
Example 1
© 2003 Thomson/South-Western 39
Slide
Example 1
© 2003 Thomson/South-Western 40
Slide
Right-Hand Sides
© 2003 Thomson/South-Western 41
Slide
Dual Price
© 2003 Thomson/South-Western 42
Slide
Relevant Cost and Sunk Cost
© 2003 Thomson/South-Western 43
Slide
A Cautionary Note
on the Interpretation of Dual Prices
Resource cost is sunk
The dual price is the maximum amount you should be
willing to pay for one additional unit of the resource.
Resource cost is relevant
The dual price is the maximum premium over the
normal cost that you should be willing to pay for one
unit of the resource.
© 2003 Thomson/South-Western 44
Slide
Example 1
Dual Prices
Constraint 1: Since x1 < 6 is not a binding constraint,
its dual price is 0.
Constraint 2: Change the RHS value of the second
constraint to 20 and resolve for the optimal point
determined by the last two constraints:
2x1 + 3x2 = 20 and x1 + x2 = 8.
The solution is x1 = 4, x2 = 4, z = 48. Hence, the
dual price = znew - zold = 48 - 46 = 2.
© 2003 Thomson/South-Western 45
Slide
Example 1
Dual Prices
Constraint 3: Change the RHS value of the third
constraint to 9 and resolve for the optimal point
determined by the last two constraints: 2x1 + 3x2 =
19 and x1 + x2 = 9.
The solution is: x1 = 8, x2 = 1, z = 47.
The dual price is znew - zold = 47 - 46 = 1.
© 2003 Thomson/South-Western 46
Slide
Range of Feasibility
© 2003 Thomson/South-Western 47
Slide
Example 2: Olympic Bike Co.
© 2003 Thomson/South-Western 48
Slide
Example 2: Olympic Bike Co.
Model Formulation
•Verbal Statement of the Objective Function
Maximize total weekly profit.
•Verbal Statement of the Constraints
Total weekly usage of aluminum alloy < 100 pounds.
Total weekly usage of steel alloy < 80 pounds.
•Definition of the Decision Variables
x1 = number of Deluxe frames produced weekly.
x2 = number of Professional frames produced weekly.
© 2003 Thomson/South-Western 49
Slide
Example 2: Olympic Bike Co.
x1, x2 > 0
© 2003 Thomson/South-Western 50
Slide
Example 2: Olympic Bike Co.
Optimal Solution
© 2003 Thomson/South-Western 51
Slide
Chapter 4
Linear Programming Applications
Blending Problem
Portfolio Planning Problem
Product Mix Problem
Transportation Problem
Data Envelopment Analysis
© 2003 Thomson/South-Western 52
Slide
Blending Problem
© 2003 Thomson/South-Western 53
Slide
Blending Problem
1 9 12 0 .75
2 16 10 14 .90
3 8 10 15 .80
4 10 8 7 .70
© 2003 Thomson/South-Western 54
Slide
Blending Problem
© 2003 Thomson/South-Western 55
Slide
Blending Problem
© 2003 Thomson/South-Western 56
Slide
Blending Problem
Sulution
Thus, the optimal blend is about .10 lb. of grain 1, .21 lb.
of grain 2, .09 lb. of grain 3, and .10 lb. of grain 4. The
mixture costs Frederick’s 40.6 cents.
© 2003 Thomson/South-Western 57
Slide
Portfolio Planning Problem
© 2003 Thomson/South-Western 58
Slide
Portfolio Planning Problem
© 2003 Thomson/South-Western 59
Slide
Portfolio Planning Problem
© 2003 Thomson/South-Western 60
Slide
Portfolio Planning Problem
© 2003 Thomson/South-Western 61
Slide
Portfolio Planning Problem
© 2003 Thomson/South-Western 62
Slide
Portfolio Planning Problem
© 2003 Thomson/South-Western 63
Slide
Portfolio Planning Problem
© 2003 Thomson/South-Western 64
Slide
Portfolio Planning Problem
© 2003 Thomson/South-Western 65
Slide
Portfolio Planning Problem
© 2003 Thomson/South-Western 66
Slide
Portfolio Planning Problem
© 2003 Thomson/South-Western 67
Slide
Problem: Floataway Tours
© 2003 Thomson/South-Western 68
Slide
Problem: Floataway Tours
Data
Maximum Expected
Boat Builder Cost Seating Daily Profit
Speedhawk Sleekboat $6000 3 $ 70
Silverbird Sleekboat $7000 5 $ 80
Catman Racer $5000 2 $ 50
Classy Racer $9000 6 $110
© 2003 Thomson/South-Western 69
Slide
Problem: Floataway Tours
© 2003 Thomson/South-Western 70
Slide
Problem: Floataway Tours
© 2003 Thomson/South-Western 71
Slide
Problem: Floataway Tours
Nonnegativity of variables:
xj > 0, for j = 1,2,3,4
© 2003 Thomson/South-Western 72
Slide
Problem: Floataway Tours
Complete Formulation
© 2003 Thomson/South-Western 73
Slide
Problem: Floataway Tours
Solution Summary
•Purchase 28 Speedhawks from Sleekboat.
•Purchase 28 Classy’s from Racer.
•Total expected daily profit is $5,040.00.
•The minimum number of boats was exceeded by 6
(surplus for constraint #2).
•The minimum seating capacity was exceeded by 52
(surplus for constraint #4).
© 2003 Thomson/South-Western 74
Slide
Problem: U.S. Navy
© 2003 Thomson/South-Western 75
Slide
Problem: U.S. Navy
Data
Destination
Mode San Diego Norfolk
Pensacola
Truck $12 $6 $5
Railroad 20 11 9
Airplane 30 26 28
© 2003 Thomson/South-Western 76
Slide
Problem: U.S. Navy
© 2003 Thomson/South-Western 77
Slide
Problem: U.S. Navy
© 2003 Thomson/South-Western 78
Slide
Problem: U.S. Navy
Solution Summary
•San Diego will receive 1000 lbs. by truck
and 3000 lbs. by airplane.
•Norfolk will receive 2000 lbs. by truck
and 500 lbs. by railroad.
•Pensacola will receive 2500 lbs. by railroad.
•The total shipping cost will be $142,000.
© 2003 Thomson/South-Western 80
Slide
Data Envelopment Analysis
© 2003 Thomson/South-Western 81
Slide
Data Envelopment Analysis
MIN E
s.t. Weighted outputs > Unit k’s output
(for each measured output)
Weighted inputs < E [Unit k’s input]
(for each measured input)
Sum of weights = 1
E, weights > 0
© 2003 Thomson/South-Western 82
Slide
DEA Example: Roosevelt High
© 2003 Thomson/South-Western 83
Slide
DEA Example: Roosevelt High
Input
Roosevelt Lincoln
Washington
Senior Faculty 37 25 23
Budget ($100,000's) 6.4 5.0 4.7
Senior Enrollments 850 700 600
© 2003 Thomson/South-Western 84
Slide
DEA Example: Roosevelt High
Output
Roosevelt Lincoln
Washington
Average SAT Score 800 830 900
High School Graduates 450 500 400
College Admissions 140 250 370
© 2003 Thomson/South-Western 85
Slide
DEA Example: Roosevelt High
Decision Variables
© 2003 Thomson/South-Western 86
Slide
DEA Example: Roosevelt High
Objective Function
MIN E
© 2003 Thomson/South-Western 87
Slide
DEA Example: Roosevelt High
Constraints
Sum of the Weights is 1:
(1) w1 + w2 + w3 = 1
Output Constraints:
Since w1 = 1 is possible, each output of the composite
school must be at least as great as that of Roosevelt:
(2) 800w1 + 830w2 + 900w3 > 800 (SAT Scores)
(3) 450w1 + 500w2 + 400w3 > 450 (Graduates)
(4) 140w1 + 250w2 + 370w3 > 140 (College Admissions)
© 2003 Thomson/South-Western 88
Slide
DEA Example: Roosevelt High
Constraints
Input Constraints:
The input resources available to the composite school is
a fractional multiple, E, of the resources available to
Roosevelt. Since the composite high school cannot use
more input than that available to it, the input
constraints are:
(5) 37w1 + 25w2 + 23w3 < 37E (Faculty)
(6) 6.4w1 + 5.0w2 + 4.7w3 < 6.4E (Budget)
(7) 850w1 + 700w2 + 600w3 < 850E (Seniors)
Nonnegativity of variables:
E, w1, w2, w3 > 0
© 2003 Thomson/South-Western 89
Slide
DEA Example: Roosevelt High
Conclusion
The output shows that the composite school is
made up of equal weights of Lincoln and Washington.
Roosevelt is 76.5% efficient compared to this composite
school when measured by college admissions (because
of the 0 slack on this constraint (#4)). It is less than
76.5% efficient when using measures of SAT scores and
high school graduates (there is positive slack in
constraints 2 and 3.)
© 2003 Thomson/South-Western 90
Slide