Linear Programming
Linear Programming
If each scientific calculator sold results in a $2 loss, but each graphing calculator produces a $5 profit,
how many of each type should be made daily to maximize net profits?
The question asks for the optimal number of calculators, so my variables will stand for that:
Since they can't produce negative numbers of calculators, I have the two constraints, x > 0 and y > 0. But in
this case, I can ignore these constraints, because I already have that x > 100 and y > 80. The exercise also
gives maximums: x < 200 and y < 170. The minimum shipping requirement gives me x + y > 200; in other
words, y > –x + 200. The revenue relation will be my optimization equation: R = –2x + 5y. So the entire
system is:
When you test the corner points at (100, 170), (200, 170), (200, 80), (120, 80), and (100, 100), you should obtain
the maximum value of R = 650 at (x, y) = (100, 170). That is, the solution is "100 scientific calculators and 170
graphing calculators".
2) You need to buy some filing cabinets. You know that Cabinet X costs $10 per unit, requires six
square feet of floor space, and holds eight cubic feet of files. Cabinet Y costs $20 per unit, requires
eight square feet of floor space, and holds twelve cubic feet of files. You have been given $140 for
this purchase, though you don't have to spend that much. The office has room for no more than 72
square feet of cabinets. How many of which model should you buy, in order to maximize storage
volume?
The question ask for the number of cabinets I need to buy, so my variables will stand for that:
Naturally, x > 0 and y > 0. I have to consider costs and floor space (the "footprint" of each unit), while
maximizing the storage volume, so costs and floor space will be my constraints, while volume will be my
optimization equation.
1
cost: 10x + 20y < 140, or y < –( /2 )x + 7
3
space: 6x + 8y < 72, or y < –( /4 )x + 9
volume: V = 8x + 12y
This system (along with the first two constraints) graphs as:
When you test the corner points at (8, 3), (0, 7), and (12, 0), you should obtain a maximal volume of 100 cubic feet
by buying eight of model X and three of model Y.
3) In order to ensure optimal health (and thus accurate test results), a lab technician needs to feed
the rabbits a daily diet containing a minimum of 24 grams (g) of fat, 36 g of carbohydrates, and 4 g
of protien. But the rabbits should be fed no more than five ounces of food a day.
Rather than order rabbit food that is custom-blended, it is cheaper to order Food X and Food Y, and
blend them for an optimal mix. Food X contains 8 g of fat, 12 g of carbohydrates, and 2 g of protein per
ounce, and costs $0.20 per ounce. Food Y contains 12 g of fat, 12 g of carbohydrates, and 1 g of
protein per ounce, at a cost of $0.30 per ounce.
Since the exercise is asking for the number of ounces of each food required for the optimal daily blend, my
variables will stand for the number of ounces of each:
Since I can't use negative amounts of either food, the first two constrains are the usual ones: x > 0 and y > 0.
The other constraints come from the grams of fat, carbohydrates, and protein per ounce:
x+y<5
The optimization equation will be the cost relation C = 0.2x + 0.3y, but this time I'll be finding the minimum
value, not the maximum.
(Note: One of the lines above is irrelevant to the system. Can you tell which one?)
When you test the corners at (0, 4), (0, 5), (3, 0), (5, 0), and (1, 2), you should get a minimum cost of sixty cents per
daily serving, using three ounces of Food X only.