CH 7
CH 7
C H A P T E R
7
Computer Methods
TEACHING SUGGESTIONS model). Here, the issue is the source of data. When accountants tell
you a profit contribution is $8.50 per unit, is that figure accurate
Teaching Suggestion 7.1: Draw Constraints for a
within 10% or within 10¢? The solution to an LP problem can
Graphical LP Solution.
change dramatically if the input parameters are not exact. Mention
Explain constraints of the three types (, , ) carefully the first
that sensitivity analysis also has other names, such as right-hand-
time you present an example. Show how to find the X1, X2 inter-
side ranging, post-optimality analysis, and parametric programming.
cepts so a straight line can be drawn. Then provide some practice
in determining which way the constraints point. This can be done
by picking a few X1, X2 coordinates at random and indicating ALTERNATIVE EXAMPLES
which direction fulfills the constraints. Alternative Example 7.1: Hal has enough clay to make 24
Teaching Suggestion 7.2: Feasible Region Is a Convex Polygon. small vases or 6 large vases. He only has enough of a special glaz-
Explain Dantzing’s discovery that all feasible regions are convex ing compound to glaze 16 of the small vases or 8 of the large
(bulge outward) polygons (many-sided figures) and that the opti- vases. Let X1 the number of small vases and X2 the number of
mal solution must lie at one of the corner points. Draw both con- large vases. The smaller vases sell for $3 each, while the larger
vex and concave figures to show the difference. vases would bring $9 each.
Teaching Suggestion 7.3: Using the Iso-Profit Line Method. (a) Formulate the problem.
This method can be much more confusing than the corner point ap- (b) Solve graphically.
proach, but it is faster once students feel comfortable drawing the SOLUTION:
profit line. Start your first line at a profit figure you know is lower (a) Formulation
than optimal. Then draw a series of parallel lines, or run a ruler paral-
OBJECTIVE FUNCTION:
lel, until the furthest corner point is reached. See Figures 7.6 and 7.7.
Maximize $3X1 $9X2
Teaching Suggestion 7.4: QA in Action Boxes in the LP Chapters.
There are a wealth of motivating tales of real-world LP applica- Subject to: Clay constraint: 1X1 4X2 24
tions in Chapters 7–9. The airline industry in particular is a major Glaze constraint: 1X1 2X2 16
LP user. (b) Graphical solution
Teaching Suggestion 7.5: Feasible Region for the
Minimization Problem. 15
Students often question the open area to the right of the constraints
in a minimization problem such as that in Figure 7.10. You need
to explain that the area is not unbounded to the right in a mini-
mization problem as it is in a maximization problem.
X2 = Number of Large Vases
85
86 CHAPTER 7 LINEAR PROGRAMMING MODELS: GRAPHICAL AND COMPUTER METHODS
fifth constraints are nonlinear because they contain terms to the Let: X1 number of air conditioners to be produced
second degree and one-half degree, respectively. X2 number of fans to be produced
7-9. For a discussion of the role and importance of sensitivity Maximize profit 25X1 15X2
analysis in linear programming, refer to Section 7.9. It is needed
subject to 3X1 2X2 240 (wiring)
especially when values of the technological coefficients and con-
tribution rates are estimated—a common situation. When all 2X1 1X2 140 (drilling)
model values are deterministic, that is, known with certainty, sen- X1, X2 0
sitivity analysis from the perspective of evaluating parameter ac-
Profit at point a (X1 0, X2 0) $0
curacy may not be needed. This may be the case in a portfolio se-
lection model in which we select from among a series of bonds Profit at point b (X1 0, X2 120)
whose returns and cash-in values are set for long periods. 25(0) (15)(120) $1,800
7-10. Sensitivity analysis is important in all quantitative model- Profit at point c (X1 40, X2 60)
ing techniques. Especially common is the analysis of inventory 25(40) (15)(60) $1,900
model results in which we test the model’s sensitivity to changes
Profit at point d (X1 70, X2 0)
in demand, lead time, cost, and so on.
25(70) (15)(0) $1,750
7-11. The computer is valuable in (1) solving LP problems
quickly and accurately; (2) solving large problems that might take The optimal solution is to produce 40 air conditioners and 60 fans
days or months by hand; (3) performing extensive sensitivity during each production period. Profit will be $1,900.
analysis automatically; and (4) allowing a manager to try several 7-15.
ideas, models, or data sets.
140
7-12. The student is to create his or her own data and LP formula-
tion. (a) The meaning of the right-hand-side numbers (resources) is
to be explained. (b) The meaning of the constraint coefficient (in 120
terms of how many units of each resource that each product re-
quires) is also to be explained. (c) The problem is to be solved
graphically. (d) A simple sensitivity analysis is to be conducted by 100
changing the contribution rate (Cj value) of the X1 variable. For ex- (26.67, 80)
ample, if C1 was $10 as the problem was originally formulated, the
b
student should resolve with a $15 value and compare solutions. 80
e
7-13. A change in a technological coefficient changes the feasi- X2
ble solution region. An increase means that each unit produced re- c Optimal Solution
quires more of a scarce resource (and may lower the optimal 60
profit). A decrease means that because of a technological advance-
ment or other reason, less of a resource is needed to produce 1
40
unit. Changes in resource availability also change the feasible re-
gion shape and can increase or decrease profit.
Feasible
7-14. 20 Region
140
a d
0
b 0 20 40 60 80 100 120
120 X1
a d
0
0 20 40 60 80 100 120
Number of Air Conditioners, X1
88 CHAPTER 7 LINEAR PROGRAMMING MODELS: GRAPHICAL AND COMPUTER METHODS
300
a
100
Optimal Solution,
250 $2862.50 Profit
50
a Feasible Region b
200
0 c
0 50 100 150 200 250 300 350 400
X2 150 b X1
7-18.
100
60
X1 + X2 = 60
Feasible
50 Region
50
Feasible
c Region
0 40
0 50 100 150 200 250 300 350
X1
X2 30 b
X2 = 20
X1 number of model A tubs produced
X2 number of model B tubs produced 20
a Optimal
Maximize profit 90X1 70X2
Solution
subject to 125X1 100X2 25,000 (steel) X1 = 30
10
20X1 30X2 6,000 (zinc)
X1, X2 0
Profit at point a (X1 0, X2 200) $14,000 0
0 10 20 30 40 50 60
Profit at point b (X1 85.71, X2 142.86) $17,714.10 X1
Profit at point c (X1 200, X2 = 0) $18,000
a
X2 b Feasible
Region
Optimal
Solution
30
20
Optimal Solution
a Feasible Region is
Heavily Shaded Line
X2 20
0 c
b 0 20 40 60
X1
10
7-21.
250,000
X1 + X2 = 100,000
0
0 10 20 30 40
X1 200,000
X1 = 125,000
Corner point b:
optimal solution
(X1 30, X2 30) ⇒ cost 5(30) (4)(30) $2.70
Point b (X1 250,000, X2 0), ROI $20,000
Corner point c:
(X1 60, X2 0) ⇒ cost 5(60) (4)(0) $3.00
90 CHAPTER 7 LINEAR PROGRAMMING MODELS: GRAPHICAL AND COMPUTER METHODS
60
Feasible Region
X2 40
Iso
cos
t Li
ne
=$
100
=1
X
1 +2
20 a X
2
X1 + 3X2 ≥ 90
3X1 + 2X2 ≥ 120
0
0 20 40 60 80 100
X1 Isoprofit Line Indicates
That Optimal Solution
Lies At Point a
CHAPTER 7 LINEAR PROGRAMMING MODELS: GRAPHICAL AND COMPUTER METHODS 91
a(X1 = 0, X2 = 3,333)
1,000
c (X1 = 5,000, X2 = 0)
0
0 1,000 2,000 3,000 4,000 5,000
X1
50 Unbounded Region
4
Feasible d
25 Region
3
a e
0 X2
0 25 50 75 100 125 150
X1 2
7-27. 1
Formulation 1:
8 0
0 1 2 3 4 5 6
X1
6 Formulation 4:
Infeasible
Solution
8
Region
X2 4
6
2
X2 4
0
0 2 4 6 8 10 12 Feasible Region
X1
2
1
Formulation 2:
0
0 1 2 3 4 6 8 10 12
2
X1
X2 1
0
0 1 2 3
X1
CHAPTER 7 LINEAR PROGRAMMING MODELS: GRAPHICAL AND COMPUTER METHODS 93
7-28. Using the isoprofit line or corner point method, we see that 8
point b (where X1 37.5 and X2 75) is optimal if the profit
$3X1 $2X2. If the profit changes to $4.50 per unit of X1, the
optimal solution shifts to point c. If the objective function be-
comes P $3X1 $3X2, the corner point b remains optimal. 6
150
Profit Line for 3X1 + 3X2 Profit = 4X1 + 6X2 = $21.71
X2 4
Optimal solution at
a Profit Line for 4.50X1 + 2X2
100 X1 = 26/7, X2 = 15/7
2
1X1 + 3X2 = 8
X2
b
50 0
Profit Line for 0 2 4 6 8
3X1 + 2X2
X1
7-30. a.
100
c
0
0 50 100 150
X1
X2 4
c
0
Profit = 4X1 + 6X2 = $26 0 25 50 75 100
X1
2
0
0 2 4 6 8
X1
b. 7-32.
150 12
10
Isoprofit Line for
3X1 + 1X2 = $150
100 8
6X1 + 4X2 = 36
X2 X2 6
2 1X1 + 2X2 = 8
Optimal Solution is
Now Here
0 0
0 50 100 150 0 2 4 6 8 10 12
X1 X1
Using the corner point method, we determine that the optimal so-
c. If X1’s profit coefficient was overestimated, but should
lution mix under the new constraint yields a $29 profit, or an in-
only have been $1.25, it is easy to see graphically that
crease of $3 over the $26 profit calculated.
the solution at point b remains optimal.
7-33. Let: X1 number of coconuts carried
7-31.
X2 number of skins carried
100
Maximize profit 60X1 300X2 (in rupees)
subject to 5X1 15X2 300 pounds
1
8 X1 1X2 15 cubic feet
75 X 1, X 2 0
At point a: (X1 0, X2 15), P 4,500 rupees
At point b: (X1 24, X2 12), P 1,440 3,600
5,040 rupees
X2 50 (X
1 = 426/7, X2 = 142/7; Profit = $571/7 ) At point c: (X1 60, X2 0), P 3,600 rupees
The three princes should carry 24 coconuts and 12 lions’ skins.
This will produce a wealth of 5,040 rupees.
25 20
Optimal Solution
Remains at
b Point b
0 a
0 25 50 75 100 15
Number of Lion Skins, X2
X1 Optimal Solution
b
The optimal solution is at point b, but profit has decreased from 10
$6623 to $5717, and the solution has changed considerably.
Feasible
5 Region
c
0
0 30 60 90 120
Number of Coconuts, X1
CHAPTER 7 LINEAR PROGRAMMING MODELS: GRAPHICAL AND COMPUTER METHODS 95
7-34. a. Let: X1 number of pounds of stock X purchased per 0.2X1 0.4X2 0.1X3 0.2X4 26,000 (hours of assembly
cow each month time available)
X2 number of pounds of stock Y purchased per 0.5X1 0.1X2 0.5X3 0.5X4 1,200 (hours of inspection
cow each month time)
X3 number of pounds of stock Z purchased per X1 150 (units of XJ201)
cow each month
X2 100 (units of XM897)
Four pounds of ingredient Z per cow can be transformed to:
X3 300 (units of TR29)
4 pounds (16 oz/lb) 64 oz per cow
X4 400 (units of BR788)
5 pounds 80 oz
7-36. Maximize Z [220 (0.45)(220) 44 20]X1
1 pound 16 oz [175 (0.40)(175) 30 20]X2
8 pounds 128 oz 57X1 55X2
3X1 2X2 4X3 64 (ingredient A requirement) Constraints:
2X1 3X2 1X3 80 (ingredient B requirement) X1 X2 390 production limit
1X1 0X2 2X3 16 (ingredient C requirement) 2.5X1 2.4X2 960 labor hours
6X1 8X2 4X3 128 (ingredient D requirement) Corner points:
X3 5 (stock Z limitation) X1 384, X2 0, profit $21,888
Minimize cost $2X1 $4X2 $2.50X3 X1 0, X2 390, profit $21,450
b. Cost $80 X1 240, X2 150, profit $21,930
X1 40 lbs. of X Students should point out that those three options are so close in
X2 0 lbs. of Y profit that production desires and sensitivity of the RHS and cost
X3 0 lbs. of Z coefficient are important issues. This is a good lead-in to the dis-
cussion of sensitivity analysis. As a matter of reference, the
7-35. Let: X1 number units of XJ201 produced right-hand side ranging for the first constraint is a production
X2 number units of XM897 produced limit from 384 to 400 units. For the second constraint, the hours
X3 number units of TR29 produced may range only from 936 to 975 without affecting the solution.
The objective function coefficients, similarly, are very sensi-
X4 number units of BR788 produced
tive. The $57 for X1 may increase by 29 cents or decrease by $2.
Maximize profit 9X1 12X2 15X3 11X4 The $55 for X2 may increase by $2 or decrease by 28 cents.
subject to 7-37. a. Let: X1 number of MCA regular modems made and
0.5X1 1.5X2 1.5X3 0.1X4 15,000 (hours of wiring sold in November
time available) X2 number of MCA intelligent modems made
0.3X1 0.1X2 0.2X3 0.3X4 17,000 (hours of drilling and sold in November
time available) Data needed for variable costs and contribution margin (refer to
the table on the bottom of this page):
Hence, the ninth constraint is: After 8 simplex iterations, optimal solution is reached. The
8X1 10X2 12X3 12X4 7X5 18X6 20X7 14X7 following is the production schedule:
68,544 X1 1200 X5 560
The following is the production schedule (tons/day); X2 540 X6 720
X1 1,200 X5 560 X3 490 X7 0
X2 540 X6 1,200 X4 160 X8 840
X3 490 X7 425 Objective function value: $428,200
X4 160 X8 840 The caustic soda production is eliminated completely and the
chlorine production is reduced from 1,200 to 720 tons/day.
Objective function value $487,300
Because of the natural gas curtailment, the caustic soda pro-
duction is reduced from 1280 tons/day to 425 tons/day.
For a 40 percent natural gas curtailment, the ninth constraint is:
8X1 10X2 12X3 12X4 7X5 18X6 20X7 14X8
51,408