061833291X ch04
061833291X ch04
4 Linear Programming
B usinesses seek to maximize their profits while operating under budget, sup-
ply, labor, and space constraints. Determining which combination of variables
will result in the maximum profit may be done through the use of linear pro-
gramming. Although many factors affect a business’s profitability, linear pro-
gramming can help a business owner determine the “ideal” conditions for
business success.
171
172 CHAPTER 4 Linear Programming
Linear Inequalities
In many real-life applications, we are interested in a range of possible solutions
instead of a single solution. For example, when you prepare to buy a house, a lender
will calculate the maximum amount of money it is willing to lend you; however,
the lender doesn’t require you to borrow the maximum amount. You may borrow
any amount of money up to the maximum. Recall that in mathematics, we use in-
equalities to represent the range of possible solutions that meet the given criteria.
INEQUALITY NOTATION
x # y is the set of all values of x less than or equal to y.
x $ y is the set of all values of x greater than or equal to y.
x , y is the set of all values of x less than but not equal to y.
x . y is the set of all values of x greater than but not equal to y.
A linear inequality looks like a linear equation with an inequality sign in the
place of the equal sign. Recall that linear inequalities may be manipulated alge-
braically in the same way as linear equations, with one major exception: When we
multiply or divide both sides of an inequality by a negative number, we must re-
verse the direction of the inequality sign. For example, if we multiply both sides
of 23x 1 2y # 10 by 21, we get 3x 2 2y $ 210, not 3x 2 2y # 210.
TABLE 4.1
In Solution
x y x 1 2y Region?
y
21 1 1 No
3 0 1 2 No
2 1 3 7 Yes
x + 2y = 4 2 2 6 Yes
1
3 0 3 No
−1 1 2 3 4 5 6
x 5 2 9 Yes
−1 6 1 8 Yes
FIGURE 4.2 Graphically speaking, what do the four points in the solution region have in com-
mon (see Figure 4.2)?
They are all on the same side of the boundary line! In fact, all points on or
y above this boundary line satisfy the inequality. We represent this notion by shad-
ing the region above the boundary line, as shown in Figure 4.3.
3
Although we checked multiple points in this problem, we need to check only
2 one point off the boundary line in order to determine which region to shade.
The linear inequality graphing process is summarized as follows.
1
x
−1 1 2 3 4 5 6
−1
x + 2y = 4
FIGURE 4.3
174 CHAPTER 4 Linear Programming
FIGURE 4.4 The point (0, 4) is the y-intercept. We graph the x- and y-intercepts and then
draw the line through the intercepts, as shown in Figure 4.4.
Next, we will pick the point (0, 0) to plug into the inequality.
2(0) 1 0 # 4
0#4
The statement is true, so all points on the same side of the line as the origin are
in the solution region. We shade the solution region (see Figure 4.5).
4.1 Graphing Linear Inequalities 175
y
5
4 (0, 4)
3 2x + y = 4
1
(2, 0)
x
−1 1 2
−1
FIGURE 4.5
1 3 5
y#2 x1 Divide both sides by 2
2 2
x y # 21.5x 1 2.5 Write as a decimal (optional)
−1 1
−1 The boundary line is a line with slope 21.5 and y-intercept (0, 2.5). Since y is
less than or equal to the expression 21.5x 1 2.5, we will shade the region below
the line, as shown in Figure 4.6.
FIGURE 4.6
The next two inequalities (x $ 0, y $ 0) limit the solution region to posi-
tive values of x and y. The line x 5 0 is the y axis. The line y 5 0 is the x axis.
Therefore, the solution region of the system of inequalities is the triangular region
to the right of the line x 5 0, above the line y 5 0, and below the line
y 5 21.5x 1 2.5 (see Figure 4.7).
y x=0
3
y = −1.5x + 2.5
2
1 y=0
x
−1 1
−1
FIGURE 4.7
If it is possible to draw a circle around the solution region, the solution re-
gion is bounded. If no circle can be drawn that will enclose the entire solution re-
gion, the solution region is unbounded. The solution region in Example 2 was
bounded. The solution region in Example 3 will be unbounded.
FIGURE 4.8
SOLUTION We will graph the boundary lines by first rewriting them in slope-
intercept form.
Solving the first inequality for y, we get y $ x 1 3 and draw arrows point-
ing to the region above the line y 5 x 1 3. Solving the second inequality for y,
we get y # x 1 1 and draw arrows pointing to the region below the line
y 5 x 1 1 (see Figure 4.9).
y
11 y=x+3
10
9
8
7
6
5
4
3
2 y=x+1
1
0 x
0 1 2 3 4 5 6 7 8 9
FIGURE 4.9
Because the lines have the same slope (m 5 1) , they are parallel. Conse-
quently, the lines will never intersect. As seen in the graph, the two regions also
will never intersect; they will always be separated by the region between the two
lines. Therefore, this system of linear inequalities does not have a solution. That
is, there is no ordered pair (x, y) that can satisfy both inequalities simultaneously.
178 CHAPTER 4 Linear Programming
The corners of a solution region are called corner points. To find the coor-
dinates of each corner point, we solve the system of equations formed by the two
intersecting boundary lines that create the corner.
The coordinates of the third corner point may be found by solving the sys-
tem of equations formed by the boundary lines that make up the corner.
2x 1 y 5 6
2x 1 y 5 0
The second equation may be rewritten as y 5 x. Substituting this result into the
first equation yields
2x 1 y 5 6
2x 1 (x) 5 6 Since y 5 x
3x 5 6
x52
Since x 5 y, the coordinates of the corner point are (2, 2) .
0 0x 1 10y 5 31
x
0 1 2 3 4 5
y 5 3.1
FIGURE 4.11
Substituting this result back into the first equation yields
x1y55
x 1 (3.1) 5 5
x 5 1.9
The coordinates of the first corner point are (1.9, 3.1) . [From the graph, it looked
as if the corner point was (2, 3) .]
180 CHAPTER 4 Linear Programming
The coordinates of the second corner point may be found by solving the sys-
tem of equations formed by the boundary lines that make up the corner.
x1y 55
y52
Since the second equation tells us that y 5 2, we may substitute this value into
the first equation.
x1y55
x 1 (2) 5 5 Since y 5 2
x53
The coordinates of the second corner point are (3, 2) . Unlike the first corner
point, this result agrees with our graphical conclusion.
The coordinates of the third corner point may be found by solving the sys-
tem of equations formed by the boundary lines that make up the corner.
25x 1 5y 5 6
y52
Since the second equation tells us that y 5 2, we may substitute this value into
the first equation.
25x 1 5y 5 6
25x 1 5(2) 5 6 Since y 5 2
25x 1 10 5 6
25x 5 24
x 5 0.8
The coordinates of the third corner point are (0.8, 2) . [From the graph, it looked
as if the corner point was (0.75, 2) .]
(Continued)
4.1 Graphing Linear Inequalities 181
SOLUTION Let c be the number of hours the student works in the computer lab
and p be the number of hours he works delivering pizza. He can work at most
30 hours. This is represented by the inequality
c 1 p # 30 The maximum number of work hours is 30
The amount he earns working in the lab is 8.00c, and the amount of money he
earns delivering pizza is 10.50p. His total income must be at least $252. That is,
8c 1 10.5p $ 252 The minimum amount of income is $252
182 CHAPTER 4 Linear Programming
Solving the inequalities for p in terms of c, we get the following system of in-
equalities and its associated graph (Figure 4.12). (We add the restrictions
p $ 0 and c $ 0, since it doesn’t make sense to work a negative number of hours
at either job.)
p # 2c 1 30
16
p$2 c 1 24 (In decimal form, p $ 20.7619c 1 24 approximately)
21
p $ 0, c $ 0
p
(0, 30)
30
28
26
(0, 24)
24
22 p = −c + 30
20
18
16
14
12 p ≈ −0.7619c + 24
10
8
6 (25.2, 4.8)
4
2
0 c
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34
FIGURE 4.12
Every point of the solution region represents a combination of hours at the two
jobs that will result in earnings of at least $252.
The corner points of the solution region are (0, 24) , (0, 30) , and (25.2, 4.8) .
(The last point is found by calculating the intersection of the two boundary lines.)
Let’s calculate the student’s weekly earnings at the corner points and some of the
other points in the region (see Table 4.2).
TABLE 4.2
Weekly
Lab Hours Pizza Hours Earnings
Corner point 0 24 $252.00
Corner point 0 30 $315.00
Corner point 25.2 4.8 $252.00
Interior point 5 25 $302.50
Interior point 10 20 $290.00
Interior point 15 14 $267.00
4.1 Graphing Linear Inequalities 183
The weekly earnings vary; however, in every case the number of work hours is
less than or equal to 30 hours and the earnings are greater than or equal to $252.
4.1 Summary
In this section, you learned how to graph linear inequalities. You discovered that
the solution to a system of linear inequalities is the intersection of the graphs of
the solution regions of the individual inequalities.
4.1 Exercises
In Exercises 11–25, graph the solution region of the 26. Nutritional Content A 32-gram serving
system of linear equations. If there is no solution, of Skippy® Creamy Peanut Butter contains
explain why. 150 milligrams of sodium and 17 grams of fat. A
56-gram serving of Bumble Bee® Chunk Light
11. 24x 1 y $ 2 12. 25x 1 y $ 0 Tuna in Water contains 250 milligrams of sodium
22x 1 y $ 1 2x 1 y # 4 and 0.5 gram of fat. (Source: Product labeling.) Some
x#0 y$0 health professionals advise that a person on a 2500-
13. 22x 1 6y # 8 14. 10x 2 y $ 12 calorie diet should consume no more than 2400 mg
4x 2 12y # 26 9x 2 2y $ 2 of sodium and 80 grams of fat. Graph the region
showing all possible serving combinations of
15. 3x 2 2y # 4 16. 9x 2 6y # 0 peanut butter and tuna that a person could eat and
11x 2 20y $ 2 4x 1 5y # 23 still meet the dietary guidelines.
17. x 2 y # 25 18. 2x 1 5y # 2 27. Nutritional Content A Nature Valley®
9x 1 y # 25 3x 2 5y # 3 Strawberry Yogurt Chewy Granola Bar
19. 6x 1 2y # 10 20. x2 y$3 contains 130 milligrams of sodium and 3.5 grams
2x 2 2y $ 25 6x 1 7y # 44 of fat. A Nature’s Choice® Multigrain Strawberry
x$0 6x 2 7y # 16 Cereal Bar contains 65 milligrams of sodium and
y$0 1.5 grams of fat. (Source: Product labeling.) Some
184 CHAPTER 4 Linear Programming
29. Wages A salaried employee earns $900 per week 33. Graph the solution region of the system of linear
managing a copy center. He is required to work a inequalities and identify the coordinates of the
minimum of 35 hours but no more than 45 hours corner points.
weekly. As a side business, he earns $25 per hour 2x 1 y # 0
designing brochures for local business clients. In 2x 2 y $ 24
order to maintain his standard of living, he must
y$2
earn $1100 per week. In order to maintain his
quality of life, he limits his workload to 50 hours 34. Write a system of inequalities whose solution
per week. Given that he has no control over the region has the corner points (0, 0) , (1, 3) , (3, 5) ,
number of hours he has to work managing the and (2, 1) .
copy center, will he be able to consistently meet
35. Write a system of inequalities whose solution
his workload and income goals? Explain.
region has the corner points (1, 1) , (1, 3) , (5, 3) ,
30. Commodity Prices Today’s Market and (2, 1) .
Prices (www.todaymarket.com) is a daily
36. Write a system of inequalities whose unbounded
fruit and vegetable wholesale market price service.
solution region has the corner points (0, 5) ,
Produce retailers who subscribe to the service can
(2, 1) , and (5, 0) .
use the wholesale prices to aid them in setting
retail prices for the fruits and vegetables they sell. 37. Write a system of inequalities whose unbounded
A 25-pound carton of peaches holds 60 medium solution region has the corner points (0, 5) ,
peaches or 70 small peaches. In August 2002, the (4, 4) , and (5, 0) .
wholesale price for local peaches in Los Angeles
38. A student concludes that the corner points of a
was $9.00 per carton for medium peaches and
solution region defined by a system of linear
$10.00 per carton for small peaches. (Source:
inequalities are (0, 0) , (1, 1) , (0, 2) , and (2, 2) .
Today’s Market Prices.) A fruit vendor has budgeted
After looking at the graph of the region, the
up to $100 to spend on peaches. He estimates that
instructor immediately concludes that the student
weekly demand for peaches is at least 420 peaches
is incorrect. How did the instructor know?
but no more than 630 peaches. He wants to buy
enough peaches to meet the minimum estimated 39. Is it possible to have a bounded solution region
demand but no more than the maximum estimated with exactly one corner point? If so, give a system
demand. Graph the region showing which small- of inequalities whose solution region is bounded
and medium-size peach carton combinations meet and has exactly one corner point.
his demand and budget restrictions.
40. Is it possible to have an unbounded solution
region with exactly one corner point? If so, give a
Exercises 31– 40 are intended to challenge your
system of inequalities whose solution region is
understanding of the graphs of linear inequalities.
unbounded and has exactly one corner point.
31. Graph the solution region of the system of linear
inequalities and identify the coordinates of the
corner points.
4.2 Solving Linear Programming Problems Graphically 185
In Section 4.1, we gave the example of a student earning $10.50 an hour de-
livering pizza and $8.00 an hour working in a campus computer lab. He had only
30 hours per week to work, and he had to earn at least $252 during that period.
We let p be the number of hours he spent delivering pizza and c be the number of
hours he spent working in the computer lab. We had the constraints
c 1 p # 30 He can work at most 30 hours
8c 1 10.5p $ 252 He must earn at least $252
p $ 0, c $ 0 He must work a nonnegative number of hours at each job
which we rewrote as
p # 2c 1 30
16
p$2 c 1 24
21
p $ 0, c $ 0
186 CHAPTER 4 Linear Programming
Recall that the graph of the feasible region for the computer lab and pizza de-
livery problem had the corner points (0, 24) , (0, 30) , and (25.2, 4.8) , as shown
in Figure 4.13.
4.2 Solving Linear Programming Problems Graphically 187
p
(0, 30)
30
28
26
(0, 24)
24
22 p = −c + 30
20
18
16
14
12 p ≈ −0.7619c + 24
10
8
6 (25.2, 4.8)
4
2
0 c
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34
FIGURE 4.13
The solution to each one of the linear programming problems will occur at one of
these points.
1. What is the largest amount of money he can earn?
Maximize z 5 8c 1 10.5p.
We evaluate the objective function at each corner point (see Table 4.3).
TABLE 4.3
Corner Point Objective Function
Total Earnings
Computer Lab Pizza Delivery (in dollars)
Hours (c) Hours ( p) (z 5 8c 1 10.5p)
0 24 252
0 30 315
25.2 4.8 252
The maximum value of z occurs at corner point (0, 30). The optimal solution
is c 5 0 and p 5 30. To maximize his earnings, he should work 0 hours in
the lab and 30 hours delivering pizza.
2. What is the least number of hours he can work?
Minimize z 5 c 1 p.
We evaluate the objective function at each corner point (see Table 4.4).
188 CHAPTER 4 Linear Programming
TABLE 4.4
Corner Point Objective Function
Computer Lab Pizza Delivery Total Work Hours
Hours (c) Hours (p) ( z 5 c 1 p)
0 24 24
0 30 30
25.2 4.8 30
The minimum value of z occurs at corner point (0, 24). The optimal solution
is c 5 0 and p 5 24. To minimize his work hours, he should work 0 hours
in the lab and 24 hours delivering pizza.
3. What is the maximum number of hours he can work in the computer lab?
Maximize z 5 c.
We evaluate the objective function at each corner point (see Table 4.5).
TABLE 4.5
Corner Point Objective Function
Computer Pizza Delivery Lab Work Hours
Lab Hours (c) Hours ( p) (z 5 c)
0 24 0
0 30 0
25.2 4.8 25.2
The maximum value of z occurs at corner point (25.2, 4.8). The optimal so-
lution is c 5 25.2 and p 5 4.8. The maximum amount of time he can work
in the computer lab is 25.2 hours. He will still have to work 4.8 hours deliv-
ering pizza to reach his earnings goal.
Why do we have to check only the corner points of the feasible region? We’ll
address this question by considering a “family” of objective functions. Suppose
we are asked to maximize the objective function z 5 3x 1 y subject to the fol-
lowing constraints:
4x 1 y # 12
2x 1 y # 8
x$0
y$0
The graph of the feasible region and the coordinates of the corner points are
shown in Figure 4.14.
4.2 Solving Linear Programming Problems Graphically 189
12
4x + y = 12
10
(0, 8)
8
6
(2, 4)
4
2x + y = 8
2
(0, 0) (3, 0)
x
−1 1 2 3 4
−2
FIGURE 4.14
12
z = 12
10
z = 10
8
z=8
6
z=6
4
z=4
2
z=2
x
−1 1 2 3 4
−2
FIGURE 4.15
Recall that we want to maximize the objective function subject to the con-
straints. Observe that although z 5 12 is the largest value of z shown in the fig-
ure, the line 3x 1 y 5 12 does not intersect the feasible region. Consequently, no
feasible solution lies on the line 3x 1 y 5 12.
The first line above the feasible region that intersects the feasible region is
the line 3x 1 y 5 10. This line intersects the feasible region at a single point: the
corner point (2, 4) . At this corner point, z 5 10. All other objective function lines
that cross the feasible region take on values of z less than 10. Therefore, the
objective function z 5 3x 1 y has an optimal solution at (2, 4) . At this point, the
190 CHAPTER 4 Linear Programming
objective function takes on its maximum value: z 5 10. This value of the objec-
tive function is referred to as the optimal value for the linear programming prob-
lem. Regardless of the objective function, the maximum (or minimum) value of
the objective function will occur at a corner point of the feasible region. An ar-
gument similar to that given here can be made for any objective function and any
feasible region.
The process of solving linear programming problems graphically is summa-
rized in the following box.
FIGURE 4.16
4.2 Solving Linear Programming Problems Graphically 191
TABLE 4.6
FIGURE 4.17
x 5 0.6
y 5 (0.6) 1 1 Substitute x 5 0.6 into y 5 x 1 1
y 5 1.6
The second corner point is (0.6, 1.6). Substituting each of the points into the
objective function, z 5 2x 1 5y, we obtain the values in Table 4.7.
192 CHAPTER 4 Linear Programming
TABLE 4.7
Corner Point Objective Function
x y z 5 2x 1 5y
0 4 20
0.6 1.6 9.2
The objective function has a minimum at (0.6, 1.6). At that point, z 5 9.2.
SOLUTION After graphing each of the five boundary lines, we will use arrows to
show which side of the boundary line will be shaded, as shown in Figure 4.18. This
technique is especially helpful when working with a large number of constraints.
y
x=2
9
8
6x + y = 6
7
(0, 6)
6 −2x + y = 1
5 (2, 5)
4
x=0 3
(0.625, 2.25) y=1
2
1
x
−1 1 2 3
−1
FIGURE 4.18
We shade the region that has boundary lines with all arrows pointing to the inte-
rior of the region. Notice that the line y 5 1 does not form a boundary line of the
feasible region. This is okay so long as the feasible region is on the appropriate
4.2 Solving Linear Programming Problems Graphically 193
side of y 5 1. Since the arrows on the line y 5 1 point toward the side that con-
tains the feasible region, the constraint y $ 1 is satisfied.
The first corner point (0, 6) is easily determined, since it is the y-intercept of
the boundary line 6x 1 y 5 6. The second corner point occurs at the intersection
of 6x 1 y 5 6 and 22x 1 y 5 1. We must solve the system of equations
6x 1 y 5 6
22x 1 y 5 1
Subtracting the second equation from the first equation yields
8x 5 5
x 5 0.625
To determine the value of y, we substitute the x value back into the equation
22x 1 y 5 1.
22x 1 y 5 1
22(0.625) 1 y 5 1 Since x 5 0.625
21.25 1 y 5 1
y 5 2.25
The second corner point is (0.625, 2.25) .
The third point occurs at the intersection of x 5 2 and 22x 1 y 5 1. The x
coordinate of the corner point is x 5 2. To determine the y coordinate, we sub-
stitute this result into 22x 1 y 5 1.
22x 1 y 5 1
22(2) 1 y 5 1 Since x 5 2
24 1 y 5 1
y55
The third corner point is (2, 5) .
With the corner points identified, we are ready to evaluate the objective func-
tion z 5 25x 1 3y at each corner point, as shown in Table 4.8.
TABLE 4.8
Corner Point Objective Function
x y z 5 25x 1 3y
0 6 18
0.625 2.25 3.625
2 5 5
Since we are looking for the minimum value of the objective function, the opti-
mal solution is (0.625, 2.25) and the optimal value is 3.625.
Real-Life Applications
As shown in Examples 4 and 5, many real-life problems can be analyzed using
the techniques of linear programming.
194 CHAPTER 4 Linear Programming
TABLE 4.9
As of 6/30/04
CREF Variable
Annuity Accounts 10-Year Average
Bond Market 7.15%
Social Choice 10.31%
Source: www.tiaa-cref.com.
An investor wants to invest at least $3000 in the Bond Market and Social
Choice accounts. He assumes that he will be able to get a return equal to the
10-year average, and he wants the total return on his investment to be at least
9 percent. He assigns each share in the Bond Market account a risk rating of 2
and each share in the Social Choice account a risk rating of 4. The approximate
share price at the end of June 2004 was $74 per share for the Bond Market ac-
count and $102 per share for the Social Choice account. He will use these prices
in his analysis. How many shares of each account should he buy in order to mini-
mize his overall risk? [Note that fractions of shares may be purchased. Also, to
make computations easier, round each percentage to the nearest whole-number
percent (i.e., 10.31 percent 5 10 percent).]
SOLUTION Let x be the number of shares in the Bond Market account and y
be the number of shares in the Social Choice account. The rounded rate of return
for the Bond Market account is 7 percent, and that for the Social Choice account
is 10 percent. The share price for the Bond Market account is $74, and that for the
Social Choice account is $102. Each Bond Market share has a risk rating of 2, and
each Social Choice share has a risk rating of 4. We want to minimize the overall
risk. That is, we want to minimize z 5 2x 1 4y.
The amount of money invested in each account is equal to the share price
times the number of shares. The amount invested is 74x for the Bond Market ac-
count and 102y for the Social Choice account. The total amount invested is given
by the equation
74x 1 102y $ 3000 The total amount invested is at least $3000
The dollar amount of the return on the investment is equal to the product of
the rate and the amount invested. The return on the Bond Market account is
(0.07)(74x) 5 5.18x, and the return on the Social Choice account is
(0.10)(102y) 5 10.20y. Since we want to earn at least 9 percent on the total
amount of money invested (74x 1 102y) , the dollar amount of the minimum
combined return is (0.09)(74x 1 102y) 5 6.66x 1 9.18y. The combined return
is given by the equation
5.18x 1 10.20y $ 6.66x 1 9.18y The combined return is at least 9 percent of
the amount invested
21.48x 1 1.02y $ 0
4.2 Solving Linear Programming Problems Graphically 195
Combining the objective function and each of the constraints yields the following
linear programming problem:
Minimize z 5 2x 1 4y
74x 1 102y $ 3000 The total amount invested is at least
$3000
21.48x 1 1.02y $0 The combined return is at least 9 per-
Subject to
cent of the amount invested.
x $0
y $0
The graph of the feasible region is shown in Figure 4.19.
y
50
45 x=0
40
35 −1.48x + 1.02y = 0
(0, 29.412)
30
25
20 74x + 102y = 3000
15
10 (13.514, 19.608)
5 y=0
0 x
0 5 10 15 20 25 30 35 40
FIGURE 4.19
The first corner point is the y-intercept of the line 74x 1 102y 5 3000.
3000
Since < 29.412, the corner point is (0, 29.412) .
102
The second corner point is the point of intersection of 74x 1 102y 5 3000
and 21.48x 1 1.02y 5 0. We must solve the system of equations
74x 1 102y 5 3000
21.48x 1 1.02y 5 0
We will find the solution using matrices.
c d
74 102 3000
21.48 1.02 0
c d
74 102 3000
222 0 3000 R1 2 100R2
c d
0 306 6000 3R1 2 R2
222 0 3000
c d
0 1 19.608 1>306 R1
1 0 13.514 1>222 R2
c d
1 0 13.514 R2
0 1 19.608 R1
TABLE 4.10
Corner Point Objective Function
x y z 5 2x 1 4y
0 29.412 117.648
13.514 19.608 105.460
The optimal solution is (13.514, 19.608) , and the optimal value is 105.460.
The risk is minimized when 13.514 shares of the Bond Market account and
19.608 shares of the Social Choice account are purchased.
Did the rounding of the percentages and share prices affect the solution? Yes.
However, since the 10-year average rate of return on each account was not guar-
anteed, the investor decided that rounding the percentages to whole-number per-
cents and rounding the share prices to whole-dollar amounts was good enough for
modeling purposes.
TABLE 4.11
Corner Point Objective Function
Single (s) Three-Pack (t) C 5 2.5s 1 6t
20 0 50
2
0 63 40
Since the smallest value of the objective function is 40, the optimal solution is
A 0, 6 23 B and the optimal value is 40. However, since we can’t order a fraction of a
three-pack, we must find the whole-number solution. Our natural tendency might
be to round the optimal solution to (0, 7) . However, doing so also alters the op-
timal value, as shown in Table 4.12.
t
8 Subproblem 2
7 TABLE 4.12
6 Rounded Optimal Solution Objective Function
5
4 Subproblem 1 Single (s) Three-Pack (t) C 5 2.5s 1 6t
3 0 7 42
2
1
s
Using whole-number values for s and t, is it possible to further reduce the cost?
−2 2 4 6 8 10 12 14 16 18 20 We will investigate this question by adding additional constraints. We create Sub-
problem 1 by adding the constraint t # 6 and Subproblem 2 by adding the con-
FIGURE 4.21 straint t $ 7, as shown in Figure 4.21. (These are the whole-number values on
2
either side of 6 .)
3
These new constraints split the feasible region into two separate regions. We
will solve Subproblem 1 first. The unbounded feasible region of Subproblem 1
has corner points (20, 0) and (2, 6).
198 CHAPTER 4 Linear Programming
TABLE 4.13
Corner Point of Subproblem 1 Objective Function
Single (s) Three-Pack (t) C 5 2.5s 1 6t
20 0 50
2 6 41
The optimal solution for Subproblem 1 is (2, 6), as shown in Table 4.13. Since
this is a whole-number solution, it makes sense in the context of the problem.
When two single cartridges and six three-packs are purchased, the total ink cost
is $41.
The feasible region of Subproblem 2 has the corner point (0, 7) (see
Table 4.14).
TABLE 4.14
Corner Point of Subproblem 2 Objective Function
Single (s) Three-Pack (t) C 5 2.5s 1 6t
0 7 42
The optimal solution for Subproblem 2 is (0, 7). Since this is also a whole-num-
ber solution, it makes sense in the context of the problem. When no single car-
tridges and seven three-packs are purchased, the total ink cost is $42.
The optimal whole-number solution for the entire linear programming prob-
lem will be the subproblem solution that yields the smallest value of the objective
function. The whole-number solution for Subproblem 1, (2, 6), had optimal value
$41. The whole-number solution for Subproblem 2, (0, 7), had optimal value $42.
Comparing the results of Subproblems 1 and 2, we conclude that the optimal
whole-number solution of the entire problem is (2, 6) . When two single car-
tridges and six three-packs are ordered, the overall cost is minimized. (It is im-
portant to note that if the business owner spent the extra dollar and ordered no
single cartridges and seven three-packs, she would get 21 cartridges instead of 20
cartridges. She may decide that the extra cartridge is worth the extra dollar.)
4.2 Summary
In this section, you learned how a mathematical method called linear program-
ming can help businesses determine the most cost-effective way to manage their
resources. You used linear programming to optimize an objective function subject
to a set of linear constraints.
4.2 Solving Linear Programming Problems Graphically 199
4.2 Exercises
each share in the Stock account a risk rating of 6 The company assembles standard and deluxe
and each share in the Growth account a risk rating first aid kits for sale to consumers. A standard
of 7. The approximate share price at the end of first aid kit contains 40 plastic adhesive bandages
June 2004 was $174 per share for the Stock and 20 alcohol wipes. A deluxe first aid kit
account and $55 per share for the Growth contains 50 plastic adhesive bandages and
account. He will use these prices in his analysis. 28 alcohol wipes.
How many shares of each account should he buy The company makes a profit of $3 from each
in order to minimize his overall risk? [Note that standard first aid kit sold and $4 from each deluxe
fractions of shares may be purchased. Also, to first aid kit sold. Assuming that every kit
make computations easier, round each percentage produced will be sold, how many of each type of
to the nearest whole-number percent (i.e., for kit should the company assemble in order to
9.97 percent, use 10 percent).] maximize profit?
24. Investment Choices An investor wants 27. Furniture Production In June 2004, an
to invest at least $5000 in the Global online furniture retailer offered the
Equities and Equity Index accounts shown in following items at the indicated prices:
Exercise 23. She assumes that she will be able to Teak Double Rocker, $745
get a return equal to the 10-year average, and she Teak Tennis Bench, $124
wants the total return on her investment to be at (Source: www.outdoordecor.com.)
least 10 percent. She assigns each share in the Suppose that the number of hours required to
Global Equities account a risk rating of 6 and produce each item is as shown in the following
each share in the Equity Index account a risk table.
rating of 5. The approximate share price at the end
of June 2004 was $70 per share for the Global Cut Finish Package
Equities account and $72 per share for the Equity
Index account. She will use these prices in her Rocker 4 7 1
analysis. How many shares of each account Bench 1 3 1
should she buy in order to minimize her overall
risk? [Note that fractions of shares may be The company has a maximum of 360 labor hours
purchased. Also, to make computations easier, available in the Cutting Department, a maximum
round each percentage to the nearest whole- of 730 labor hours available in the Finishing
number percent (i.e., for 11.34 percent, use Department, and a maximum of 150 labor hours
11 percent).] available in the Packaging Department. Suppose
25. Pet Nutrition: Food Cost that the company makes a profit of $314 from the
PETsMART.com sold the following sale of each rocker and $57 from the sale of each
varieties of dog food in June 2003: bench. Assuming that all items produced are sold,
how many rockers and how many benches should
Nature’s Recipe Venison Meal & Rice Canine, the company produce in order to maximize profit?
20 percent protein, $21.99 per 20-pound bag
PETsMART Premier Oven Baked Lamb Recipe, 28. Furniture Production In June 2004, an
25 percent protein, $22.99 per 30-pound bag online furniture retailer offered the
(Source: www.petsmart.com.) following items at the indicated prices:
A dog breeder wants to make at least 300 Avalon Teak Armchair, $378
pounds of a mix containing at most 22 percent Teak Tennis Bench, $124
protein. How many bags of each dog food variety (Source: www.outdoordecor.com.)
should the breeder buy in order to minimize cost? Suppose that the number of hours required to
(Hint: Note that each bag is a different weight.) produce each item is as shown in the following table.
26. First Aid Kit Supplies Safetymax.com
sells first aid supplies to businesses. A Cut Finish Package
company that assembles first aid kits for Armchair 2 4 1
consumers purchases 3500 1s 3 3s plastic
Bench 1 3 1
adhesive bandages and 1800 alcohol wipes from
Safetymax.com.
202 CHAPTER 4 Linear Programming
The company has a maximum of 200 labor hours The school anticipates that 153 students will go
available in the Cutting Department, a maximum of on the trip. Each 10-passenger vehicle requires
480 labor hours available in the Finishing one chaperone, and each 57-passenger vehicle
Department, and a maximum of 150 labor hours requires six chaperones. (The chaperones will be
available in the Packaging Department. Suppose the traveling with the students.) At most 24
company makes a profit of $181 from the sale of chaperones are available to go on the trip. How
each armchair and $57 from the sale of each bench. many of each type of vehicle should the PTA
Assuming that all items produced are sold, how charter in order to minimize transportation costs?
many armchairs and how many benches should the
31. Television Advertising For the week of
company produce in order to maximize profit?
July 5-July 11, 2004, a national media
29. Transportation Costs A high school research company estimated that 14,834,000
PTA in southern Florida is planning an viewers watched CSI and 10,557,000 viewers
overnight trip to Orlando, Florida, for its watched Law and Order. (Source: www.nielsenmedia
graduating class. A Plus Transportation, a local .com.)
charter transportation company, offers the The amount of money a network can charge for
following rates (as of December 2003): advertising is based in part on the size of the
viewing audience. Suppose that a 30-second
Overnight Charter commercial running on CSI costs $3100 per spot
Rate (for 2 Days of and a 30-second commercial running on Law and
Vehicle Capacity Service) Order costs $2500 per spot. A beverage company
29 $1000 is willing to spend up to $87,000 for commercials
run during episodes of the two programs. The
49 $1800 company requires at least 10 spots to be run on
Source: www.buscharter.net. each program. How many spots on each program
should be purchased in order to maximize the
The school anticipates that 135 students will go number of viewers?
on the trip. Each 29-passenger vehicle requires
two chaperones, and each 49-passenger vehicle 32. Television Advertising For the week of
requires four chaperones. (The chaperones will be July 5-July 11, 2004, a national media
traveling with the students.) At most 16 research company estimated that 14,834,000
chaperones are available to go on the trip. How viewers watched CSI and 10,557,000 viewers
many of each type of vehicle should the PTA watched Law and Order. (Source: www
charter in order to minimize transportation costs? .nielsenmedia.com.)The amount of money a
network can charge for advertising is based in part
30. Transportation Costs A high school on the size of the viewing audience. Suppose that
PTA in southern Florida is planning an a 30-second commercial running on CSI costs
overnight trip to Orlando, Florida, for its $3100 per spot and a 30-second commercial
graduating class. A Plus Transportation, a local running on Law and Order costs $2500 per spot.
charter transportation company, offers the An athletic gear company is willing to spend up to
following rates (as of December 2003). $68,500 for commercials run during episodes of
the two programs. The company requires at least
Overnight Charter 10 spots to be run on CSI and at least 15 spots on
Rate (for 2 Days of Law and Order. How many spots on each
Vehicle Capacity Service) program should be purchased in order to
10 $625 maximize the number of viewers?
57 $1995
Source: www.buscharter.net.
4.2 Solving Linear Programming Problems Graphically 203
For Exercises 33 –35, use the following data for maximizing total dividends. How many shares of
publicly traded recreational vehicle companies. The each company’s stock should the investor buy?
information was accurate as of July 16, 2004. (Assume that portions of shares may be
purchased.)
Earnings/ Dividend/
Share Price Share Share Exercises 36–40 are intended to challenge your
Company (dollars) (dollars) (dollars) understanding of linear programming.
Harley- 36. Consider the following linear programming
Davidson, problem.
Inc. (HDI) 62.70 2.56 0.40 Maximize P 5 3x 1 4y
Polaris x1y #2
Industries Subject to 3x 1 5y #9
Inc. (PII) 50.50 2.50 0.92
x $ 0, y $ 0
Winnebago
Can a whole-number solution to a linear
Industries
programming problem be obtained by simply
Inc. (WGO) 33.42 1.80 0.20
rounding the noninteger solution to whole-number
Source: moneycentral.msn.com. values? Explain.
33. Investment Choices An investor has 37. Is it possible for a corner point (a, b) to
up to $4000 to invest in Harley- simultaneously minimize and maximize an
Davidson, Inc., and Polaris Industries, Inc. The objective function? If yes, give an example.
investor wants to earn at least $60 in dividends 38. Give an example of a linear programming
while maximizing total earnings. How many problem that does not have a solution.
shares of each company’s stock should the
investor buy? (Assume that portions of shares 39. Is it possible for the feasible region of a linear
may be purchased.) programming problem not to have any corner
points? If yes, give an example.
34. Investment Choices An investor has
up to $10,000 to invest in Harley- 40. Given the following linear programming problem,
Davidson, Inc., and Winnebago, Inc. The investor what is the maximum possible number of corner
wants to earn at least $50 in dividends while points the feasible region could have?
maximizing total earnings. How many shares of Maximize P5x1y
each company’s stock should the investor buy? 2ax 1 by # c
(Assume that portions of shares may be
Subject to 2dx 1 fy # g
purchased.)
x $ 0, y $ 0
35. Investment Choices An investor has
Assume a, b, c, d, f, and g are positive.
up to $17,000 to invest in Polaris
Industries, Inc., and Winnebago, Inc. The investor
wants to have total earnings of at least $900 while
204 CHAPTER 4 Linear Programming
value of the objective function until it attains its maximum value. Remarkably, the
method doesn’t require that all corner points be tested, a fact that is appreciated
by those solving linear programming problems with hundreds of corner points.
Although the simplex method may be used for linear programming problems with
any number of decision variables, we will restrict our use to problems with four
variables or less. Larger problems are typically solved using computers.
We will introduce the simplex method with a two-variable example before
formally listing the steps of the method.
Suppose we are asked to use the simplex method to maximize P 5 6x 1 2y
subject to the constraints
y 2x 1 y # 10
12 x=0
11 x1y#8
10
9 (0, 8) x$0
8 2x + y = 10
7 y$0
6
5 (2, 6) Since the decision variables are nonnegative and additional constraints are of
4 x+y=8 the form Ax 1 By 1 Cz 1 # # # # M with M nonnegative, this linear program-
3 ming problem is a standard maximization problem. Consequently, we will be able
2 y=0
1 (0, 0) (5, 0)
to maximize the objective function using the simplex method. Although this is not
x part of the simplex method, we will draw the graph of the feasible region to give
−1 1 2 3 4 5 6 7 8 9
you a frame of reference as we work through the problem. The feasible region has
FIGURE 4.22 corner points (0, 0), (0, 8), (2, 6), and (5, 0) and is shown in Figure 4.22.
The value of the objective function, P 5 6x 1 2y, varies depending upon the
corner point. Substituting each corner point (x, y) into P 5 6x 1 2y and solving
for P yields Table 4.15.
TABLE 4.15
Objective Function
Corner Point Value
x y P 5 6x 1 2y
0 0 0
0 8 16
2 6 24
5 0 30
because it “takes up the slack.” That is, s adds in whatever value is necessary to
make the left-hand side of the equation equal 10. The value of s will vary de-
pending upon the value of x and y (see Table 4.16).
TABLE 4.16
Corner Point Slack Variable Value
x y s 5 10 2 2x 2 y
0 0 10
0 8 2
2 6 0
5 0 0
TABLE 4.17
Corner Point Slack Variable Value
x y t582x2y
0 0 8
0 8 0
2 6 0
5 0 3
The variables of the columns of the simplex tableau that contain exactly one
nonzero entry are called active (basic) variables. The variables of the columns
that contain more than one nonzero entry are called inactive (nonbasic)
variables. For the initial tableau, the variables s, t, and P are the active variables,
since their corresponding columns in the tableau contain exactly one nonzero
value. The variables x and y are the inactive variables in the initial simplex
tableau, since their corresponding columns contain more than one nonzero value.
x y s t P
2 1 1 0 0 10 Constraint 1
£ 1 1 0 1 0 8§ Constraint 2
26 22 0 0 1 0 Objective function
The basic feasible solution of the tableau always corresponds with the origin.
The solution is obtained by substituting x 5 0 and y 5 0 into the equations that
generated the tableau.
2(0) 1 (0) 1 s 5 10 Constraint 1
(0) 1 ( 0) 1 t 5 8 Constraint 2
26(0) 2 2(0) 1 P 5 0 Objective function
Simplifying yields
s 5 10 Constraint 1
t58 Constraint 2
P50 Objective function
These results are summarized in Table 4.18.
TABLE 4.18
Objective
Corner Point Function Value Slack Variable Value
x y P 5 6x 1 2y s t
0 0 0 10 8
Why do we pick the column with the negative number that has the largest
magnitude? Recall that we are trying to maximize the objective function
P 5 6x 1 2y. As was pointed out earlier, the value of x contributes more to P
than the value of y because of the differences in their coefficients. Picking the col-
umn with the negative number of the largest magnitude guarantees that we are
making the variable that contributes the most to the value of P as large as possible.
The pivot is the nonzero entry in the pivot column that will remain after we
zero out the other column entries. It must be a positive number. If the pivot col-
umn contains more than one positive number, we will select the pivot by using a
test ratio. To calculate the test ratio, we divide the rightmost entry of each row
(excluding the bottom row) by the positive entry in the pivot column of that row.
x y s t P
2 1 1 0 0 10 10>2 5 5 d Test ratio for first row
£ 1 1 0 1 0 8§ 8>1 5 8 d Test ratio for second row
26 22 0 0 1 0
n
Pivot column
4.3 Solving Standard Maximization Problems with the Simplex Method 209
Since the x column is the pivot column, these test ratios correspond geometrically
with the x-intercepts of the constraints (see Figure 4.23).
y
x=0
10
2x + y = 10
8
4
Corresponds with
test ratio of 8
2 y=0
(5, 0) (8, 0)
0 x
0 1 2 3 4 5 6 7 8 9
FIGURE 4.23
We select as the pivot the pivot-column entry that has the smallest test ratio.
That is, we pick the x-intercept on the graph that is closest to the origin to be the
pivot. This ensures that we remain in the feasible region. In this case, the first row
of the tableau had the smallest test ratio. Consequently, the pivot will be the 2 in
the first row and first column.
Pivot
mx y s t P
Pivot row k 2 1 1 0 0 10 10>2 5 5 d Test ratio for first row
£ 1 1 0 1 0 8§ 8>1 5 8 d Test ratio for second row
26 22 0 0 1 0
n
Pivot column
Why do we calculate test ratios only for positive column entries? When we
calculate test ratios for the x column, we are actually determining the values of
the x-intercepts of the constraints. If the column entry is a negative number, the
x-intercept of the constraint will be to the left of the origin. However, we are con-
strained to nonnegative values for both x and y. Therefore, determining the value
of the x-intercepts is necessary only for positive values. (If the column entry is
zero, the corresponding line is horizontal and doesn’t have an x-intercept.)
Recall that the pivot for this tableau is the 2 in the x column and the first row.
x y s t P
2 1 1 0 0 10
£ 1 1 0 1 0 8§
26 22 0 0 1 0
We will use the pivot to zero out the remaining entries in the column. However,
to ensure that all active variables remain nonnegative, row operations must be of
the form
aRc 6 bRP S Rc with a . 0 and b . 0
210 CHAPTER 4 Linear Programming
where Rc is the row to be changed and Rp is the row containing the pivot.
Using the row operations
2R2 2 R1 S R2
and
R3 1 3R1 S R3
we get the new tableau
x y s t P
2 1 1 0 0 10
£0 1 21 2 0 6§ 2R2 2 R1
0 1 3 0 1 30 R3 1 3R1
Columns x and t almost look like columns of the identity matrix; however, their
nonzero entry is a 2 instead of a 1. Using the row operations
1
R S R1
2 1
and
1
R S R2
2 2
we get
x y s t P
1 1
1 2 2
0 0 5 1>2 R1
1 1
0 22 1 0 3 1>2 R2
2
0 1 3 0 1 30
The three columns that look like columns from the 3 3 3 identity matrix are x, t,
and P. Each of these columns has exactly one nonzero entry, so their correspon-
ding variables are the active variables. The remaining columns, y and s, have more
than one nonzero entry, so their corresponding variables are the inactive variables.
The system of equations represented by the tableau is
1 1
x1 y1 s55
2 2
1 1
y2 s1t53
2 2
1y 1 3s 1 P 5 30
Setting the inactive variables y and s to zero yields the system of equations
1 1
x1 (0) 1 (0) 5 5
2 2
1 1
(0) 2 (0) 1 t 5 3
2 2
1(0) 1 3(0) 1 P 5 30
which simplifies to x 5 5, t 5 3, and P 5 30. The inactive variables y and s are
both zero. As noted earlier, a quick way to see the values of the active variables
is to cross out the columns of the inactive variables and read the resultant values
4.3 Solving Standard Maximization Problems with the Simplex Method 211
Since the x column is the pivot column, the test ratios give us the x-intercepts
of the constraint equations, as shown in Figure 4.24.
y
x=0
6
5 3x + 2y = 12
4
Corresponds with
test ratio of 4
3 x+y=5
2 Corresponds with
test ratio of 5
1 y=0
(4, 0) (5, 0)
0 x
0 1 2 3 4 5
FIGURE 4.24
4.3 Solving Standard Maximization Problems with the Simplex Method 213
By picking the column entry with the smallest test ratio, we guarantee that
our computations will yield a result that is in the feasible region. The pivot entry
is the 3 in the first row and the x column. We zero out the remaining entries in the
pivot column with the indicated operations. The resultant tableau is
x y s t P
3 2 1 0 0 12
£0 1 21 3 0 3§ 3R2 2 R1
0 21 4 0 3 48 3R3 1 4R1
We cross out the columns of the inactive variables and read the result:
x y s t P
2 1
1 3 3
0 0 4
1 1
0 23 1 0 1
3
0 16
1 4
23 0 1
3
x 5 4, t 5 1, and P 5 16. The inactive variables y and s are all zero. The corner
point (4, 0) yields an objective function value of P 5 16.
Observe that the fractional entries in the inactive variable columns of the
tableau were eliminated when we set the inactive variables to zero. To avoid
spending the time calculating fractional entries that will be eliminated anyway, an
alternative approach is to cross out the inactive variable columns before convert-
ing any active variable column entries to a 1. We then read the resultant equations
from the tableau and solve.
x y s t P
3 2 1 0 0 12
£0 1 21 3 0 3§
0 21 4 0 3 48
3x 5 12 3t 5 3 3P 5 48
x54 t51 P 5 16
Observe that this approach yields the same result and requires fewer computations.
The bottom row of the tableau is equivalent to the equation
2y 1 4s 1 3P 5 48
3P 5 y 2 4s 1 48
1 4
P5 y 2 s 1 16
3 3
214 CHAPTER 4 Linear Programming
Observe that since the coefficient on the y term is positive, increasing the value
of y while leaving the value of s unchanged will yield a value of P greater than
16. Consequently, the tableau
x y s t P
3 2 1 0 0 12
£0 1 21 3 0 3§
0 21 4 0 3 48
is not the final simplex tableau. The negative value in the bottom row indicates
that the value of P may be increased.
We will repeat the simplex method for this new tableau.
x y s t P
3 2 1 0 0 12
£0 1 21 3 0 3§
0 21 4 0 3 48
n
New pivot
column
The y column is the pivot column, since it is the column with a negative entry in
the bottom row. Because the entries in the first and second rows of the pivot col-
umn are positive, we must calculate the test ratios.
x y s t P
3 2 1 0 0 12 12>2 5 6
£0 1 21 3 0 3§ 3>1 5 3
0 21 4 0 3 48
The 1 in the second row is the pivot. We simplify the tableau using the indicated
row operations.
x y s t P
3 0 3 26 0 6 R1 2 2R2
£0 1 21 3 0 3§
0 0 3 3 3 51 R3 1 R2
3x 5 6 y53 3P 5 51
x52 P 5 17
Because the bottom row of the tableau is entirely nonnegative, we do not need to
repeat the pivoting process. The corner point (2, 3) yields a maximum objective
function value of P 5 17.
Observe that each new simplex tableau corresponds with a different corner
point. The initial simplex tableau corresponded with (0, 0) ; the second tableau,
with (4, 0) ; and the final tableau, with (2, 3) , as shown in Figure 4.25.
4.3 Solving Standard Maximization Problems with the Simplex Method 215
y
x=0
6
3x + 2y = 12
5
Corner point for
final tableau
4
(2, 3)
3 x+y=5 Corner point for
second tableau
2 Corner point
for initial
1 simplex tableau y=0
(0, 0) (4, 0)
0 x
0 1 2 3 4 5
FIGURE 4.25
TABLE 4.19
Corner Points Objective Function
x y P 5 4x 1 3y
0 0 0
4 0 16
2 3 17
0 5 15
SOLUTION Let x be the number of packages of the first brand, y be the num-
ber of packages of the second brand, and z be the number of packages of the third
brand. The total revenue from cheese sales is R 5 5x 1 6y 1 8z. The total cost
of the cheese is C 5 2x 1 3y 1 4z. Since profit is the difference between rev-
enue and cost,
P5R2C
5 (5x 1 6y 1 8z) 2 (2x 1 3y 1 4z)
5 3x 1 3y 1 4z
216 CHAPTER 4 Linear Programming
Since 24 is the negative number in the bottom row that has the largest magni-
tude, the z column is the pivot column. Because the entries in the first and second
rows of the pivot column are positive, we must calculate the test ratios.
x y z s t P
1 1 1 1 0 0 60 60>1 5 60
£ 2 3 4 0 1 0 120 § 120>4 5 30
23 23 24 0 0 1 0
The pivot entry is 4, since the second row had the smallest test ratio. We zero out
the remaining entries in the pivot column with the indicated row operations. The
resultant tableau is
x y z s t P
2 1 0 4 21 0 120 4R1 2 R2
£ 2 3 4 0 1 0 120 §
21 0 0 0 1 1 120 R3 1 R2
Since both entries have the same test ratio, we may pick either entry to be the
pivot. We select the entry in Row 1 as the pivot and zero out the remaining entries
in the pivot column with the indicated row operations. The resultant tableau is
x y z s t P
2 1 0 4 21 0 120
£0 2 4 24 2 0 0§ R2 2 R1
0 1 0 4 1 2 360 2R3 1 R1
Since the bottom row of the tableau is entirely nonnegative, it is unnecessary to
repeat the pivot selection process. Crossing out the inactive variable columns and
reading the result yields
x y z s t P
2 1 0 4 21 0 120
£0 2 4 24 2 0 0§
0 1 0 4 1 2 360
2x 5 120 4z 5 0 2P 5 360
x 5 60 z50 P 5 180
The corner point (x, y, z) that maximizes the objective function is (60, 0, 0) . It is
interesting to note that although z is an active variable, z 5 0. Active variables
may equal zero, but inactive variables must equal zero.
In the context of the scenario, the store should order 60 packages of the first
brand to earn the maximum profit of $180. Even though the profit per package
for the third brand ($4 per package) was higher than the profit per package for the
first brand ($3 per package), the higher wholesale cost of the third brand ($4 ver-
sus $2) limited the number of third-brand items available for sale. Ironically, the
lowest-priced brand of cheese resulted in the greatest profit.
SOLUTION Let x be the number of binders of the first brand, y be the number
of binders of the second brand, and z be the number of binders of the third brand.
The total revenue from binder sales is R 5 5x 1 3y 1 5z. The total cost of the
binders is C 5 2x 1 1y 1 2z. Since profit is the difference between revenue
and cost,
P5R2C
5 (5x 1 3y 1 5z) 2 (2x 1 1y 1 2z)
5 3x 1 2y 1 3z
218 CHAPTER 4 Linear Programming
Since 23 is the negative number in the bottom row that has the largest magni-
tude, we may select either column x or column z as the pivot column. We select
column z. Because the entries in the first and second rows of the pivot column are
positive, we must calculate the test ratios.
x y z s t P
1 1 1 1 0 0 50 50>1 5 50
£ 2 1 2 0 1 0 100 § 100>2 5 50
23 22 23 0 0 1 0
Since the entries have the same test ratio, we may select either one as the pivot.
We select the entry in the first row. We zero out the remaining entries in the pivot
column with the indicated row operations and obtain the tableau
x y z s t P
1 1 1 1 0 0 50
£0 21 0 22 1 0 0§ R2 2 2R1
0 1 0 3 0 1 150 R3 1 3R1
Crossing out the inactive variable columns and reading the resultant equations,
we get
x y z s t P
1 1 1 1 0 0 50
£0 21 0 22 1 0 0§
0 1 0 3 0 1 150
x 1 z 5 50 t50 P 5 150
z 5 2x 1 50
4.3 Solving Standard Maximization Problems with the Simplex Method 219
There are infinitely many solutions (x, y, z) that maximize the objective function.
Each solution is of the form (n, 0, 2n 1 50) with 0 # n # 50.
In the context of the real-world scenario, the store may purchase any combi-
nation of 50 binders from brands A and C and still maximize profits. This is be-
cause both brands have the same wholesale cost and the same retail price. As a
result, the cost, revenue, and profit for each item are the same.
When a standard maximization problem has more than two constraints, ad-
ditional slack variables will be needed. This will result in additional columns in
the initial simplex tableau. We typically use the letters u, v, and so on for slack
variables in addition to the letters s and t. Even with additional rows or columns,
the simplex method is effective in finding the optimal solution to any standard
maximization problem.
SOLUTION Let x be the number of 3/4 Sleeves Stretch Tops, y be the number
of Long Sleeve Turtle Neck Tops, z be the number of Heart Neck Tank Tops, and
w be the number of American Flag Tank Tops. The number of sleeved tops is
x 1 y, and the number of tank tops is z 1 w. Since the number of tank tops is to
be at least twice the number of sleeved tops, we have
z 1 w $ 2(x 1 y)
z 1 w $ 2x 1 2y
22x 2 2y 1 z 1 w $ 0
2x 1 2y 2 z 2 w # 0 Dividing by 21 reverses the inequality sign
Rewriting the objective function and adding the slack variables to the constraint
inequalities yields the system of equations
x1 y1 z1 w1s 5 60
2x 1 2y 2 z2 w 1t 50
9.5x 1 12.5y 1 9.25z 1 9.75w 1u 5 1000
219x 2 25y 2 18.50z 2 19.50w 1R50
and the associated initial simplex tableau
x y z w s t u R
1 1 1 1 1 0 0 0 60
≥ ¥
2 2 21 21 0 1 0 0 0
9.5 12.5 9.25 9.75 0 0 1 0 1000
219 225 218.5 219.5 0 0 0 1 0
n
Pivot column
The y column is the pivot column, since 225 is the negative entry in the bottom
row with the greatest magnitude. Since the first three entries in the y column are
positive, we must calculate three test ratios.
x y z w s t u R
1 1 1 1 1 0 0 0 60 60>1 5 60
≥ ¥
2 2 21 21 0 1 0 0 0 0>2 5 0
9.5 12.5 9.25 9.75 0 0 1 0 1000 1000>12.5 5 80
219 225 218.5 219.5 0 0 0 1 0
The pivot entry is the 2 in the second column and second row, since the second
row has the smallest test ratio. We zero out the remaining entries in the second
column with the indicated operations.
Because of the numerical complexity of the entries in the tableau, we will use
the Technology Tips following this example to do the row operations. The result-
ant tableau is
x y z w s t u R
0 0 3 3 2 21 0 0 120 2R1 2 R2
≥ ¥
2 2 21 21 0 1 0 0 0
26 0 31 32 0 212.5 2 0 2000 2R3 2 12.5R2
12 0 262 264 0 25 0 2 0 2R4 1 25R2
n
New pivot
column
The w column is the new pivot column, since 264 is the negative entry in the bot-
tom row that has the largest magnitude. Since the only positive entries in the w
column are in the first and third rows, we need to calculate only two test ratios.
x y z w s t u R
0 0 3 3 2 21 0 0 120 120>3 5 40
≥ ¥
2 2 21 21 0 1 0 0 0
26 0 31 32 0 212.5 2 0 2000 2000>32 5 62.5
12 0 262 264 0 25 0 2 0
4.3 Solving Standard Maximization Problems with the Simplex Method 221
Since the entry in the second row of the pivot column was negative, we did not
calculate a test ratio for the second row. The pivot entry is the 3 in the w column
and first row. We will zero out the remaining entries in the w column with the in-
dicated operations. The resultant tableau is
x y z w s t u R
0 0 3 3 2 21 0 0 120
≥ ¥
6 6 0 0 2 2 0 0 120 3R2 1 R1
218 0 23 0 264 25.5 6 0 2160 3R3 2 32R1
36 0 6 0 128 11 0 6 7680 3R4 1 64R1
Since all entries in the bottom row are nonnegative, this is the final simplex
tableau. Crossing out the inactive variable columns and reading the resultant
equations, we get
x y z w s t u R
0 0 3 3 2 21 0 0 120
≥ ¥
6 6 0 0 2 2 0 0 120
218 0 23 0 264 25.5 6 0 2160
36 0 6 0 128 11 0 6 7680
x50 6y 5 120 z50 3w 5 120
y 5 20 w 5 40
s50 t50 6u 5 2160 6R 5 7680
u 5 360 R 5 1280
The maximum revenue that can be attained is $1280. This will be achieved when
20 Long Sleeve Turtle Neck Tops and 40 American Flag Tank Tops are purchased.
Recall that u was the slack variable associated with the equation for the total cost
of the tops. Since u 5 360, the amount spent by the store is $360 less than the
maximum amount allowed. That is, $640 is spent on the tops. The additional money
remains unspent. It was the space constraint (a maximum of 60 tops), not the budget
constraint (a maximum of $1000), that limited how many tops could be ordered.
(Continued)
222 CHAPTER 4 Linear Programming
(Continued)
2. Close the Matrix Editor to store the
matrix, then reopen the Matrix Editor
and move the cursor to the MATH menu.
(Continued)
4.3 Solving Standard Maximization Problems with the Simplex Method 223
(Continued)
224 CHAPTER 4 Linear Programming
(Continued)
2. Close the Matrix Editor to store the
matrix, then reopen the Matrix Editor
and move the cursor to the MATH menu.
(Continued)
4.3 Solving Standard Maximization Problems with the Simplex Method 225
The x column is the pivot column, since 220.60 is the negative entry in the bot-
tom row that has the largest magnitude. We must calculate test ratios for the first
two rows.
x y z w s t P
1 1 21 21 1 0 0 0 0>1 5 0
£ 25.75 21.75 17.75 17.50 0 1 0 1000 § 1000>25.75 < 38.83
220.60 217.40 28.00 27.88 0 0 1 0
The pivot entry is the 1 in the x column and the first row. We will zero out the re-
maining entries in the first column with the indicated operations. Because of the
numerical complexity of the entries in the tableau, we will use the Technology
Tips described in this section to do the row operations.
228 CHAPTER 4 Linear Programming
(Note: We wrote the row operations in the alternative form 6bRp 1 aRc S Rc.)
The z column is the new pivot column, since 2 28.60 is the negative entry in
the bottom row that has the largest magnitude. Since there is only one positive
entry in the z column above the bottom row, that entry is the pivot. The pivot entry
is the 43.5 in the z column and the second row. We will zero out the remaining en-
tries in the z column with the following row operations written in the alternative
form:
R2 1 43.5R1 S R1
28.6R2 1 43.5R3 S R3
To do this on the calculator requires a sequence of operations. To perform the op-
eration R2 1 43.5R1 S R1, we do the following to the tableau that is on the screen
of our calculator:
Step 1: *row(43.5, ans, 1) Multiplies R1 by 43.5
Step 2: ENTER Returns the modified matrix
Step 3: row 1 (ans, 2, 1) Adds the first two rows of the modified matrix
Step 4: ENTER Completes the operation
The bottom row contains a negative entry in the w column, so we must repeat the
pivoting process. Since the only positive entry in the pivot column is 43.25, it is
the new pivot. The indicated row operations (in alternative form) will zero out the
additional terms in the pivot column.
0.25R2 1 43.25R1 S R1
1.93R2 1 43.25R3 S R3
4.3 Solving Standard Maximization Problems with the Simplex Method 229
Even though Example 5 required some rounding to make sense of the results,
the numerical analysis provided some valuable input to help us make a sound
business decision.
230 CHAPTER 4 Linear Programming
4.3 Summary
In this section, you learned the simplex method for solving standard maximiza-
tion problems. You learned that this is the method of choice in solving problems
with more than two decision variables.
4.3 Exercises
We are told that M is nonnegative. That is, M $ 0. Is the origin in the feasible
region? Substituting the origin x 5 0, y 5 0, z 5 0, . . . into each
constraint inequality Ax 1 By 1 Cz 1 # # # $ M yields the inequality
A(0) 1 B(0) 1 C(0) 1 # # # $ M which simplifies to 0 $ M . Since M is non-
negative, the inequality 0 $ M is satisfied if and only if M 5 0. That is, the ori-
gin is in the feasible region if and only if M 5 0 for every constraint. If M 2 0
for one or more constraints, the origin is not in the feasible region.
234 CHAPTER 4 Linear Programming
SOLUTION At first glance, the problem doesn’t look like a standard mini-
mization problem. The first constraint has a less than or equal sign, and the con-
stant term is negative. However, if we multiply the first constraint by 21, it
becomes 3x 2 7y $ 9. The problem may then be rewritten as
Minimize P 5 4x 1 2y
3x 2 7y $ 9
Subject to • 7x 1 5y $ 4
x $ 0, y $ 0
Therefore, the linear programming problem is a standard minimization problem.
When setting up a linear programming problem, if we make sure that the con-
stant term of each constraint is nonnegative, then we will be able to readily see if
the problem is a standard maximization or minimization problem.
The Dual
For a standard minimization problem whose objective function has nonnegative
coefficients, we may construct a standard maximization problem called the dual
problem. By solving the dual problem, we can find the solution to the standard
minimization problem. Consider the standard minimization problem,
Minimize P 5 6x 1 5y
x1y$2
Subject to • 2x 1 y $ 3
x $ 0, y $ 0
4.4 Solving Standard Minimization Problems with the Dual 235
The constraints are placed in the first two rows of the matrix, and the coefficients
of the objective function are placed in the last row of the matrix. The matrix for
the dual problem is found by transposing the matrix. The transpose of a matrix
A, which is written AT , is created by switching the rows and columns of A. In this
1
case, the first row of A is 31 1 24 , so the first column of AT is £ 1 § . Repeating
2
1 2 6
the process for the additional columns of AT yields AT 5 £ 1 1 5 § . We construct
2 3 1
the dual problem from AT . We first extract the constraints and the objective func-
tion from the matrix.
1 2 6 x 1 2y # 6
A 5 £1 1 5§ x1y#5
2 3 1 2x 1 3y 5 P
y
y
5
3 (0, 3) x=0 x+y=5
2x + y = 3 4
2 (0, 3)
3
x+y=2
y=0 1 (1, 1) 2
x + 2y = 6
(2, 0) (4, 1)
x 1
−1 1 2 (5, 0)
−1 x
x=0 −1 1 2 3 4 5 6
−1 y=0
FIGURE 4.26 Standard
Minimization Problem FIGURE 4.27 Standard Maximization
Corner points: Problem
(0, 3), (1, 1), (2, 0) Corner Points: (0, 0), (0, 3), (4, 1), (5, 0)
236 CHAPTER 4 Linear Programming
For each problem, we calculate the value of the objective function at each
corner point (see Tables 4.20 and 4.21).
TABLE 4.20 Standard Minimization Problem TABLE 4.21 Standard Maximization Problem
x y P 5 6x 1 5y x y P 5 2x 1 3y
0 3 15 0 0 0
1 1 11 0 3 9
2 0 12 4 1 11
5 0 10
Observe that the minimum value of the minimization problem objective function
is 11. Similarly, the maximum value of the maximization problem objective func-
tion is 11. This leads us to the Fundamental Principle of Duality.
Although we already know the optimal value of the dual problem, we will
demonstrate how using the simplex method to find the maximum value of the
dual problem helps us determine the minimum value of the standard minimiza-
tion problem. Recall that the dual problem is
Maximize P 5 2x 1 3y
x 1 2y # 6
Subject to • x 1 y # 5
x $ 0, y $ 0
Adding in the slack variables and rewriting the objective function yield the sys-
tem of equations
x 1 2y 1 s 56
x1 y 1t 55
22x 2 3y 1P50
and the corresponding initial simplex tableau
x y s t P
1 2 1 0 0 6
£ 1 1 0 1 0 5§
22 23 0 0 1 0
4.4 Solving Standard Minimization Problems with the Dual 237
The y column is the pivot column, since it contains the negative entry in the bot-
tom row with the largest magnitude. We calculate the test ratios and identify
the pivot.
x y s t P
1 2 1 0 0 6 6>2 5 3
£ 1 1 0 1 0 5§ 5>1 5 5
22 23 0 0 1 0
The 2 in the first row of the y column is the pivot, since the first row has the
smallest test ratio. We zero out the remaining terms in the y column using the in-
dicated operations.
x y s t P
1 2 1 0 0 6
£ 1 0 21 2 0 4§ 2R2 2 R1
21 0 3 0 2 18 2R3 1 3R1
The x column is the new pivot column, since it is the only column with a nega-
tive entry in the bottom row. We calculate the test ratios and identify the pivot.
x y s t P
1 2 1 0 0 6 6>1 5 6
£ 1 0 21 2 0 4§ 4>1 5 4
21 0 3 0 2 18
The 1 in the second row of the x column is the pivot, since the second row has the
smallest test ratio. We zero out the remaining entries in the x column with the in-
dicated operations.
x y s t P
0 2 2 22 0 2 R1 2 R2
£1 0 21 2 0 4§
0 0 2 2 2 22 R3 1 R2
We must perform one additional step to make the nonzero term in each active col-
umn equal 1.
x y s t P
0 1 1 21 0 1 1>2 R1
£1 0 21 2 0 4§
0 0 1 1 1 11 1>2 R3
substituting the point into the objective function of the standard minimization
problem P 5 6x 1 5y.
P 5 6x 1 5y
?
11 5 6(1) 1 5(1)
11 5 11
The relationship between the standard minimization problem and its dual prob-
lem is somewhat remarkable, and the problem-solving method is straightforward.
AT 5 ≥ ¥
1 0 5 x1 0y # 5
1 21 6 x2 y# 6
3 0 1 3x 1 0y 5 P
4.4 Solving Standard Minimization Problems with the Dual 239
µ
x# 5
Subject to
x2y# 6
x$ 0, y $ 0, z $ 0
The dual is a standard maximization problem. We solve the problem using
the simplex method. We begin by adding slack variables to the constraints.
x 1 2y 1 s 5 4
x1t55
x2y1u56
x $ 0, y $ 0, z $ 0
Rewriting the objective function yields 23x 1 P 5 0. The initial simplex
tableau is
x y s t u P
1 2 1 0 0 0 4
≥ ¥
1 0 0 1 0 0 5
1 21 0 0 1 0 6
23 0 0 0 0 1 0
The x column is the pivot column, since it is the only column with a negative
entry in the bottom row. Mentally calculating the test ratios, we see that the entry
in the first row and the x column is the pivot.
The final tableau is obtained by using the indicated row operations.
x y s t u P
1 2 1 0 0 0 4
≥ ¥
0 22 21 1 0 0 1 R2 2 R1
0 23 21 0 1 0 2 R3 2 R1
0 6 3 0 0 1 12 R4 1 3R1
Reading from the tableau, we see that the objective function of the maximization
problem has a maximum value of 12. This occurs when x 5 4 and y 5 0. Ac-
cording to the fundamental principle of duality, the minimum value of the objec-
tive function of the minimization problem is also 12. The solution to the
minimization problem may be found by looking at the slack variable columns in
the bottom row of the final tableau. The s, t, and u columns of the final simplex
tableau are the x, y, and z values of the solution to the minimization problem. That
is, (3, 0, 0) yields an objective function value of 12. This can be verified by sub-
stituting x 5 3, y 5 0, and z 5 0 into P 5 4x 1 5y 1 6z.
P 5 4(3) 1 5(0) 1 6(0)
5 12
SOLUTION We have
1 2 1 6 x 1 2y 1 z $ 6
A 5 £0 3 2 12 § 3y 1 2z $ 12
2 1 2 1 2x 1 y 1 2z 5 P
Therefore,
1 0 2 x# 2
AT 5 ≥ ¥
2 3 1 2x 1 3y # 1
and
1 2 2 x 1 2y # 2
6 12 1 6x 1 12y 5 P
The dual problem is
Maximize P 5 6x 1 12y
x# 2
Subject to µ
2x 1 3y # 1
x 1 2y # 2
x$ 0, y $ 0
Adding the slack variables and rewriting the objective function yields
x1s52
2x 1 3y 1 t 5 1
x 1 2y 1 u 5 2
26x 2 12y 1 P 5 0
The initial simplex tableau is
x y s t u P
1 0 1 0 0 0 2
≥ ¥
2 3 0 1 0 0 1
1 2 0 0 1 0 2
26 212 0 0 0 1 0
The y column is the pivot, since it contains the negative entry in the bottom row
with the largest magnitude. The pivot is the 3 in the second row and the y column
1
because the second row’s test ratio of 3 is smaller than the third row’s test ratio of
2
2
. Using the indicated row operations yields
4.4 Solving Standard Minimization Problems with the Dual 241
x y s t u P
1 0 1 0 0 0 2
≥ ¥
2 3 0 1 0 0 1
21 0 0 22 3 0 4 3R3 2 2R2
2 0 0 4 0 1 4 R4 1 4R2
To obtain the final simplex tableau, we must ensure that the nonzero entry of each
active variable column is equal to 1.
x y s t u P
1 0 1 0 0 0 2
2 1 1 1
3 1 0 0 0 3 R
3 2
3
1 2 4 1
23 0 0 23 1 0 3 R
3 3
2 0 0 4 0 1 4
1
The solution to the dual problem is x 5 0 and y 5 3. The optimal value is 4.
From the bottom row of the final tableau, we read the solution of the minimization
problem from the slack variable columns: x 5 0, y 5 4, and z 5 0. The minimal
value of the objective function is 4. This can be verified by substituting the solu-
tion into the objective function equation of the standard minimization problem.
P 5 2x 1 y 1 2z
5 2(0) 1 (4) 1 2(0)
54
Substituting the point (0, 4, 0) back into the constraints of the standard mini-
mization problem yields
x 1 2y 1 z $ 6 3y 1 2z $ 12
(0) 1 2(4) 1 (0) $ 6 3(4) 1 2(0) $ 12
8$6 12 $ 12
We are further convinced that we have found the optimal solution, since the solu-
tion satisfies both constraints (as it should). Also, 3y 1 2z was made as small as
the constraint would allow.
TABLE 4.22
Destination
Seattle Ellensburg
Portland $0.62 per case $0.80 per case
Origin
Spokane $1.01 per case $0.63 per case
What shipping schedule will minimize the food distributor’s shipping costs?
SOLUTION
Let x be the number of cases shipped from Portland to Seattle.
Let y be the number of cases shipped from Spokane to Seattle.
Let z be the number of cases shipped from Portland to Ellensburg.
Let w be the number of cases shipped from Spokane to Ellensburg.
We need to minimize the shipment cost function,
C 5 0.62x 1 1.01y 1 0.80z 1 0.63w. We have the following constraints:
x 1 z $ 700 The Portland facility produces at least 700 cases
y 1 w $ 300 The Spokane facility produces at least 300 cases
x 1 y $ 600 The Seattle-area supermarket needs at least 600 cases
z 1 w $ 400 The Ellensburg supermarket needs at least 400 cases
x $ 0, y $ 0, z $ 0, w $ 0 The number of cases shipped is nonnegative
This is a standard minimization problem. We will solve it by using the dual and
the simplex method. We have
1 0 1 0 700
0 1 0 1 300
A 5 1 1 0 0 600
0 0 1 1 400
0.62 1.01 0.80 0.63 1
Thus
1 0 1 0 0.62
0 1 1 0 1.01
AT 5 1 0 0 1 0.80
0
1 0 1 0.63
700 300 600 400 1
The dual problem is
Maximize P 5 700x 1 300y 1 600z 1 400w
x 1 z # 0.62
y 1 z # 1.01
Subject to x 1 w # 0.80
y 1 w # 0.63
x $ 0, y $ 0, z $ 0, w $ 0
4.4 Solving Standard Minimization Problems with the Dual 243
The third tableau is generated with the indicated row operations. We may choose
either the y column or the z column to be the new pivot column. We pick the 1 in
the fourth row of the y column to be the new pivot.
x y z w s t u v P
1 0 1 0 1 0 0 0 0 0.62
0 1 1 0 0 1 0 0 0 1.01
0 0 21 1 21 0 1 0 0 0.18
0 1 1 0 1 0 21 1 0 0.45 R4 2 R3
0 2300 2300 0 300 0 400 0 1 506 R5 1 400R3
The final simplex tableau is generated with the indicated row operations.
x y z w s t u v P
1 0 1 0 1 0 0 0 0 0.62
0 0 0 0 21 1 1 21 0 0.56 R2 2 R4
0 0 21 1 21 0 1 0 0 0.18
0 1 1 0 1 0 21 1 0 0.45
0 0 0 0 600 0 100 300 1 641 R5 1 300R4
≥ ¥
1 0 1 0 0 1 0 0 300
1 0 0 1 0 0 1 0 250
21000 2200 2200 2200 0 0 0 1 0
The pivot column is the x column, since 21000 is the negative entry in the bot-
tom row with the largest magnitude. The test ratios of the first and third rows are
both equal to 250. Since this is smaller than the test ratio for the second row
4.4 Solving Standard Minimization Problems with the Dual 245
(300), either the first or the third entry in the x column may be selected as the
pivot. We pick the first entry. Using the indicated row operations, we obtain the
second tableau.
x y z w s t u P
1 1 0 0 1 0 0 0 250
≥ ¥
0 21 1 0 21 1 0 0 50 R2 2 R1
0 21 0 1 21 0 1 0 0 R3 2 R1
0 800 2200 2200 1000 0 0 1 250000 R4 1 1000R1
Since the magnitude of the negative entries in the bottom row is the same, we may
pick either the z column or the w column to be the pivot column. We pick the w
column. The pivot is the 1 in the third row. Using the indicated row operation, we
get the third tableau. The new pivot is the entry in the second row of the z column.
x y z w s t u P
1 1 0 0 1 0 0 0 250
≥ ¥
0 21 1 0 21 1 0 0 50
0 21 0 1 21 0 1 0 0
0 600 2200 0 800 0 200 1 250000 R4 1 200R3
≥ ¥
0 21 1 0 21 1 0 0 50
0 21 0 1 21 0 1 0 0
0 400 0 0 600 200 200 1 260000 R4 1 200R2
The optimal solution for the dual problem is x 5 250, y 5 0, z 5 50, and w 5 0.
The optimal value is 260,000.
An optimal solution for the minimization problem is x 5 600, y 5 200, and
z 5 200 with optimal value 260,000. In the context of the problem, the training
development costs are minimized if Trainum develops 600 hours of training,
Teachum develops 200 hours of training, and Schoolum develops 200 hours of
training. The minimum training costs are $260,000. Since the hourly training de-
velopment costs for Trainum and Schoolum are the same, another optimal solu-
tion is (200, 200, 600) . In fact, any point of the form (t, 200, 800 2 t) for
0 # t # 800 will yield an optimal solution.
TABLE 4.23
Price (dollars per
Brand Protein (percent) Fiber (percent) 20-lb bag)
Eukanuba Adult
Maintenance Formula 25 5 18.99
Nutro Natural Choice
Plus 27 3 17.99
Science Diet Active
Formula Canine
Maintenance 26.5 3.5 17.99
Source: www.petsmart.com.
A dog breeder wants to create at least 300 pounds of a dog food mix that is
at least 26 percent protein and 4 percent fiber while minimizing dog food cost.
How many 20-pound bags of each type of dog food should the breeder buy?
SOLUTION
Let x be the number of bags of the Eukanuba brand.
Let y be the number of bags of the Nutro brand.
Let z be the number of bags of the Science Diet brand.
To make computations easier, we will convert the percentages per bag to pounds
per bag by multiplying the percentage per bag by 20 pounds and dividing by 100,
as shown in Table 4.24.
TABLE 4.24
Brand Protein (pounds) Fiber (pounds)
Eukanuba Adult
Maintenance Formula 5.0 1.0
Nutro Natural Choice Plus 5.4 0.6
Science Diet Active Formula
Canine Maintenance 5.3 0.7
The total amount of fiber in the mix is 1.0x 1 0.6y 1 0.7z pounds. We want the
mix to be at least 4 percent fiber. Thus we require that
0.04(20x 1 20y 1 20z) # 1.0x 1 0.6y 1 0.7z
0.8x 1 0.8y 1 0.8z # 1.0x 1 0.6y 1 0.7z
20.2x 1 0.2y 1 0.1z # 0
0.2x 2 0.2y 2 0.1z $ 0
For computational ease, we round the prices to the nearest dollar. We must mini-
mize C 5 19x 1 18y 1 18z subject to the following constraints:
20x 1 20y 1 20z $ 300 At least 300 pounds must be purchased
20.2x 1 0.2y 1 0.1z $ 0 The mix is at least 26 percent protein
0.2x 2 0.2y 2 0.1z $ 0 The mix is at least 4 percent fiber
x $ 0, y $ 0, z $ 0 A nonnegative number of bags are purchased
We have
20 20 20 300 20 20.2 0.2 19
A5 ≥ ¥ AT 5 ≥ ¥
20.2 0.2 0.1 0 20 0.2 20.2 18
and
0.2 20.2 20.1 0 20 0.1 20.1 18
19 18 18 1 300 0 0 1
The dual problem is
Maximize P 5 300x 1 0y 1 0z
20x 2 0.2y 1 0.2z # 19
µ
20x 1 0.2y 2 0.2z # 18
Subject to
20x 1 0.1y 2 0.1z # 18
x $ 0, y $ 0, z $ 0
with the corresponding initial tableau
x y z s t u P
20 20.2 0.2 1 0 0 0 19
≥ ¥
20 0.2 20.2 0 1 0 0 18
20 0.1 20.1 0 0 1 0 18
2300 0 0 0 0 0 1 0
The x column is the pivot column. Either the second or the third entry in the x col-
umn may be used as a pivot. Using the entry in the second row of the x column
as a pivot and the indicated row operations, we obtain the second tableau. The
entry in the third row of the z column is the new pivot, since it has the smallest
test ratio.
x y z s t u P
0 20.4 0.4 1 21 0 0 1 R1 2 R2
≥ ¥
20 0.2 20.2 0 1 0 0 18
0 20.1 0.1 0 21 1 0 0 R3 2 R2
0 3 23 0 15 0 1 270 R4 1 15R2
248 CHAPTER 4 Linear Programming
The indicated row operations give the next tableau. The new pivot is the 3 in the
first row of the t column.
x y z s t u P
0 0 0 1 3 24 0 1 R1 2 4R3
≥ ¥
20 0 0 0 21 2 0 18 R2 1 2R3
0 20.1 0.1 0 21 1 0 0
0 0 0 0 215 30 1 270 R4 1 30R3
≥ ¥
60 0 0 1 0 2 0 55 3R2 1 R1
0 20.3 0.3 1 0 21 0 1 3R3 1 R1
0 0 0 5 0 10 1 275 R4 1 5R1
The final simplex tableau is obtained by converting the nonzero entry of each col-
umn with a single nonzero entry to a 1 by using the indicated row operations.
x y z s t u P
1 4 1 1
0 0 0 1 23 0 R
3 3 3 1
1 1 1 11 1
0 0 0 0 R
60 30 12 60 2
0 10 10 10 1
21 1 0 23 0 R
3 3 0.3 3
0 0 0 5 0 10 1 275
Setting the inactive variable columns s and u to 0 yields
11 10 1
x5 2y 1 z 5 t5 P 5 275
12 3 3
10
z5y1
3
4.4 Summary
In this section, you learned how to solve standard minimization problems using
the notion of the dual problem. You discovered that finding the maximum solu-
tion of a dual problem leads us to the minimum solution of the minimization
problem.
4.4 Solving Standard Minimization Problems with the Dual 249
4.4 Exercises
0 2 1 27. Minimize P 5 3x 1 2y
25 4 7 x1y$ 5
19. A 5 8 1 0
Subject to µ
3x 1 2y $ 11
21 2 1
4x 2 y $ 0
4 2 1 x$ 0, y $ 0
20. A 5 32 4 6 5 14 28. Minimize P 5 9x 1 7y
In Exercises 21–30, do the following: 5x 1 3y $ 8
Subject to µ
(i) Write the dual problem for the given standard 3x 1 5y $ 8
minimization problem. 8x 2 8y $ 0
(ii) Solve the dual problem using the simplex method. x $ 0, y $ 0
(iii) Use the final simplex tableau of the dual problem
to solve the standard minimization problem. 29. Minimize P 5 6x 1 5y
(iv) Check your answer by graphing the feasible x1y$4
region of the standard minimization problem and
Subject to µ
x2y$2
calculating the value of the objective function at
2x 2 y $ 6
each of the corner points.
x $ 0, y $ 0
21. Minimize P 5 x 1 2y
30. Minimize P 5 5x 1 7y
3x 1 y $ 6
Subject to • 2x 1 3y $ 11
x1y$4
Subject to µ
x2y$2
x $ 0, y $ 0
2x 2 y $ 6
22. Minimize P 5 4x 1 2y x $ 0, y $ 0
5x 1 7y $ 19
Subject to • 22x 1 3y $ 5 In Exercises 31–40, set up and solve the standard
minimization problem.
x $ 0, y $ 0
31. Pet Nutrition: Food Cost
23. Minimize P 5 9x 1 6y
PETsMART.com sold the following
5x 1 2y $ 30 varieties of dog food in June 2003. The price
Subject to • 10x 2 5y $ 15 shown is for an 8-pound bag.
x $ 0, y $ 0 Pro Plan Adult Chicken & Rice Formula,
25 percent protein, 3 percent fiber, $7.99
24. Minimize P 5 4x 1 4y Pro Plan Adult Lamb & Rice Formula,
3x 1 4y $ 18 28 percent protein, 3 percent fiber, $7.99
Subject to • 5x 1 3y $ 19 Pro Plan Adult Turkey & Barley Formula,
26 percent protein, 3 percent fiber, $8.49
x $ 0, y $ 0
(Source: www.petsmart.com.)
25. Minimize P 5 5x 1 20y A dog breeder wants to make at least 120
pounds of a mix containing at least 27 percent
25x 1 2y $ 10
Subject to •
protein and at least 3 percent fiber. How many
5x 1 y $ 25 8-pound bags of each dog food variety should the
x $ 0, y $ 0 breeder buy in order to minimize cost? (Round
26. Minimize P 5 2x 1 5y prices up to the nearest dollar.)
x1y$9
Subject to • 2x 2 2y $ 6
x $ 0, y $ 0
4.4 Solving Standard Minimization Problems with the Dual 251
32. Pet Nutrition: Food Cost A dog breeder wants to make at least
PETsMART.com sold the following 210 pounds of a mix containing at least 25 percent
varieties of dog food in June 2003. protein. How many bags of each dog food variety
Authority Chicken Adult Formula, 32 percent should the breeder buy in order to minimize fat
protein, 3 percent fiber, $19.99 per 33-pound content?
bag 35. Food Distribution Cost Wal-Mart
Bil-Jac Select Dog Food, 27 percent protein, Stores, Inc., has food distribution centers
4 percent fiber, $18.99 per 18-pound bag in Monroe, Georgia, and Shelbyville, Tennessee,
Iams Minichuncks, 26 percent protein, 4 percent and Wal-Mart Supercenters in Birmingham,
fiber, $8.99 per 8-pound bag Alabama, and Scottsboro, Alabama. (Source:
(Source: www.petsmart.com.) www.walmart.com.) Suppose that the Monroe
A dog kennel wants to make at least 2178 distribution center must ship at least 600 cases of
pounds of a mix containing at least 29 percent peanut butter weekly and the Shelbyville
protein and at least 3.5 percent fiber. How many distribution center must ship at least 400 cases of
bags of each dog food variety should the kennel peanut butter weekly.* If the Birmingham store
buy in order to minimize cost? (Round prices up requires at least 700 cases of peanut butter weekly
to the nearest dollar.) and the Scottsboro store requires at least 300
33. Pet Nutrition: Food Cost cases of peanut butter weekly, what shipment plan
PETsMART.com sold the following will minimize the distribution cost?
varieties of dog food in June 2003. Estimated Distribution Cost per Case
Nature’s Recipe Venison Meal & Rice Canine,
Monroe Shelbyville
20 percent protein, 10 percent fat, $21.99 per
20-pound bag Birmingham $0.68 $0.57
Nutro Max Natural Dog Food, 27 percent Scottsboro $0.65 $0.32
protein, 16 percent fat, $12.99 per 17.5-pound
bag *Distribution costs and amounts are hypothetical.
PETsMART Premier Oven Baked Lamb
Recipe, 25 percent protein, 14 percent fat, 36. Food Distribution Cost Wal-Mart
$22.99 per 30-pound bag Stores, Inc., has food distribution centers
(Source: www.petsmart.com.) in Monroe, Georgia, and Shelbyville, Tennessee,
A dog breeder wants to make at least and Wal-Mart Supercenters in Birmingham,
175 pounds of a mix containing at least 25 Alabama, and Calhoun, Georgia. (Source:
percent protein and at least 14 percent fat. How www.walmart.com.) Suppose that the Monroe
many bags of each dog food variety should the distribution center must ship at least 600 cases
breeder buy in order to minimize cost? (Round of pickles weekly and the Shelbyville distribution
prices up to the nearest dollar.) center must ship at least 700 cases of pickles
34. Pet Nutrition: Fat Content
weekly.* If the Birmingham store requires at
PETsMART.com sold the following least 1000 cases of pickles weekly and the
varieties of dog food in June 2003. Calhoun store requires at least 300 cases of
pickles weekly, what shipment plan will minimize
Nature’s Recipe Venison Meal & Rice Canine, the distribution cost?
20 percent protein, 10 percent fat, $21.99 per
20-pound bag Estimated Distribution Cost per Case
Nutro Max Natural Dog Food, 27 percent
Monroe Shelbyville
protein, 16 percent fat, $12.99 per 17.5-pound
bag Birmingham $0.68 $0.57
PETsMART Premier Oven Baked Lamb Calhoun $0.39 $0.50
Recipe, 25 percent protein, 14 percent fat,
$22.99 per 30-pound bag *Distribution costs and amounts are hypothetical.
(Source: www.petsmart.com.)
252 CHAPTER 4 Linear Programming
37. Food Distribution Cost Wal-Mart 39. Marital Harmony It costs a couple 3 hours and
Stores, Inc., has food distribution centers $200 to go clothes shopping together. She gives
in Monroe, Georgia, and Shelbyville, Tennessee, shopping a fun rating of 10 points, while he gives
and Wal-Mart Supercenters in Scottsboro, it a fun rating of 1 point (a total of 11 fun points
Alabama, and Calhoun, Georgia. (Source: for the couple).
www.walmart.com.) Suppose that the Monroe It costs a couple 4 hours and $250 to go to a
distribution center must ship at least 400 cases of major league baseball playoff game. She gives the
potato chips weekly and the Shelbyville game a fun rating of 4 points, while he gives it a
distribution center must ship at least 200 cases of fun rating of 10 points (a total of 14 fun points for
potato chips weekly.* If the Scottsboro store the couple).
requires at least 300 cases of potato chips weekly The couple wants to spend at least 10 hours
and the Calhoun store requires at least 300 cases together (shopping and watching baseball) while
of potato chips weekly, what shipment plan will earning at least 36 fun points. She insists that they
minimize the distribution cost? go shopping at least twice. How shall they spend
their time if they want to minimize their financial
Estimated Distribution Cost per Case
costs?
Monroe Shelbyville 40. Marital Discord It costs a couple 3 hours to go
Calhoun $0.39 $0.50 clothes shopping together. He gives shopping with
her a fun rating of 6 points while she gives it a
Scottsboro $0.65 $0.32
fun rating of 1 point (a total of 7 fun points for
*Distribution costs and amounts are hypothetical. the couple).
It costs a couple 4 hours to go to a major
38. Food and Entertainment It costs $35 for a league baseball game. She gives going to a game
family to dine out and $10 for the family to eat at with him a fun rating of 7 points while he gives it
home. Eating out has a fun rating of 10 points, a fun rating of 2 points (a total of 9 fun points for
while eating at home has a fun rating of 2 points. the couple).
It costs $32 for a family to play a game of The couple wants to earn at least 30 fun
miniature golf and $30 to watch a movie. points. She refuses to go shopping with him
Miniature golf has a fun rating of 8 points, and unless he goes with her to at least one game. How
watching a movie has a fun rating of 6 points. shall they spend their time if they want to
The family must eat at least 21 meals weekly minimize their time together? (Things are not
and must go out for food or miniature golf at least going well in the relationship.)
five times weekly.The family wants to earn at least
82 fun points per week. How many times a week
should the family participate in each activity in
order to minimize food and entertainment costs?
TABLE 4.25
Company Share Price (dollars) Dividend/Share (dollars)
Harley- Davidson, Inc. (HDI) 62.70 0.40
Polaris Industries Inc. (PII) 50.50 0.92
Winnebago Industries Inc. (WGO) 33.42 0.20
Source: moneycentral.msn.com. (Accurate as of July 16, 2004.)
He wants to earn at least $50 in dividends while maximizing the number of shares
purchased. How many shares of each company should he purchase?
At first glance, this looks like a standard maximization problem. However, a
closer analysis reveals that it is not. While the investment constraint is of the form
Ax 1 By 1 Cz 1 c # M, the dividend constraint is of the form Ax 1 By 1 Cz 1
c $ M instead of Ax 1 By 1 Cz 1 c # M. This is a general linear programming
problem or a linear programming problem with mixed constraints.
In this section, we will show how to solve general linear programming problems.
We will demonstrate how minimization problems may be solved by maximizing the
negative of the objective function. We will return to the recreational vehicle invest-
ment problem in Example 3.
Recall that the feasible region of any standard maximization problem always
includes the origin. Graphically speaking, the simplex method starts at the origin
and moves from corner point to adjacent corner point, each time increasing the
value of the objective function until the maximum value is reached. The simplex
method works with standard maximization problems because we are guaranteed
that the origin is in the feasible region. But what if the origin is outside of the
feasible region? The feasible region of a linear programming problem with mixed
constraints often does not contain the origin.
A linear programming problem with mixed constraints has constraints in two
or more of the following forms: Ax 1 By 1 Cz 1 c # M , Ax 1 By 1 Cz 1
c $ M , or Ax 1 By 1 Cz 1 c 5 M . In all cases, M $ 0. Consider the fol-
lowing linear programming problem with mixed constraints.
Maximize P 5 3x 1 2y
2x 1 2y # 4
Subject to µ
2x 2 y # 4
x1y$5
x $ 0, y $ 0
Since the constraint x 1 y $ 5 contains a $ sign instead of a # sign, this is
not a standard maximization problem. It is a problem with mixed constraints. The
graph of the feasible region is shown in Figure 4.28.
254 CHAPTER 4 Linear Programming
y
x=0
2x − y = 4
5
−x + 2y = 4
4 (4, 4)
3 (2, 3)
2 (3, 2)
x+y=5
1
y=0
0 x
0 1 2 3 4 5
FIGURE 4.28
Notice that the origin is not contained within the feasible region. Our strat-
egy for solving linear programming problems with mixed constraints is a two-
stage process.
Stage 1: Get inside the feasible region.
Stage 2: Solve the problem with the simplex method.
Since our problem contains only two decision variables, we have the luxury
of observing how the process works graphically. This is not the case in problems
involving three or more decision variables.
We set up the problem for the simplex method as usual by adding in slack
variables to constraints of the form Ax 1 By 1 Cz 1 c # M .
2x 1 2y 1 s 5 4
2x 2 y 1 t 5 4
Can we add in slack variables to constraints of the form Ax 1 By 1 Cz 1
c $ M ? Let’s see. We have the constraint x 1 y $ 5. Recall that slack vari-
ables add in what is necessary to make the inequality an equality. By definition,
slack variables must be nonnegative. What must we do to the inequality
x 1 y $ 5 to make it an equality? Adding a slack variable to the inequality will
increase instead of decrease the value of the left-hand side. Since the left-hand
side of the inequality is greater than or equal to 5, we must subtract some non-
negative value u in order to make x 1 y equal to 5. That is,
x1y2u55
Since this variable takes away the surplus, it is referred to as a surplus variable.
We have
2x 1 2y 1 s 5 4
2x 2 y 1 t 5 4
x1y2u55
23x 2 2y 1 P 5 0
4.5 Solving General Linear Programming Problems with the Simplex Method 255
≥ ¥
2 21 0 1 0 0 4
1 1 0 0 21 0 5
23 22 0 0 0 1 0
Setting the x and y variables equal to zero yields the solution to this tableau.
x50 y50 s54 t54 2u 5 5 P50
u 5 25
Recall that all decision, slack, and surplus variables are required to be nonnega-
tive. Since u , 0, this solution is not in the feasible region. This may be easily
seen graphically (Figure 4.29). The origin is not in the feasible region.
y
x=0
2x − y = 4
5
−x + 2y = 4
4 (4, 4)
3 (2, 3)
2 (3, 2)
Solution to x+y=5
1 tableau #1
y=0
(0, 0)
0 x
0 1 2 3 4 5
FIGURE 4.29
In the initial tableau, columns s, t, u, and P were the active variable columns.
Since the active variable u was negative, we want to modify the tableau in such a
way as to make u an inactive variable. We place a * on the left of the tableau to
highlight the rows above the bottom row that resulted in negative variable values.
In this case, the third row was the only one with a negative variable value.
x y s t u P
21 2 1 0 0 0 4
≥ ¥
2 21 0 1 0 0 4
* 1 1 0 0 21 0 5
23 22 0 0 0 1 0
Since all surplus variables in the initial tableau are negative, each row of the
initial tableau containing surplus variables will be starred. We select the column
with the largest positive entry in the starred row as the pivot column. Since the
positive values in the starred row are equal, we may select either the x column or
the y column to be the pivot column. We select the x column. To determine the
256 CHAPTER 4 Linear Programming
pivot, we calculate the test ratios and select the row with the smallest test ratio.
This will ensure that all nonnegative variables will remain nonnegative.
x y s t u P
21 2 1 0 0 0 4
≥ ¥
2 21 0 1 0 0 4 4>2 5 2
* 1 1 0 0 21 0 5 5>1 5 5
23 22 0 0 0 1 0
n
Pivot column
The 2 in the second row of the x column is the pivot. We modify the initial tableau
with the indicated operations and star any rows corresponding with negative ac-
tive variables.
x y s t u P
0 3 2 1 0 0 12 2R1 1 R2
≥ ¥
2 21 0 1 0 0 4
* 0 3 0 21 22 0 6 2R3 2 R2
0 27 0 3 0 2 12 2R4 1 3R2
y
x=0
2x − y = 4
5
−x + 2y = 4
4 (4, 4)
3 (2, 3)
2 (3, 2)
Solution to x+y=5
1 tableau #2
y=0
(2, 0)
0 x
0 1 2 3 4 5
FIGURE 4.30
We have moved from the origin to the x-intercept of one of the constraints.
However, we still are outside of the feasible region. This is due to the fact that the
surplus variable u is still negative. We will pivot again and further increase the
value of u.
4.5 Solving General Linear Programming Problems with the Simplex Method 257
The largest value in the starred row is the 3 in the y column. The y column is
the new pivot column.
x y s t u P
0 3 2 1 0 0 12 12>3 5 4
≥ ¥
2 21 0 1 0 0 4
* 0 3 0 21 22 0 6 6>3 5 2
0 27 0 3 0 2 12
n
Pivot column
The pivot is the 3 in the third row of the y column, since that row has the small-
est test ratio. We zero out the remaining terms in the column with the indicated
operations and read the solution from the tableau.
x y s t u P
0 0 2 2 2 0 6 R1 2 R3
≥ ¥
6 0 0 2 22 0 18 3R2 1 R3
0 3 0 21 22 0 6
0 0 0 2 214 6 78 3R4 1 7R3
6x 5 18 3y 5 6 2s 5 6 t50 u50 6P 5 78
x53 y52 s53 P 5 13
Since none of the variables are negative, this solution is in the feasible region
(Figure 4.31). Since we are now in the feasible region, this completes Stage 1 of
the process.
y
x=0
2x − y = 4
5
−x + 2y = 4
4 (4, 4)
3 (2, 3)
2 Solution to (3, 2)
tableau #3 x+y=5
1
y=0
0 x
0 1 2 3 4 5
FIGURE 4.31
Stage 2 allows us to apply the simplex method to find the optimal solution.
The u column is the pivot column. The 2 in the first row of that column is the
pivot, since it is the only nonnegative value in the column.
x y s t u P
0 0 2 2 2 0 6
≥ ¥
6 0 0 2 22 0 18
0 3 0 21 22 0 6
0 0 0 2 214 6 78
n
Pivot column
258 CHAPTER 4 Linear Programming
We zero out the remaining terms in the u column using the indicated operations.
y
x=0
2x − y = 4 x y s t u P
5
Solution to 0 0 2 2 2 0 6
tableau #4
≥ ¥
4 (4, 4) 6 0 2 4 0 0 24 R2 1 R1
(2, 3)
0 3 2 1 0 0 12 R3 1 R1
3
0 0 14 16 0 6 120 R4 1 7R1
2 (3, 2)
6x 5 24 3y 5 12 s50 t50 2u 5 6 6P 5 120
−x + 2y = 4 x+y=5
1
y=0
x54 y54 u53 P 5 20
0 Since the bottom row of the tableau does not contain any negative values, this
x
0 1 2 3 4 5 is the final simplex tableau. The solution that maximizes the objective function
FIGURE 4.32 P 5 3x 1 2y is x 5 4 and y 5 4 (Figure 4.32). The maximum value of the ob-
jective function is P 5 20.
The following box details the steps used to solve the general linear program-
ming problem.
Subject to µ
x 1 2y $ 5
2x 1 y # 1
x $ 0, y $ 0
4.5 Solving General Linear Programming Problems with the Simplex Method 259
≥ ¥
1 2 0 21 0 0 5
21 1 0 0 1 0 1
23 210 0 0 0 1 0
Reading from the tableau, we have
x50 y50 2s 5 11 2t 5 5 u51 P50
s 5 211 t 5 25
Since both s and t are negative, we will star the corresponding rows.
x y s t u P
* 4 21 21 0 0 0 11
≥ ¥
* 1 2 0 21 0 0 5
21 1 0 0 1 0 1
23 210 0 0 0 1 0
We may choose either starred row to work with. We pick the row corresponding
with the variable t (second row). The largest value in the labeled columns of the
second row is the 2 in the y column. Consequently, the y column is the pivot col-
umn. We calculate the test ratios and locate the pivot.
x y s t u P
* 4 21 21 0 0 0 11
≥ ¥
* 1 2 0 21 0 0 5 5>2 5 2.5
21 1 0 0 1 0 1 1>1 5 1
23 210 0 0 0 1 0
n
Pivot column
260 CHAPTER 4 Linear Programming
We zero out the remaining terms in the pivot column using the indicated opera-
tions and star the rows that correspond with negative variable values.
x y s t u P
* 3 0 21 0 1 0 12 R1 1 R3
≥ ¥
* 3 0 0 21 22 0 3 R2 2 2R3
21 1 0 0 1 0 1
213 0 0 0 10 1 10 R4 1 10R3
x50 y51 2s 5 12 2t 5 3 u50 P 5 10
s 5 212 t 5 23
We observe that although t remains negative, it has become less negative. We will
again select the largest value in a labeled column of the second row. The 3 in the
x column is the largest value. Consequently, the x column is the pivot column.
x y s t u P
* 3 0 21 0 1 0 12 12>3 5 4
≥ ¥
* 3 0 0 21 22 0 3 3>3 5 1
21 1 0 0 1 0 1
213 0 0 0 10 1 10
n
Pivot column
The 3 in the second row of the x column is the pivot, since the second row has the
smallest test ratio. We zero out the remaining entries in the x column using the in-
dicated operations. We then star the row corresponding to the negative variable.
x y s t u P
* 0 0 21 1 3 0 9 R1 2 R2
≥ ¥
3 0 0 21 22 0 3
0 3 0 21 1 0 6 3R3 1 R2
0 0 0 213 4 3 69 3R4 1 13R2
3x 5 3 3y 5 6 2s 5 9 t50 u50 3P 5 69
x51 y52 s 5 29 P 5 23
Observe that the surplus variable t is now nonnegative. We need to continue
the process to make s nonnegative. The largest value in the labeled columns
of the starred row is the 3 in the u column. Consequently, the u column is the pivot
column.
x y s t u P
* 0 0 21 1 3 0 9 9>3 5 3
≥ ¥
3 0 0 21 22 0 3
0 3 0 21 1 0 6 6>1 5 6
0 0 0 213 4 3 69
n
Pivot column
4.5 Solving General Linear Programming Problems with the Simplex Method 261
Using the 3 in the first row of the u column as a pivot, we zero out the remaining
column entries using the indicated operations.
y
x=0 x y s t u P
5 (4, 5) 0 0 21 1 3 0 9
−x + y = 1
≥ ¥
9 0 22 21 0 0 27 3R2 1 2R1
4
0 9 1 24 0 0 9 3R3 2 R1
x + 2y = 5
3 0 0 4 243 0 9 171 3R4 2 4R1
4x − y = 11 9x 5 27 9y 5 9 s50 t50 3u 5 9 9P 5 171
2
x53 y51 u53 P 5 19
(3, 1)
1
y=0
Since all decision, slack, and surplus variables are nonnegative, we are in the
(5, 0)
0 x feasible region. We can now proceed to Stage 2 of the process: applying the sim-
0 1 2 3 4 5
plex method. Before going on, let’s observe what has happened graphically (see
FIGURE 4.34 Figure 4.34).
The blue dots on the graph indicate the solutions to the various tableaus. We
started at (0, 0) , proceeded to (0, 1) , then to (1, 2) , and finally to (3, 1) .
Returning to the tableau, we apply the simplex method. The only negative
entry in the bottom row is in the t column, so the t column is our pivot column.
The only positive entry in the t column is the 1 in the first row, so that is our pivot.
x y s t u P
0 0 21 1 3 0 9
≥ ¥
9 0 22 21 0 0 27
0 9 1 24 0 0 9
0 0 4 243 0 9 171
n
Pivot column
We zero out the remaining entries in the t column with the indicated operations.
y
x=0
x y s t u P
5 (4, 5)
−x + y = 1 0 0 21 1 3 0 9
≥ ¥
4 9 0 23 0 3 0 36 R2 1 R1
x + 2y = 5 0 9 23 0 12 0 45 R3 1 4R1
3
0 0 239 0 129 9 558 R4 1 43R1
4x − y = 11
2 9x 5 36 9y 5 45 s50 t59 u50 9P 5 558
(3, 1) x54 y55 P 5 62
1
y=0
0
(5, 0) The s column is the new pivot column. However, we are unable to select a pivot
x
0 1 2 3 4 5 because every entry in the s column is negative. This signifies that the objective
FIGURE 4.35 function has no optimal solution. Figure 4.35 shows what has happened graphically.
We increased the value of the objective function by moving from the corner
point (3, 1) to the corner point (4, 5) . Out of all of the corner points, this is the
corner point that yields the largest value of the objective function. However, since
the region is unbounded, we can continue to increase the value of the objective
function indefinitely.
262 CHAPTER 4 Linear Programming
Subject to µ
22x 1 y 1 z $ 3
2x 1 y 1 z # 3
x $ 0, y $ 0, z $ 0
SOLUTION We add the slack and surplus variables and rewrite the objective
function.
2x 2 y 1 z 2 s 5 1
22x 1 y 1 z 2 t 5 3
2x 1 y 1 z 1 u 5 3
24x 2 3y 2 2z 1 P 5 0
The corresponding initial tableau is shown. We calculate the basic solution and
star the rows with negative variable values.
x y z s t u P
* 21 21 1 21 0 0 0 1
≥ ¥
* 22 1 1 0 21 0 0 3
21 1 1 0 0 1 0 3
24 23 22 0 0 0 1 0
x50 y50 z50 2s 5 1 2t 5 3 u53 P50
s 5 21 t 5 23
We may work with either starred row. We choose the second row. (This row cor-
responds to t 5 23.) The largest positive entries in the labeled columns of the
second row are the 1 in the y column and the 1 in the z column. We may pick ei-
ther column as the pivot column. We pick the y column. We calculate the test ra-
tios and locate the pivot. The test ratios are equal, so we may pick either the
second or the third row as the pivot row. We choose the second row.
x y z s t u P
21 21 1 21 0 0 0 1
≥ ¥
22 1 1 0 21 0 0 3 3>1 5 3
21 1 1 0 0 1 0 3 3>1 5 3
24 23 22 0 0 0 1 0
n
Pivot column
4.5 Solving General Linear Programming Problems with the Simplex Method 263
We zero out the y column using the indicated operations and star the row corre-
sponding with a negative variable value.
x y z s t u P
* 23 0 2 21 21 0 0 4 R1 1 R2
≥ ¥
22 1 1 0 21 0 0 3
1 0 0 0 1 1 0 0 R3 2 R2
210 0 1 0 23 0 1 9 R4 1 3R2
x50 y53 z50 2s 5 4 t50 u50 P59
s 5 24
The 2 in the z column is the largest positive value in the starred row. Conse-
quently, the z column is the pivot column. We calculate the test ratios and locate
the pivot.
x y z s t u P
23 0 2 21 21 0 0 4 4>2 5 2
≥ ¥
22 1 1 0 21 0 0 3 3>1 5 3
1 0 0 0 1 1 0 0
210 0 1 0 23 0 1 9
n
Pivot column
≥ ¥
21 2 0 1 21 0 0 2 2R2 2 R1
1 0 0 0 1 1 0 0
217 0 0 1 25 0 2 14 2R4 2 R1
x50 2y 5 2 2z 5 4 s50 t50 u50 2P 5 14
y51 z52 P57
Since all of the decision, slack, and surplus variables are positive, we are in
the feasible region. We may now move to Stage 2 and apply the simplex method.
Since the x column contains the negative value in the bottom row with the largest
magnitude, it is the pivot column. Since there is only one positive entry in the x
column, it is the pivot.
x y z s t u P
23 0 2 21 21 0 0 4
≥ ¥
21 2 0 1 21 0 0 2
1 0 0 0 1 1 0 0
217 0 0 1 25 0 2 14
n
Pivot column
264 CHAPTER 4 Linear Programming
We zero out the remaining terms in the x column using the indicated operations.
x y z s t u P
0 0 2 21 2 3 0 4 R1 1 3R3
≥ ¥
0 2 0 1 0 1 0 2 R2 1 R3
1 0 0 0 1 1 0 0
0 0 0 1 12 17 2 14 R4 1 17R3
x50 2y 5 2 2z 5 4 s50 t50 u50 2P 5 14
y51 z52 P57
Since all of the entries in the bottom row of the tableau are nonnegative, this so-
lution is the optimal solution. When x 5 0, y 5 1, and z 5 2, the objective func-
tion P 5 4x 1 3y 1 2z attains a maximum value of 7.
Figure 4.36 shows the graph of the constraints and the optimal solution. Each
constraint is a plane. The planes intersect at (0, 1, 2).
−2x + y + z = 3
− −y+z=1
−x
(0, 1, 2)
x
y
− +y+z=3
−x
FIGURE 4.36
TABLE 4.26
Company Share Price (dollars) Dividends/Share (dollars)
Harley-Davidson, Inc. (HDI) 63 0.40
Polaris Industries Inc. (PII) 51 0.90
Winnebago Industries Inc. (WGO) 33 0.20
Source: moneycentral.msn.com. (Accurate as of July 16, 2004.)
4.5 Solving General Linear Programming Problems with the Simplex Method 265
He wants to earn at least $50 in dividends while maximizing the number of shares
purchased. How many shares of each company should he purchase?
x y z s t P
36.3 0 19.5 0.9 51 0 150 0.9R1 2 51R2
£ 0.4 0.9 0.2 0 21 0 50 §
20.5 0 20.7 0 21 0.9 50 0.9R3 1 R2
x50 0.9y 5 50 z50 0.9s 5 150 t50 0.9P 5 50
y < 55.56 s < 166.67 P < 55.56
Since all of the decision, slack, and surplus variables are nonnegative, we are in
the feasible region and may move to Stage 2.
The negative entry in the bottom row of a labeled column with the largest
magnitude is the 21 in the t column. Consequently, the t column is the pivot
column. Since 51 is the only positive entry in the t column, it is the pivot. We zero
out the t column with the indicated operations.
x y z s t P
36.3 0 19.5 0.9 51 0 150
£ 56.7 45.9 29.7 0.9 0 0 2700 § 51R2 1 R1
10.8 0 216.2 0.9 0 45.9 2700 51R3 1 R1
x50 45.9y 5 2700 z50 s50 51t 5 150 45.9P 5 2700
y < 58.82 t < 2.94 P < 58.82
The z column is the new pivot column, since it contains a negative entry in the
bottom row. We calculate the test ratios and identify the pivot.
x y z s t P
36.3 0 19.5 0.9 51 0 150 150>19.5 < 7.69
£ 56.7 45.9 29.7 0.9 0 0 2700 § 2700>29.7 < 90.91
10.8 0 216.2 0.9 0 45.9 2700
We zero out the z column with the indicated operations.
x y z s t P
36.3 0 19.5 0.9 51 0 150
£ 27.54 895.05 0 29.18 21514.7 0 48195 § 19.5R2 2 29.7R1
798.66 0 0 32.13 826.2 895.05 55080 19.5R3 1 16.2R1
x50 895.05y 5 48195 19.5z 5 150 s50 t50 895.05P 5 55080
y < 53.85 z < 7.69 P < 61.54
The investor should purchase 53.85 shares of Polaris Industries and 7.69 shares
of Winnebago Industries in order to maximize the number of shares while simul-
taneously earning dividends of at least $50.
Minimization Problems
Examples 1, 2, and 3 showed how to maximize an objective function of a linear
programming problem with mixed constraints. What if we want to minimize the
objective function? Fortunately, with one minor modification to the objective
function, the same procedure works. We begin by observing the relationship be-
tween a function f and the function 2 f 5 21 ? f shown in Figure 4.37.
4.5 Solving General Linear Programming Problems with the Simplex Method 267
y Max of f
Max of − f
f a b
−f x
Min of f
Min of − f
FIGURE 4.37
Subject to µ
22x 1 4y 1 z $ 3
2x 1 y 1 z # 3
x $ 0, y $ 0, z $ 0
Subject to µ
22x 1 4y 1 z $ 3
2x 1 y 1 z # 3
x $ 0, y $ 0, z $ 0
268 CHAPTER 4 Linear Programming
We add in the slack and surplus variables and rewrite the objective function. The
system of equations is
x 1 2y 2 z 1 s 5 0
22x 1 4y 1 z 2 t 5 3
2x 1 y 1 z 1 u 5 3
3x 1 5y 1 2z 1 C 5 0
and has the corresponding tableau
x y z s t u C
1 2 21 1 0 0 0 0
≥ ¥
22 4 1 0 21 0 0 3
21 1 1 0 0 1 0 3
3 5 2 0 0 0 1 0
x50 y50 z50 s50 2t 5 3 u53 C50
t 5 23
Since the surplus variable t is negative, we star the corresponding row. The y col-
umn is the pivot column because it contains the largest positive entry in the
starred row. Calculating the test ratios, we select the pivot.
x y z s t u C
1 2 21 1 0 0 0 0 0>2 5 0
≥ ¥
* 22 4 1 0 21 0 0 3 3>4 5 0.75
21 1 1 0 0 1 0 3 3>1 5 3
3 5 2 0 0 0 1 0
We zero out the remaining terms in the y column using the indicated operations
and star the row corresponding with the negative variable value.
x y z s t u C
1 2 21 1 0 0 0 0
≥ ¥
* 24 0 3 22 21 0 0 3 R2 2 2R1
23 0 3 21 0 2 0 6 2R3 2 R1
1 0 9 25 0 0 2 0 2R4 2 5R1
x50 2y 5 0 z50 s50 2t 5 3 2u 5 6 2C 5 0
y50 t 5 23 u53 C50
The largest positive value in the starred row is the 3 in the z column. Conse-
quently, the z column is the pivot column. We calculate the test ratios and select
the pivot.
x y z s t u C
1 2 21 1 0 0 0 0
≥ ¥
24 0 3 22 21 0 0 3 3>3 5 1
23 0 3 21 0 2 0 6 6>3 5 2
1 0 9 25 0 0 2 0
4.5 Solving General Linear Programming Problems with the Simplex Method 269
We zero out the remaining terms in the z column with the indicated operations.
x y z s t u C
21 6 0 1 21 0 0 3 3R1 1 R2
≥ ¥
24 0 3 22 21 0 0 3
1 0 0 1 1 2 0 3 R3 2 R2
13 0 0 1 3 0 2 29 R4 2 3R2
x50 6y 5 3 3z 5 3 s50 t50 2u 5 3 2C 5 29
1 3 9
y5 z51 u5 C52
2 2 2
Since all decision, slack, and surplus variables are nonnegative, we are now in the
feasible region. (There is no restriction on the sign of the objective function. In
this case, C is negative.) We may now move to Stage 2 of the process. However,
since no entry in the bottom row of a labeled column is negative, this is the final
tableau. The objective function C 5 23x 2 5y 2 2z is maximized at A 0, 2, 1 B .
1
9 9
The maximum value of C is 2 2. Since P 5 2C , the minimum value of P is 2.
SOLUTION Let x be the amount invested in the Bond fund, y be the amount in-
vested in the Index fund, and z be the amount invested in the Growth fund. We
must solve the following linear programming problem.
Minimize P5y
x 1 y 1 z 5 5000 $5000 is invested
Subject to • 0.07x 1 0.11y 1 0.09z $ 0.1(5000) The return is at least 10
x $ 0, y $ 0, z $ 0 of $5000
270 CHAPTER 4 Linear Programming
We rewrite the first constraint as two inequalities and simplify the second con-
straint. We then create a new objective function C 5 2P. Since P 5 y, C 5 2y.
The new linear programming problem is
Maximize C 5 2y
x 1 y 1 z # 5000
Subject to µ
x 1 y 1 z $ 5000
0.07x 1 0.11y 1 0.09z $ 5
x $ 0, y $ 0, z $ 0
We add the surplus and slack variables and rewrite the objective function.
x 1 y 1 z 1 s 5 5000
x 1 y 1 z 2 t 5 5000
0.07x 1 0.11y 1 0.09z 2 u 5 500
y1C50
We write the initial tableau and star the appropriate rows.
x y z s t u C
1 1 1 1 0 0 0 5000
≥ ¥
* 1 1 1 0 21 0 0 5000
* 0.07 0.11 0.09 0 0 21 0 500
0 1 0 0 0 0 1 0
x50 y50 z50 s 5 5000 2t 5 5000 2u 5 500 C50
t 5 25000 u 5 2500
Although we may use either starred row, we pick the second row of the tableau
because the entries are simpler. We may pick the x, y, or z column as the pivot col-
umn. We pick the x column. We calculate the test ratios and identify the pivot.
x y z s t u C
1 1 1 1 0 0 0 5000 5000>1 5 5000
≥ ¥
1 1 1 0 21 0 0 5000 5000>1 5 5000
0.07 0.11 0.09 0 0 21 0 500 500>0.07 < 7143
0 1 0 0 0 0 1 0
We may pick either the first or the second term in the x column to be the pivot.
We pick the first term and zero out the remaining entries with the indicated op-
erations. We then star the appropriate row.
x y z s t u C
1 1 1 1 0 0 0 5000
≥ ¥
0 0 0 21 21 0 0 0 R2 2 R1
* 0 0.04 0.02 20.07 0 21 0 150 R3 2 0.07R1
0 1 0 0 0 0 1 0
x 5 5000 y50 z50 s50 2t 5 0 2u 5 150 C50
t50 u 5 2150
4.5 Solving General Linear Programming Problems with the Simplex Method 271
The y column is the pivot column, since the largest positive entry in the starred
row is the 0.04 in the y column. We calculate the test ratios and locate the pivot.
x y z s t u C
1 1 1 1 0 0 0 5000 5000>1 5 5000
≥ ¥
0 0 0 21 21 0 0 0
* 0 0.04 0.02 20.07 0 21 0 150 150>0.04 5 3750
0 1 0 0 0 0 1 0
We zero out the y column with the indicated operations.
x y z s t u C
0.04 0 0.02 0.11 0 1 0 50 0.04R1 2 R3
≥ ¥
0 0 0 21 21 0 0 0
0 0.04 0.02 20.07 0 21 0 150
0 0 20.02 0.07 0 1 0.04 2150 0.04R4 2 R3
≥ ¥
0 0 0 21 21 0 0 0
0 0.04 0.02 20.07 0 21 0 150 150>0.04 5 3750
0 0 20.02 0.07 0 1 0.04 2150
We zero out the remaining terms in the pivot column with the indicated operations.
x y z s t u C
0.04 0 0.02 0.11 0 1 0 50
≥ ¥
0 0 0 21 21 0 0 0
20.04 0.04 0 20.18 0 22 0 100 R3 2 R1
0.04 0 0 0.18 0 2 0.04 2100 R4 1 R1
x50 0.04y 5 100 0.02z 5 50 s50 2t 5 0 u50 0.04C 5 2100
y 5 2500 z 5 2500 t50 C 5 22500
Since all entries in the bottom row are positive, this is the final tableau. The ob-
jective function C reaches its maximum value when x 5 0, y 5 2500, and
z 5 2500. The maximum value is C 5 22500. The objective function P 5 2C
attains its minimum value of 2500 at the same point. In the context of the prob-
lem, a 10 percent return is earned when $0 is invested in the Bond fund, $2500 is
invested in the Index fund, and $2500 is invested in the Growth fund. This solu-
tion minimizes the amount of money invested in the Index fund.
272 CHAPTER 4 Linear Programming
4.5 Summary
In this section, you learned how to solve general linear programming problems.
You discovered that minimization problems may be solved by maximizing the
negative of the objective function.
4.5 Exercises
In Exercises 1–5, rewrite the general linear In Exercises 6–10, star the rows of the tableau that
programming problem as a system of equations with correspond with negative variable values.
slack and surplus variables and a rewritten objective
6. x y s t u P
function.
21 2 1 0 0 0 4
1. Maximize P 5 4x 1 2y 1 3z
≥ ¥
2 23 0 1 0 0 6
2x 1 y 1 z # 10 4 1 0 0 21 0 5
Subject to µ
x1z$3 26 22 0 0 0 1 0
x 2 2z $ 1 7. x y s t u P
x $ 0, y $ 0, z $ 0
9 4 21 0 0 0 10
2. Maximize P 5 2x 1 10y 1 z
≥ ¥
22 5 0 1 0 0 8
2x 1 3y # 2 1 1 0 0 21 0 12
Subject to µ
3x 1 z $ 4 5 4 0 0 0 1 0
5x 2 4z $ 1 8. x y s t u P
x $ 0, y $ 0, z $ 0
21 2 21 0 0 0 4
3. Maximize P 5 3x 2 y 1 9z
≥ ¥
2 0 22 1 0 0 6
212x 1 8y 1 2z # 15 4 0 1 0 25 0 5
Subject to µ
8x 1 5y 2 2z # 10 26 0 3 0 0 4 24
3x 2 2y 1 6z $ 5 9. x y s t u P
x $ 0, y $ 0, z $ 0
0 6 22 0 0 0 16
4. Maximize P5x2z
≥ ¥
5 1 0 1 0 0 1
2x 1 y 1 z # 12 0 3 0 4 24 0 6
Subject to µ
x 1 3y 2 5z $ 5 0 10 0 5 0 3 9
2x 1 y 2 2z # 1 10. x y s t u P
x $ 0, y $ 0, z $ 0
0 3 0 0 3 0 15
5. Maximize P 5 10x 1 9y 1 z
≥ ¥
0 0 1 1 2 0 1
4x 2 3y 2 2z # 12 2 0 0 22 24 0 4
Subject to µ
22x 1 4y 1 6z # 12 0 0 0 6 3 1 22
3x 2 2y 1 4z $ 12
x $ 0, y $ 0, z $ 0
4.5 Solving General Linear Programming Problems with the Simplex Method 273
In Exercises 11–20, graph the feasible region of the 18. Minimize P 5 23x 1 8y
general linear programming problem. Then solve y# 6
the problem by using the methods demonstrated in the
Subject to µ
22x 1 y $ 0
section. For each tableau, indicate on the graph of
the feasible region the point that corresponds with the 2x 1 y $ 8
solution of the tableau. x$ 0, y $ 0
11. Maximize P 5 2x 2 3y 19. Minimize P 5 2x 1 y
2x 1 y # 10 x1y$ 1
Subject to µ
2x 2 3y $ 2
Subject to µ
x1y$3
3x 2 y $ 1 x 1 4y $ 4
x $ 0, y $ 0 x$ 0, y $ 0
12. Maximize P 5 4x 1 y 20. Maximize P 5 4x 1 2y
2x 1 y # 10 5x 1 2y $ 17
Subject to µ
x 2 2y # 1
Subject to µ
2x 1 3y $ 14
22x 1 y # 2 x1y$7
x $ 0, y $ 0 x $ 0, y $ 0
13. Maximize P 5 5x 2 8y In Exercises 21–35, solve the general linear
2x 1 y # 13 programming problem. If there is no solution, so state.
Subject to µ
9x 2 3y # 6 21. Maximize P 5 3x 1 2y 1 z
2x 1 2y $ 6
x1 y # 10
x $ 0, y $ 0
Subject to µ
x1 z#5
14. Maximize P 5 6x 1 3y y1 z$4
2x 1 y $ 0 x$ 0, y $ 0, z $ 0
Subject to µ
2x 1 y $ 9 22. Maximize P 5 5x 1 6y 1 2z
x 1 2y $ 6
x 1 2y # 10
x $ 0, y $ 0
Subject to µ
2x 1 z # 8
15. Maximize P 5 23x 1 4y y 1 2z $ 6
3x 1 12y $ 12 x $ 0, y $ 0, z $ 0
Subject to µ
2x 1 y # 8 23. Maximize P5x2y1z
x1y# 6
4x 1 3y 1 2z $ 12
x$ 0, y $ 0
Subject to µ
2x 1 2y 1 z # 8
16. Minimize P 5 3x 1 5y x 1 y 1 4z $ 4
25x 1 2y # 2 x $ 0, y $ 0, z $ 0
Subject to µ
2x 1 y # 4 24. Maximize P 5 6x 1 y
27x 1 4y $ 4
5x 1 2y 1 4z # 23
x $ 0, y $ 0
Subject to µ
2x 1 y 1 z $ 4
17. Minimize P 5 7x 1 4y x2y1z$4
3x 1 y $ 10 x $ 0, y $ 0, z $ 0
Subject to µ
x1y$6 25. Maximize P 5 2z
3x 1 2y # 17
x 1 2y 1 3z $ 12
x $ 0, y $ 0
Subject to µ
3x 1 y 1 2z # 12
2x 1 3y 1 z # 12
x $ 0, y $ 0, z $ 0
274 CHAPTER 4 Linear Programming
Subject to µ Subject to µ
x2y1z#7 x2y1z$2
2x 2 y 1 z $ 3 x1z#4
x $ 0, y $ 0, z $ 0 x $ 0, y $ 0, z $ 0
27. Maximize P 5 6x 2 2y 1 6z 35. Maximize P 5 4x 1 3y 1 2z
2x 2 y 1 z # 1 x1y1z$8
Subject to µ Subject to µ
x1y1z#7 22x 1 z $ 1
2x 2 3y 1 z $ 12 3y 1 5z # 27
x $ 0, y $ 0, z $ 0 x $ 0, y $ 0, z $ 0
28. Minimize P 5 4y 1 9z
In Exercises 36–45, use the techniques demonstrated
22x 2 3y 1 z $ 0 in the section to set up and solve each problem.
Subject to µ
4x 1 y 1 z $ 10
36. Commodity Prices Today’s Market
24x 1 2y 1 z $ 3 Prices (www.todaymarket.com) is a daily
x $ 0, y $ 0, z $ 0 fruit and vegetable wholesale market price service.
29. Minimize P 5 2x 2 y 1 4z Produce retailers who subscribe to the service can
use wholesale prices to aid them in setting retail
22x 1 3y 1 z $ 4 prices for the fruits and vegetables they sell.
Subject to µ
2x 1 4y 1 z # 4 A 25-pound carton of peaches holds 60
24x 1 y 1 z # 12 medium peaches or 70 small peaches. In August
x $ 0, y $ 0, z $ 0 2002, the wholesale price for local peaches in Los
Angeles was $9.00 per carton for medium peaches
30. Minimize P 5 5x 1 4y 1 3z and $10.00 per carton for small peaches. (Source:
2x 2 5y 1 z $ 4 Today’s Market Prices.) A fruit vendor has budgeted
up to $100 to spend on peaches. He estimates that
Subject to µ
2x 1 4y 1 z # 13
z$3 weekly demand for peaches is no more than 660
peaches. He wants to buy at least four boxes of
x $ 0, y $ 0, z $ 0
each size of peach. Subject to these constraints,
31. Minimize P 5 9x 2 3y 2 3z how many boxes of each size of peach should he
23x 2 4y 1 z # 4 buy in order to maximize the number of peaches
available for sale?
Subject to µ
2x 2 5y 1 z # 14
3x 2 2y 1 z $ 8 37. Battery Sales AAA Alkaline Discount
x $ 0, y $ 0, z $ 0 Batteries sells low-cost batteries to
consumers. In August 2002, the firm offered AA
32. Minimize P 5 x 2 y 1 3z batteries at the following prices: 50-pack for
2x 1 2y 2 z # 4 $10.00, 100-pack for $18.00, and 600-pack for
$96.00. (Source: www.aaaalkalinediscountbatteries
Subject to µ
5x 2 4y 1 z $ 16
.com.)
x 2 4y 1 z $ 5
An electronics store owner wants to buy at least
x $ 0, y $ 0, z $ 0 900 batteries and spend at most $150. She expects
33. Minimize P 5 6x 2 2y 1 4z that she’ll be able to resell all of the batteries she
orders for $1.50 each. How many packs (50-
8x 1 y 2 z # 8
packs, 100-packs, or 600-packs) should she order
Subject to µ
x2y1z$1 if she wants to maximize her revenue? What is her
x 2 y 1 z # 10 maximum revenue? (Hint: At most one 600-pack
x $ 0, y $ 0, z $ 0 may be purchased without exceeding the $150
limit.)
4.5 Solving General Linear Programming Problems with the Simplex Method 275
38. Resource Allocation: Food An ice bean and the manufacturer. A 1/2-cup serving of
cream parlor wants to make three Fred Meyer Pinto Beans contains 7 grams of fiber,
different types of ice cream: vanilla, strawberry, 1 gram of sugar, and 6 grams of protein. A 1/2-cup
and peach-cherry. The parlor has 120 cups of serving of Fred Meyer Kidney Beans contains
cream, 48 eggs, and 32 cups of sugar on hand. 11 grams of fiber, 1 gram of sugar, and 8 grams of
The vanilla ice cream recipe calls for 4 cups of protein. A 1/2-cup serving of Trader Joe’s Cuban
cream, 1 egg, and 0.75 cup of sugar. The Style Black Beans contains 2 grams of fiber,
strawberry ice cream recipe calls for 2 cups of 1 gram of sugar, and 6 grams of protein. (Source:
cream, 2 eggs, and 0.75 cup of sugar. The peach- Package labeling.) A bean dish is to be made using
cherry ice cream recipe calls for 4 cups of cream, the three bean varieties. The dish can contain at
1 egg, and 1.25 cups of sugar. Each recipe yields most 3 cups of beans but must include at least
1.5 quarts of ice cream. The parlor needs at least 39 grams of fiber and 42 grams of protein. How
18 quarts of vanilla and at least 6 quarts of each much of each type of bean should be included in
of the other varieties. The parlor wants to the dish in order to minimize the amount of kidney
maximize the amount of cream produced. How beans used? (Fractions of cups may be used.)
many batches of each variety of ice cream does
42. Nutrition The nutritional content of
the parlor need to produce?
canned vegetables varies based on the
39. Resource Allocation: Food A type of vegetable and the manufacturer. A 1/2-cup
delicatessen makes three types of serving of S&W Cut Blue Lake Green Beans
pudding: rice, tapioca, and vanilla. The deli has contains 2 grams of fiber, 2 grams of sugar, and
108 cups of milk, 150 cups of sugar, and 84 eggs 20 calories. A 1/2-cup serving of Safeway Golden
on hand. The rice pudding recipe requires 12 cups Sweet Whole Kernel Corn contains 2 grams of
of milk, 1.5 cups of sugar, and 9 eggs and yields fiber, 6 grams of sugar, and 80 calories. A 1/2-cup
24 servings. The tapioca pudding recipe requires serving of Pot O’Gold Sliced Carrots contains
12 cups of milk, 1.5 cups of sugar, and 9 eggs and 2 grams of fiber, 4 grams of sugar, and 30
yields 18 servings. The vanilla pudding recipe calories. (Source: Package labeling.) A dish is to be
requires 6 cups of milk, 1.5 cups of sugar, and made using the three types of vegetables. The dish
6 eggs and yields 12 servings. The deli requires can contain at most 5 cups of vegetables but must
that the sum of the number of batches of tapioca include at least 18 grams of fiber and at least
pudding and the number of batches of rice 32 grams of sugar (for flavor). How much of each
pudding be at least two. How many batches of type of vegetable should be included in the dish in
each recipe must the deli produce in order to order to minimize the amount of calories in the
maximize the number of servings? dish?
40. Advertising A large company advertises through 43. Resource Allocation: Schools A city has two
magazines, radio, and television. For every elementary schools. The first school has a
$10,000 spent on magazine advertising, the maximum enrollment of 500 students, and the
company estimates that it reaches 150,000 people. second school has a maximum enrollment of
For every $10,000 spent on radio advertising, the 420 students. The city is divided into two regions:
company estimates that it reaches 250,000 people. North and South. There are at least 400 students
For every $10,000 spent on television advertising, in the North region and at least 430 students in
the company estimates that it reaches 300,000 the South region. The annual transportation cost
people. The company has at most $2.5 million to varies by region as shown in the table.
spend on advertising. It requires that at least twice
Transportation Costs
as much be spent on radio as on television and
that the amount spent on magazines be at least School 1 School 2
$150,000 more than the amount spent on radio. (cost per (cost per
How much should the company spend on each student) student)
type of advertising in order to maximize the North 120 180
number of people reached?
South 100 150
41. Nutrition The nutritional content of
canned beans varies based on the type of
276 CHAPTER 4 Linear Programming
Based on these constraints, what is the Subject to these constraints, under what conditions
minimum possible transportation cost, and under are the company’s delivery costs minimized?
what conditions does it occur?
Exercises 46–50 are intended to challenge your
44. Resource Allocation: Schools A city has two
understanding of general linear programming problems.
high schools. The first school has a maximum
enrollment of 900 students, and the second school 46. Maximize P5x1y1z1w
has a maximum enrollment of 550 students. The
x1y1z#9
city is divided into two regions: Inner City and y 1 z 1 w # 8
Suburbs. There are at least 500 students in the
Inner City region and at least 800 students in the Subject to x 1 z 1 w $ 7
x 1 y 1 w $ 6
Suburbs region. The annual transportation cost
varies by region as shown in the table. x $ 0, y $ 0, z $ 0, w $ 0
Subject to µ Subject to µ
22x 1 y # 0 2x 1 y # 1
x$ 0 x$ 0
y$ 0 y$ 0
278 CHAPTER 4 Linear Programming
(iv) Check your answer by graphing the feasible Nutro Max Natural Dog Food, 27 percent
region of the standard minimization problem and protein, 16 percent fat, $12.99 per 17.5-pound
calculating the value of the objective function at bag
each of the corner points. PETsMART Premier Oven Baked Lamb
Recipe, 25 percent protein, 14 percent fat,
29. Minimize P 5 4x 1 2y
$22.99 per 30-pound bag (Source:
4x 1 5y $ 20 www.petsmart.com.)
Subject to • 2x 1 3y $ 11 A dog breeder wants to make at least 300 pounds
x $ 0, y $ 0 of a mix containing at least 24 percent protein.
How many bags of each dog food variety should
30. Minimize P 5 x 1 6y the breeder buy in order to minimize fat content?
2x 1 9y $ 19
Subject to • 2x 1 10y $ 5 Section 4.5 In Exercises 35–36, rewrite the
x $ 0, y $ 0 general linear programming problem as a system of
equations with slack and surplus variables and a
31. Minimize P 5 2x 1 3y rewritten objective function.
5x 1 2y $ 26 35. Maximize P 5 2x 1 3y 1 z
Subject to • 10x 2 5y $ 25
2x 1 4y 1 z # 10
x $ 0, y $ 0
Subject to µ
x 1 2z $ 3
32. Minimize P 5 3x 1 5y 3x 2 2z $ 1
9x 1 4y $ 36 x $ 0, y $ 0, z $ 0
Subject to • 3x 1 2y $ 18 36. Maximize P 5 x 2 10y 1 6z
x $ 0, y $ 0
22x 1 2y 1 3z # 2
Subject to µ
In Exercises 33–34, set up and solve the standard 5x 1 2y 1 3z $ 4
minimization problem. 7x 2 3y 1 2z $ 1
x $ 0, y $ 0, z $ 0
33. Pet Nutrition: Food Cost
PETsMART.com sold the following
In Exercises 37–38, solve the general linear
varieties of dog food in June 2003.
programming problem. If there is no solution, so state.
Authority Chicken Adult Formula, 32 percent
protein, 3 percent fiber, $19.99 per 33-pound 37. Maximize P 5 4x 1 y 1 10z
bag x 1 3y 1 2z # 5
Bil-Jac Select Dog Food, 27 percent protein,
Subject to µ
2x 1 y 1 2x $ 4
4 percent fiber, $18.99 per 18-pound bag
2y 1 3z # 6
Iams Minichuncks, 26 percent protein, 4 percent
fiber, $8.99 per 8-pound bag (Source: x $ 0, y $ 0, z $ 0
www.petsmart.com.) 38. Minimize P 5 4x 1 y 1 10z
A dog kennel wants to make at least 330 pounds
x 1 3y 1 2z # 5
of a mix containing at least 30 percent protein and
Subject to µ
at least 3 percent fiber. How many bags of each 2x 1 y 1 2x $ 4
A K E I T
dog food variety should the kennel buy in order to 2y 1 3z # 6
minimize cost? (To make computations easier, x $ 0, y $ 0, z $ 0
round the price of each bag to the nearest dollar.) R E A L : P R O J E C T 4
34. Pet Nutrition: Fat Content
PETsMART.com sold the following
varieties of dog food in June 2003.
Nature’s Recipe Venison Meal & Rice Canine,
20 percent protein, 10 percent fat, $21.99 per
20-pound bag
P R O J E C T 4
What to do
1. Find the wholesale and retail prices of three items of personal interest.
2. Estimate the number of cubic feet each item (or box of items) occupies.
3. Find a place in your home or workplace where you could store the items.
Calculate the number of cubic feet in the storage area.
4. Assume that you may spend up to 100 times the retail price of the most ex-
pensive item in purchasing a combination of the three items.
5. Assume that you will be able to sell at retail price all of the items you order
at wholesale. Determine how many of the items you should order if you
want to maximize your profit subject to the spending and storage area
constraints.
Retail Prices
Local grocery stores, clothing stores, etc.
Advertisements from newspapers
Search the Internet and type in a key word for your product of interest.
280