LINEAR-PROGRAMMING-Example Problems With Answer
LINEAR-PROGRAMMING-Example Problems With Answer
1. This time, our immune system is the best defense. With this, a Melagail wishes to mix
two types of foods in such a way that vitamin contents of the mixture contain at least 8
units of vitamin A and 10 units of vitamin C. Food A contains 2 units/kg of vitamin A
and 1 unit/kg of vitamin C. Food B contains 1 unit/kg of vitamin A and 2 units/kg of
vitamin C. It costs ₱50 per kg to purchase Food A and ₱70 per kg to purchase Food B.
Formulate this problem as a linear programming problem to minimize the cost of such a
mixture.
Conclusion
Thus, the minimum value of z is 380 where x and y values are not equal to 0, and it occurs when
x = 2 and y = 4.
Moreover, Melagail will only spend Php 380 per units of the mixture when she mixes 2
units/kilogram of Food A and 4 units/kilogram of Food B to achieve at least 8 units and 10 units of
Vitamin A and Vitamin C in the mixture, respectively.
2. A certain dosage of radiation, measured in kilorads, must be given to the tumor near the
brain. The dose delivered must be sufficient to kill the malignant cells but the aggregate
dose must not exceed established tolerance levels for the brain. Two beams which would
deliver radiation exposure to the cells will be used. The goal is to select certain beam
durations that would generate the best dosage distribution by minimizing the radiation
absorbed by the brain. The data for the radiation therapy is given below:
Evaluating the Corner Points and Identify the Optimal Solution for the Objective Function
Objective Function
Corner Points
Minimize: z=0.4 x +0.5 x
(6,6) z=0.4 ( 6 ) +0.5 ( 6 )=5.4
(7.5,4.5) z=0.4 (7.5 )+ 0.5 ( 4.5 )=5.25
(8,3) z=0.4 ( 8 ) +0.5 ( 3 )=4.7
Conclusion
The minimum value of z=4.7, when x=8 and y=3.
In practical terms, the minimum dosage (in kilorads) to kill the malignant cells in the brain is 4.7.
It needs 8 seconds of exposure from Beam A, and 3 seconds from Beam B to achieve this dosage.
3. This pandemic, Abheedette learned to bake while on home quarantine. She also realized
that she will be able to make P60.00 profit per tray of banana muffins and P120.00 profit
per tray of blueberry muffins. She needs 2 cups of milk and 3 cups of flour to bake a tray
of banana muffins. And, baking a tray of blueberry muffins takes 4 cups of milk and 3
cups of flour. She has 16 cups of milk and 15 cups of flour. How many trays of each
flavor must be baked to maximize the profit?
Evaluating the Corner Points and Identify the Optimal Solution for the Objective Function
Objective Function
Corner Points
Maximize: z=60 x +120 y
(0, 4) z=60 ( 0 ) +120 ( 4 )=480
(2, 3) z=60 ( 2 ) +120 ( 3 )=480
(5, 0) z=60 ( 5 ) +120 ( 0 ) =300
Conclusion
To achieve the maximum profit of P480, Abheedette should either make no Banana muffins, and
4 trays of Blueberry muffins or 2 trays of Banana muffins and 3 Blueberry muffins from 16 cups of milk
and 15 cups of flour.
4. Axis is an aspiring freshman at Saint Louis University. He realizes that “all study and no
play make Axis a dull boy.” As a result, Axis wants to apportion his available time of
about 10 hours a day between study and play. He estimates that play is twice as much fun
as study. He also wants to study at least as much as he plays. However, Axis realizes that
if he is going to get all his homework done, he cannot play more than 4 hours a day. With
the use of Linear Programming (LP), help Axis allocate his time to maximize his pleasure
from both study and play.
Evaluating the Corner Points and Identify the Optimal Solution for the Objective Function
Objective Function
Corner Points
Maximize: z=x +2 y
(0,0) z=0+ 2 ( 0 )=0
(4,4) z=4+2 ( 4 )=12
(6,4) z=6+ 2 ( 4 ) =14
(10,0) z=10+2 ( 0 ) =0
Conclusion
The maximum value of z is 14. It occurs when x=6 and y=4 .
In practical terms, given that Axis needs to study at least as much as he plays, and cannot play for
more than 4 hours to accomplish his academic responsibilities, Axis can achieve 14 units of pleasure if he
will allocate his study time for 6 hours and for 4 hours in his study time.
A decision now needs to be made about the shipping plan for how many units to ship
from each factory to each customer. Formulate a linear programming model for this
problem.