Linear Programming
Linear Programming
TABLE 19.1
Changes to objective function coefficients that are within the
Summary of the impact
range of optimality
of changes within their
respective ranges Component Result
Values of decision variables No change
Value of objective function Will change
constraint has a slack of 20. Similarly, for a ≥ constraint, going below its lower bound creates
a surplus for that constraint. The second case for each of these would be exceeding the oppo-
site limit (the lower bound for a ≤ constraint, or the upper bound for a ≥ constraint). In either
instance, a new solution would have to be generated.
Linear programming is a powerful tool used for constrained optimization situations. Components of LP
SUMMARY problems include an objective function, decision variables, constraints, and numerical values (param-
eters) of the objective function and constraints.
The size of real-life problems and the burden of manual solution make computer solutions the practi-
cal way to solve real-life problems. Even so, much insight can be gained through the study of simple,
two-variable problems and graphical solutions.
1. Optimizing techniques such as linear programming help business organizations make the best use
KEY POINTS of limited resources, such as materials, time, and energy, to maximize profits or to minimize costs.
2. As with all techniques, it is important to confirm that the underlying assumptions on which the
technique is based are reasonably satisfied by the model in order to achieve valid results.
3. Although the graphical technique has limited use due to the fact that it can only handle two-variable
problems, it is very useful in conveying many of the important concepts associated with linear pro-
gramming techniques.
SOLVED PROBLEMS
Problem 1 A small construction firm specializes in building and selling single-family homes. The firm offers
two basic types of houses: model A and model B. Model A houses require 4,000 labor hours, 2 tons
of stone, and 2,000 board feet of lumber. Model B houses require 10,000 labor hours, 3 tons of stone,
and 2,000 board feet of lumber. Due to long lead times for ordering supplies and the scarcity of
skilled and semiskilled workers in the area, the firm will be forced to rely on its present resources for
the upcoming building season. It has 400,000 hours of labor, 150 tons of stone, and 200,000 board
feet of lumber. What mix of model A and B houses should the firm construct if model A yields a
Chapter Nineteen Linear Programming 847
profit of $3,000 per unit and model B yields $6,000 per unit? Assume that the firm will be able to
sell all the units it builds.
120
100
Number of units of model B
80 Redundant
60
Lu
m
be
r
40 Sto
ne Optimum
20 Lab
or
0
20 40 60 80 100 120
Number of units of model A
3. Determine the optimal quantities of models A and B, and compute the resulting profit. Because
the optimum point is at the intersection of the stone and labor constraints, solve those two equa-
tions for their common point:
Labor 4,000A + 10,000B = 400,000
________________________________
− 2,000 × (Stone 2A + 3B = 150)
4,000B = 100,000
B = 25
Substitute B = 25 in one of the equations, and solve for A:
2A + 3(25) = 150 A = 37.5
Z = 3,000(37.5) + 6,000(25) = 262,500
4. We could have used the enumeration approach to find the optimal corner point. The corner
points and the value of the objective function at each corner point are:
A = 0, B = 40 (found by inspection); Z = 3,000(0) + 6,000(40) = 240,000
= 37.5, B = 25 (found using simultaneous equations); Z = 262,500 (see step 3)
A
A = 75, B = 0 (found by inspection); Z = 3,000(75) + 6,000(0) = 225,000
The best value of Z is 262,500 (because this is a maximization problem), so that indicates that the
optimal corner point is A = 37.5, B = 25.
1
For the sake of consistency, we will assign to the horizontal axis the first decision variable mentioned in the
problem. In this case, variable A will be represented on the horizontal axis, and variable B on the vertical axis.
848 Chapter Nineteen Linear Programming
1. Solve these problems using graphical linear programming and answer the questions that follow. Use
simultaneous equations to determine the optimal values of the decision variables. PROBLEMS
a. Maximize Z = 4x1 + 3x2
Subject to
Material 6x 1 + 4x 2 ≤ 48 lb
Labor
4x 1 + 8x 2 ≤ 80 hr
x 1, x 2 ≥ 0
b. Maximize Z = 2x1 + 10x2
Subject to
Durability 10x 1 + 4x 2 ≥ 40 wk
Strength 1x 1 + 6x 2 ≥ 24 psi
Time 1x 1 + 2x 2 ≤ 14 hr
x 1, x 2 ≥ 0
c. Maximize Z = 6A + 3B (revenue)
Subject to
Material 20A + 6B ≤ 600 lb
Machinery 25A + 20B ≤ 1,000 hr
Labor 20A + 30B ≤ 1, 200 hr
A, B ≥ 0
(1) What are the optimal values of the decision variables and Z?
(2) Do any constraints have (nonzero) slack? If yes, which one(s) and how much slack does each have?
(3) Do any constraints have (nonzero) surplus? If yes, which one(s) and how much surplus does
each have?
(4) Are any constraints redundant? If yes, which one(s)? Explain briefly.
2 . Solve these problems using graphical linear programming and then answer the questions that fol-
low. Use simultaneous equations to determine the optimal values of the decision variables.
a. Minimize Z = 1.80S + 2.20T
Subject to:
Potassium 5S + 8T ≥ 200 gr
Carbohydrate 15S + 6T ≥ 240 gr
Protein
4S + 12T ≥ 180 gr
T T ≥ 10 gr
S, T ≥ 0
b. Minimize Z = 2x1 + 3x2
Subject to:
D 4x 1 + 2x 2 ≥ 20
E 2x 1 + 6x 2 ≥ 18
F 1x 1 + 2x 2 ≤ 12
x 1, x 2 ≥ 0
(1) What are the optimal values of the decision variables and Z?
(2) Do any constraints have (nonzero) slack? If yes, which one(s) and how much slack does each have?
(3) Do any constraints have (nonzero) surplus? If yes, which one(s) and how much surplus does
each have?
(4) Are any constraints redundant? If yes, which one(s)? Explain briefly.
850 Chapter Nineteen Linear Programming
3. a. An appliance manufacturer produces two models of microwave ovens: H and W. Both models
require fabrication and assembly work; each H uses four hours of fabrication and two hours
of assembly, and each W uses two hours of fabrication and six hours of assembly. There are
600 fabrication hours available this week and 480 hours of assembly. Each H contributes
$40 to profits, and each W contributes $30 to profits. What quantities of H and W will maxi-
mize profit? (1) Use the objective function method. (2) Use the enumeration method.
b. The company also produces two refrigerator models: large (L) and medium (M). Although materi-
als to produce the refrigerators is available, fabrication time and assembly time are limited. There are
540 hours available for fabrication and 600 hours available for assembly this week. Each unit of model
L requires 6 hours for fabrication and 3 hours for assembly, and each unit of M requires 4 hours for
fabrication and 5 hours for assembly. Each unit of L contributes $50 to profit, and each unit of model
M contributes $40 to profit. How many units of each model should be produced if the objective is to
maximize profit? (1) Use the objective function method. (2) Use the enumeration method.
4. A small candy shop is preparing for the holiday season. The owner must decide how many bags of
deluxe mix and how many bags of standard mix of Peanut/Raisin Delite to put up. The deluxe mix
has 2 ⁄ 3pound raisins and 1 ⁄ 3pound peanuts, and the standard mix has 1 ⁄ 2pound raisins and 1 ⁄ 2 pound
peanuts per bag. The shop has 90 pounds of raisins and 60 pounds of peanuts to work with.
Peanuts cost $.60 per pound and raisins cost $1.50 per pound. The deluxe mix will sell for $2.90
for a one-pound bag, and the standard mix will sell for $2.55 for a one-pound bag. The owner esti-
mates that no more than 110 bags of one type can be sold.
a. If the goal is to maximize profits, how many bags of each type should be prepared?
b. What is the expected profit?
5. A retired couple supplement their income by making fruit pies, which they sell to a local grocery
store. During the month of September, they produce apple and grape pies. The apple pies are
sold for $4.50 to the grocer, and the grape pies are sold for $3.60. The couple is able to sell all
of the pies they produce owing to their high quality. They use fresh ingredients. Flour and sugar
are purchased once each month. For the month of September, they have 1,200 cups of sugar and
2,100 cups of flour. Each apple pie requires 11 ⁄ 2cups of sugar and 3 cups of flour, and each grape
pie requires 2 cups of sugar and 3 cups of flour.
a. Determine the number of grape and the number of apple pies that will maximize revenues if the
couple working together can make an apple pie in six minutes and a grape pie in three minutes.
They plan to work no more than 60 hours.
b. Determine the amounts of sugar, flour, and time that will be unused.
6. Solve each of these problems by computer and obtain the optimal values of the decision variables
and the objective function.
a. Maximize Z = 4x1 + 2x2 + 5x3
Subject to:
1x 1 + 2x 2 + 1x 3 ≤ 25
1x 1 + 4x 2 + 2x 3 ≤ 40
3x 1 + 3x 2 + 1x 3 ≤ 30
x 1, x 2, x 3 ≥ 0
9. A small firm makes three similar products, which all follow the same three-step process, consist-
ing of milling, inspection, and drilling. Product A requires 12 minutes of milling, 5 minutes for
inspection, and 10 minutes of drilling per unit; product B requires 10 minutes of milling, 4 minutes
for inspection, and 8 minutes of drilling per unit; and product C requires 8 minutes of milling,
4 minutes for inspection, and 16 minutes of drilling. The department has 20 hours available during
the next period for milling, 15 hours for inspection, and 24 hours for drilling. Product A contributes
$2.40 per unit to profit, product B contributes $2.50 per unit, and product C contributes $3.00 per
unit. Determine the optimal mix of products in terms of maximizing contribution to profits for the
period. Then, find the range of optimality for the profit coefficient of each variable.
10. Formulate and then solve a linear programming model of this problem, to determine how many
containers of each product to produce tomorrow to maximize profits. The company makes four
juice products using orange, grapefruit, and pineapple juice.
The All-in-One juice has equal parts of orange, grapefruit, and pineapple juice. Each product is
produced in a one-quart size (there are four quarts in a gallon). On hand are 400 gallons of orange
juice, 300 gallons of grapefruit juice, and 200 gallons of pineapple juice. The cost per gallon is
$2.00 for orange juice, $1.60 for grapefruit juice, and $1.40 for pineapple juice.
In addition, the manager wants grapefruit juice to be used for no more than 30 percent of the
number of containers produced. She wants the ratio of the number of containers of orange juice to
the number of containers of pineapple juice to be at least 7 to 5.
1 1. A wood products firm uses available time at the end of each week to make goods for stock.
Currently, two products on the list of items are produced for stock: a chopping board and a knife
holder. Both items require three operations: cutting, gluing, and finishing. The manager of the
firm has collected the following data on these products.
The manager has also determined that, during each week, 56 minutes are available for cutting, 650
minutes are available for gluing, and 360 minutes are available for finishing.
a. Determine the optimal quantities of the decision variables if the goal is to maximize profit.
b. Which resources are not completely used by your solution? How much of each resource
is unused?
12. The manager of the deli section of a grocery superstore has just learned that the department has
112 pounds of mayonnaise, of which 70 pounds is approaching its expiration date and must be
used. To use up the mayonnaise, the manager has decided to prepare two items: a ham spread
and a deli spread. Each pan of the ham spread will require 1.4 pounds of mayonnaise, and each
pan of the deli spread will require 1.0 pound. The manager has received an order for 10 pans of
ham spread and 8 pans of the deli spread. In addition, the manager has decided to have at least
10 pans of each spread available for sale. Both spreads will cost $3 per pan to make, but ham
spread sells for $5 per pan, and deli spread sells for $7 per pan.
a. Determine the solution that will minimize cost.
b. Determine the solution that will maximize profit.
13. A manager wants to know how many units of each product to produce on a daily basis to achieve
the highest profit. Production requirements for the products are shown in the following table.
852 Chapter Nineteen Linear Programming
Material 1 costs $5 a pound, material 2 costs $4 a pound, and labor costs $10 an hour. Product
A sells for $80 a unit, product B sells for $90 a unit, and product C sells for $70 a unit. Available
resources each day are 200 pounds of material 1; 300 pounds of material 2; and 150 hours of labor.
The manager must satisfy certain output requirements: The output of product A should not be
more than one-third of the total number of units produced; the ratio of units of product A to units
of product B should be 3 to 2; and there is a standing order for 5 units of product A each day. For-
mulate a linear programming model for this problem, and then solve.
14. A chocolate maker has contracted to operate a small candy counter in a fashionable store. To start
with, the selection of offerings will be intentionally limited. The counter will offer a regular mix
of candy made up of equal parts of cashews, raisins, caramels, and chocolates, and a deluxe mix
that is one-half cashews and one-half chocolates, which will be sold in one-pound boxes. In addi-
tion, the candy counter will offer individual one-pound boxes of cashews, raisins, caramels, and
chocolates.
A major attraction of the candy counter is that all candies are made fresh at the counter. How-
ever, storage space for supplies and ingredients is limited. Bins are available that can hold the
amounts shown in the table.
Capacity
Ingredient (pounds per day)
Cashews 120
Raisins 200
Caramels 100
Chocolates 160
I n order to present a good image and to encourage purchases, the counter will make at least 20
boxes of each type of product each day. Any leftover boxes at the end of the day will be removed
and given to a nearby nursing home for goodwill.
The profit per box for the various items has been determined as follows.
Profit per
Item Box
Regular $.80
Deluxe .90
Cashews .70
Raisins .60
Caramels .50
Chocolates .75
b. If the profit on product 3 were changed to $22 a unit, what would the values of the decision
variables be? The objective function? Explain.
c. If the profit on product 1 were changed to $22 a unit, what would the values of the decision
variables be? The objective function? Explain.
d. If 10 hours less of labor time were available, what would the values of the decision variables
be? The objective function? Explain.
e. If the manager decided that as many as 20 units of product 2 could be produced (instead of
16), how much additional profit would be generated?
f. If profit per unit on each product increased by $1, would the optimal values of the decision
variables change? Explain. What would the optimal value of the objective function be?
16. A garden store prepares various grades of pine bark for mulch: nuggets (x1), mini-nuggets (x2),
and chips (x3). The process requires pine bark, machine time, labor time, and storage space. The
following model has been developed.
Maximize Z = 9x1 + 9x2 + 6x3 (profit)
Subject to:
Bark 5x 1 + 6x 2 + 3x 3 ≤ 600 pounds
Machine 2x 1 + 4x 2 + 5x 3 ≤ 600 minutes
Labor
2x 1 + 4x 2 + 3x 3 ≤ 480 hours
Storage 1x 1 + 1x 2 + 1x 3 ≤ 150 bags
x 1, x 2, x 3 ≥ 0
a. What is the marginal value of a pound of pine bark? Over what range is this price value
appropriate?
b. What is the maximum price the store would be justified in paying for additional pine bark?
c. What is the marginal value of labor? Over what range is this value in effect?
d. The manager obtained additional machine time through better scheduling. How much addi-
tional machine time can be effectively used for this operation? Why?
e. If the manager can obtain either additional pine bark or additional storage space, which one
should she choose and how much (assuming additional quantities cost the same as usual)?
f. If a change in the chip operation increased the profit on chips from $6 per bag to $7 per bag,
would the optimal quantities change? Would the value of the objective function change? If so,
what would the new value(s) be?
g. If profits on chips increased to $7 per bag, and profits on nuggets decreased by $.60, would
the optimal quantities change? Would the value of the objective function change? If so, what
would the new value(s) be?
h. If the amount of pine bark available decreased by 15 pounds, machine time decreased by
27 minutes, and storage capacity increased by five bags, would this fall in the range of feasibil-
ity for multiple changes? If so, what would the value of the objective function be?