Modules 8 & 9 in MMW Weeks 8 & 9
Modules 8 & 9 in MMW Weeks 8 & 9
LINEAR PROGRAMMING
I. Overview
This module discusses how to do things efficiently. An efficient method allows one, for
example, to divide limited resources optimally. It provides explanation of the basic concepts of
Linear Programming (LP) as one of the simplest and a widely used problem-solving method to
perform optimization. The LP model is introduced to help solve some very complex optimization
problems by making a few simplifying assumptions and to determine the optimal value of a
linear function which defines the objectives of the problem subject to a set of linear constraints.
The constraints are defined as the limit or decision environment of the problem. In LP problems,
the term optimal may mean maximizing profit or minimizing cost in a specific context.
A linear program can be solved by multiple methods. In this module , we are going to look at
the Graphical method for solving a linear programming in finding the optimal solution.
⮚ Applications of linear programming are everywhere around us. From using your time
productively to solving supply chain problems for a company – everything uses optimization.
When you are driving from home to work and want to take the shortest route or when you
have a project delivery you make strategies to make your team work efficiently for on-time
delivery, you are using then linear programming.
⮚ A good manager can maximize the company’s profit and minimize its cost without violating any
limitation or restriction on existing variables, such as time and quantity of available raw
materials. Linear programming is a vital tool in management science. This quantitative
techniques in management is so important that it results in enormous savings of money.
⮚ Many problems in business, economics, and the sciences require that a function should be
maximized or minimized subject to a set of constraints. If the function to be maximized or
minimized is linear and the constraints are linear equations or inequalities , the problem is
called linear programming.
● Optimum Solution - is a solution that makes the objective function as large as possible in the
case of maximization process, and as small as possible in the case of minimization
process. It always lies at the extreme point of the bounded region or at the intersection
of two or more constraints.
● Feasible Solution - is the set of all points located in the feasible region in the graph satisfying
the constraint. It is one which doesn’t violate any constraint.
NOTE : If a linear programming problem has an optimal solution, then there is always at
least
one extreme point (corner point) solution of the feasible region. A linear programming
problem with bound, non-empty feasible regions always contains optimal solutions.
Note : Constructing a table will help us understood and analyze more any given LP problem .
⮚ Setting up linear programming models was been discussed already. The question now is how
to get the values of the decision variables and the objective function. According to Kaiser and
Messer (2014), there are three ways to solve LP models.
a. Graphical Method - is best used only for simple LP models involving two or three decision
variables.
b. Simplex Method is an efficient algebraic solution for LP models involving several decision
variables.
c. LP computer software is actually programmed based on the iterations of the simplex
method to solve very large LP problems.
Solution of Linear Programming Models by Graphical Method in two variables:
1. Graph each linear equation and inequality subject to the constraints following the
2. steps discussed in Module 7.
3. Find the feasibility region for the constraints and identify its vertices.
4. Evaluate the objective function at each vertex on the decision table and;
5. The solution occurs at the vertex that yields the optimum value of the objective
function.
6. Interpret the result.
EXAMPLES : Find the Mx and Mn values of the following given objective function subject to given
constraints.
#1: Objective : P = 2x + 10y : Maximize Profit
Constraints : Subject to :
2x +y≤6
5 x + 4y ≤ 20
x ≥0
y≥0
STEP 1 : Set up the table for the constraints.
2x+y≤6 5 x + 4y ≤ 20 x ≥0 y≥0
2x +y=6 5 x + 4y = 20 x =0 y=0
x =0 x=3 x=0 x=4 TP (1, 1) TP (1, 1)
y=6 y=0 y=5 y=0 0 ≤ 1 : TRUE 0 ≤ 1 : TRUE
(0, 6) (3, 0) (0, 5) (4, 0)
TP (0, 0) TP (0, 0)
0 ≤ 6 : TRUE 0 ≤ 20 : TRUE
STEP 2 : Graph the constraints and find the Feasible region FR and its vertices.
Subject to :
-x+y≤ 1
2x + 3y ≥ 12
x≤4
y≤4
STEP 2 : Graph the constraints and find the Feasible region FR and its vertices.
STEP 2 : Graph the constraints and find the Feasible region FR and its vertices.
Example 1: The Margan Furniture makes two products: Tables and Chairs, which must be
processed through Assembly and Finishing Departments. Assembly Department is available for 60
hrs in every production period, while the Finishing Department is available for 48 hrs.
Manufacturing one table requires 4 hrs. in the Assembly Department and 2 hrs. in the Finishing
Department. Each chair requires 2 hrs. in the Assembly Dept. And 4 hrs. in Finishing Dept. A table
contributes PhP180.00 to profit and PhP100.00 for each chair. The problem is to determine the
number of tables and chairs to produce in order to maximize the profit.
STEP 1 : Represent the decision variables.
Let x - be the number of tables to produce in order to maximize the profit.
y - be the number of chairs to produce in order to maximize the profit.
STEP 2 : Set up a table to identify the coefficients of the decision variables in the objective function
and constraints
Subject to :
4 x + 2 y ≤ 60
2 x + 4 y ≤ 48
x ≥ 0
y ≥ 0
4 x + 2 y ≤ 60 2 x + 4 y ≤ 48 x ≥ 0 y ≥ 0
4 x + 2 y = 60 2 x + 4 y ≥ 48 x = 0 y = 0
x=0 x = 15 x=0 x = 24 TP (1, 1) TP (1, 1)
y = 30 y=0 y = 12 y=0 0 ≤ 1 : TRUE 0 ≤ 1 : TRUE
(0, 30) (15, 0) (0, 12) (24, 0)
TP (0, 0) TP (0, 0)
0 ≤ 60 : TRUE 0 ≤ 48 : TRUE
STEP 5 : Graph constraints and find the Feasible region FR and its vertices.
Example 2: A small generator burns two types of fuel: Low Sulfur and High Sulfur. One gallon of
Low Sulfur emits 3 units of Sulfur Dioxide, generates 4 kw of electricity and cost PhP160.00. One
gallon of High Sulfur emits 5 units of Sulfur Dioxide, generates 4 kw of electricity and cost
PhP150.00. The environmental protection program insists that the maximum amount of Sulfur
Faculty: Grace D. Tiqui Prepared by: Carina S. Dizon 11 | P a g e
College of Information Technology, Computing and Library Science
C– GEC 4: Teaching Mathematics in the Modern World
First Semester | AY 2020-2021
Dioxide that can be emitted per hour is 15 units only. Suppose that at least 16 kw of electricity
must be generated per hour, How many gallons of each kind of fuel must be utilized to minimize
the cost of fuel?
Subject to :
3 x + 5 y ≤ 15
4 x + 4 y ≥ 16
x ≥ 0
y ≥ 0
3x+5y ≤ 15 4 x + 4 y ≥ 16 x ≥ 0 y ≥ 0
3x+5y ≤ 15 4 x + 4 y ≥ 16 x = 0 y = 0
x=0 x=3 x=0 x=4 TP (1, 1) TP (1, 1)
y=3 y=0 y=4 y=0 0 ≤ 1 : TRUE 0 ≤ 1 : TRUE
(0, 3) (15, 0) (0, 4) (4, 0)
TP (0, 0) TP (0, 0)
0 ≤ 15 : TRUE 0 ≥ 16 : FALSE
STEP 5 : Graph constraints and find the Feasible region FR and its vertices.
Example 3: RFC Company manufactures two types of Lamps: Special Lamp and Regular Lamp. Each
special lamp requires 4 pounds of brass and each regular lamp requires 8 pounds of brass. During
each production period, the company’s brass supply is limited to 640 pounds. Each special lamp
requires 6 hours of milling time in the machines and each regular lamp requires 2 hrs. of milling
Faculty: Grace D. Tiqui Prepared by: Carina S. Dizon 13 | P a g e
College of Information Technology, Computing and Library Science
C– GEC 4: Teaching Mathematics in the Modern World
First Semester | AY 2020-2021
time in the machines. The company’s machines are available only for 360 hrs. in each production
period. Each special lamp requires 5 light bulbs that must be imported from Hongkong. The
importation of these bulbs is limited to 200 units. The contribution to profit of each special lamp
isPhp400.00 and Php360.00 on the regular lamp. How many units of the special lamp and regular
lamp should be produced per production period in order to maximize the profit?
STEP 1 : Represent the decision variables.
Let x - be the number of units of special lamps to produce to maximize the profit
y - be the number of units of regular lamp to produce to maximize the profit
STEP 2 : Set up a table to identify the coefficients of the decision variables in the objective function
and constraints
Subject to :
4 x + 8 y ≤ 640
6 x + 2 y ≤ 360
5x ≤ 200
x ≥ 0
y ≥ 0
STEP 5 : Graph constraints and find the Feasible region FR and its vertices.
I CAN DO
Example #4 : A farmer has 40 hectares of farm on which to plant rice and corn. The rice needs 4
units
of insecticide and two units of fertilizer per hectare, while corn requires 3 units of
insecticide and 6 units of fertilizer. He has at least 90 units of insecticide and at least 120
units of fertilizer available. His average profit per hectare on rice is Php15,000.00 and
Php10,00.00 on corn. How many hectares of each crop should he plant to maximize his
average profit.
Activity# 1 : Now that you had gone through The Linear Programming - Graphical solution,
you are now ready to do the following. Submit the output following this format.
Faculty: Grace D. Tiqui Prepared by: Carina S. Dizon 16 | P a g e
College of Information Technology, Computing and Library Science
C– GEC 4: Teaching Mathematics in the Modern World
First Semester | AY 2020-2021
2. Gay Minette assembles stereo equipment for sale in her shop. She offers two product turntables
and cassette players. She makes a profit of 300 on each turntable and 350 on each cassette. Both
must go through two steps in her shop assembly and bench-check. A turntable takes 12 hrs to
assemble and 4 hrs to bench-check. A cassette player take 4 hrs to assemble but 8 hrs. to bench-
check. Gay has 60 hrs. Available in assembly per period of production and 40 hrs. of bench-
checking time. How many cassette players and turntables should be made per production period
for maximum profit?
Let x -
y-
OBJECTIVE :
Subject to :
3. A poultry raises wants to mix two types of Grain. A and B. Each unit of grain A costs 40 and contains
20 grams of fat, 10 grams of protein and 800 calories. Each unit of grain B costs 48 and contains 30
grams of fat, 30 grams of protein and 600 calories. Suppose that the poultry raiser wants each unit of
the final product to yield at least 180 grams of fat at least 120 grams of protein and at least 4800
calories. How many units of each type of grain should the poultry raiser use to minimize his cost?
Let x -
y-
OBJECTIVE :
Subject to :
IV. EVALUATION
2. A diabetic patient needs at least 40 units of Vitamin A, at least 30 units of Vitamin C, at least 30 units
of Vitamin E each day. Each brand X multivitamin capsule contains 4 units of Vit.A, 6 units of
Vit.C, and 2 units of Vit.E. Each brand Y multivitamin capsule contains 5 units of Vit.A, 3 units
of Vit.C, and 5 units of Vit.E. If each brand X multivitamin capsule cost PhP6.00 and each brand Y
multivitamin capsule cost PhP9.00 , how many capsules should the patient take each day to
minimize the cost.
Let x -
y-
Faculty: Grace D. Tiqui Prepared by: Carina S. Dizon 22 | P a g e
College of Information Technology, Computing and Library Science
C– GEC 4: Teaching Mathematics in the Modern World
First Semester | AY 2020-2021
OBJECTIVE :
Subject to :
DECISION RULE :
3. A Chemist produces two types of fertilizers : A and B . The profits realized from a kilo of type A is
PhP50.00, and from a kilo of type B is PhP75.00. The raw materials from which the
fertilizer A is made are 4 kilos of nitrogen, 4 kilos of sulfur, and 9 kilos of potassium. While the
fertilizer B is made are 3 kilos of nitrogen, 2 kilos of sulfur, and 1 kilo of potassium. The
available
stocks include 1,500 kilos of nitrogen, 1,200 kilos of sulfur, and at least 1,200 kilos of potassium.
Find the amounts of fertilizer A and fertilizer B to be produced in order to maximize the profit.
Let x -
y-
OBJECTIVE :
Subject to :
DECISION RULE :
V. References
Alejan, Ronnie O. et.al. (2018). Mathematics in the Modern World. Mutya Publishing House, Inc.
Potrero, Malabon City Philippines
Baltazar, et.al. (2018). Mathematics in the Modern World. C & E Publishing Inc. 839, EDSA South
Triangle, Quezon City
Nocon, Rizaldi C., et.al. (2016). Essential Mathematics for the Modern World. C & E Publishing,Inc.
South Triangle, Quezon City Philippines
Carpio, J. & Peralta B. (2018). Mathematics in the Modern World. Books Atbp. Publishing Corp.
Barangka Drive, Mandaluyong City
https://www.analyticsvidhya.com/blog/2017/02/lintroductory-guide-on-linear-programming-
explained-in-simple-english/