Unit 6 Linear Programming
Unit 6 Linear Programming
LINEAR
PROGRAMMING
SLIDESMANIA.COM
LINEAR PROGRAMMING
⬤ A model consisting of linear relationships
representing a firm’s objective and resource
constraints.
inequality symbol.
Definition of Terms
Constraints
Optimization The restrictions of the given
Maximizing or minimizing a problem.
quantity
Corner Principle
The maximum and the
Objective Function
minimum values of the
A function that mathematically objective function occur at
describes the profit. the corner points of the
region of possible solutions if
SLIDESMANIA.COM
Subject to:
𝑎11 𝑥1 + 𝑎12 𝑥2 + … + 𝑎1𝑛 𝑥𝑛 (≤, =, ≥)𝑏1
𝑎21 𝑥1 + 𝑎22 𝑥2 + … + 𝑎2𝑛 𝑥𝑛 (≤, =, ≥)𝑏2
. .
Constraints
. .
. .
𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + … + 𝑎𝑚𝑛 𝑥𝑛 (≤, =, ≥)𝑏𝑚
SLIDESMANIA.COM
Graph of Linear Equation and
Linear Inequality
𝒙+𝒚=𝟑 𝒙+𝒚>𝟑
SLIDESMANIA.COM
Graph of Linear Equation and
Linear Inequality
𝟐𝒙 + 𝟑𝒚 = 𝟏𝟐 𝟐𝒙 + 𝟑𝒚 ≤ 𝟏𝟐
SLIDESMANIA.COM
The Geometry of Linear Programming
The word “programming” means producing a plan or
procedure that determines the solution to a problem.
Graphical Solution Method is a two-dimensional geometric
analysis of Linear Programming problems with two
decision variables. The Theory of Linear Programming
states that the optimal solution will lie at a corner point of
the feasible region.
SLIDESMANIA.COM
Example
Consider the LP Model:
Max 𝒛 = 𝟑𝟎𝒙 + 𝟒𝟎𝒚
Subject to:
a. Shade the feasible region
𝒙+𝒚≤𝟓
b. Determine the corner points
𝟐𝒙 + 𝟑𝒚 ≥ 𝟔
c. Formulate Decision
𝒙≥𝟏
𝒙≥𝟎
𝐲≥𝟎
SLIDESMANIA.COM
Max z = 𝟑𝟎𝒙 + 𝟒𝟎𝒚
Subject to:
𝒙+𝒚≤𝟓
𝟐𝒙 + 𝟑𝒚 ≥ 𝟔
𝒙≥𝟏
𝒙≥𝟎
𝐲≥𝟎
SLIDESMANIA.COM
Max 𝒛 = 𝟑𝟎𝒙 + 𝟒𝟎𝒚
Subject to:
𝒙+𝒚≤𝟓
𝟐𝒙 + 𝟑𝒚 ≥ 𝟔
𝒙≥𝟏
𝒙≥𝟎
𝐲≥𝟎
SLIDESMANIA.COM
Max 𝒛 = 𝟑𝟎𝒙 + 𝟒𝟎𝒚
Subject to:
(3,0) → 𝟑𝟎 𝟑 + 𝟒𝟎 𝟎 = 𝟗𝟎
𝒙+𝒚≤𝟓
(5,0) → 𝟑𝟎 𝟓 + 𝟒𝟎 𝟎 = 𝟏𝟓𝟎
𝟐𝒙 + 𝟑𝒚 ≥ 𝟔
(1,4) → 𝟑𝟎 𝟏 + 𝟒𝟎 𝟒 = 𝟏𝟗𝟎
𝒙≥𝟏 𝟒
𝒙≥𝟎 (1,4/3) → 𝟑𝟎 𝟏 + 𝟒𝟎 = 𝟖𝟑. 𝟑𝟑
𝟑
𝐲≥𝟎
Optimal Solution
Corner Points x=1
(3,0) y=4
(5,0) z = 190
(1,4)
SLIDESMANIA.COM
(1,4/3)
5 steps in solving Linear
Programming problems
STEP 1: List the independent variables.
STEP 2: List the constraints and translate them into
linear inequality.
STEP 3: Set the objective function and translate it into
linear equation.
STEP 4: Graph the feasible region.
STEP 5: Find all the corner points and the z-value
SLIDESMANIA.COM
𝒙≥𝟎
SLIDESMANIA.COM
𝒚≥𝟎
A craftsman produces two products: coffee tables and end tables. Production of one coffee table
requires six hours of his labor, and the materials cost him Php200. Production of one end table
requires five hours of labor, and the materials cost him Php100. The craftsman want to work no
more than 40 hours each week, and his financial resources allow him to pay no more than
Php1,000 for materials each week. If he can sell as many tables as he can make and if his profit
is Php240 per coffee table and Php160 per end table, how many coffee tables and how many
end tables should he make each week to maximize weekly profit?
STEP 3: Set the objective function and
translate it into linear equation.
Production Cost
Production Profit
Cost
Coffee Tables
Coffee (x) (x) 6 hours
Tables Php200 Php240
EndEnd
Tables (y) (y)
Tables 5 hours Php100 Php160
SLIDESMANIA.COM
(2.5,5)
tables yielding to a profit of Php1400.
Example
A local boutique produced two designs of gowns, Design A
and Design B and has the following materials available: 18
square meters of cotton, 20 square meters of silk, and 5
square meters of wool. Design A requires the following: 3
square meters of cotton, 2 square meters of silk, and 1
square meter of wool. Design B requires the following: 2
square meters of cotton and 4 square meters of silk. If
Design A sells for Php1200 and Design B for Php1600, how
many of each designs should the boutique produce to obtain
a maximum amount of money?
SLIDESMANIA.COM
A local boutique produced two designs of gowns, Design A and Design B and has
the following materials available: 18 square meters of cotton, 20 square meters of
silk, and 5 square meters of wool. Design A requires the following: 3 square
meters of cotton, 2 square meters of silk, and 1 square meter of wool. Design B
requires the following: 2 square meters of cotton and 4 square meters of silk. If
Design A sells for Php1200 and Design B for Php1600, how many of each designs
should the boutique produce to obtain a maximum amount of money?
𝒙≥𝟎
SLIDESMANIA.COM
𝒚≥𝟎
A local boutique produced two designs of gowns, Design A and Design B and has the
following materials available: 18 square meters of cotton, 20 square meters of silk, and
5 square meters of wool. Design A requires the following: 3 square meters of cotton, 2
square meters of silk, and 1 square meter of wool. Design B requires the following: 2
square meters of cotton and 4 square meters of silk. If Design A sells for Php1200 and
Design B for Php1600, how many of each designs should the boutique produce to obtain
a maximum amount of money?
STEP 3: Set the objective function and
translate it into linear equation.
Cotton Production
Silk Wool CostPrice
Coffee
Design A (x) Tables
3 (x)
sq. m 2 sq. m 1 sq. m Php1,200
DesignEnd
B (y) Tables2(y)
sq. m 4 sq. m 0 sq. m Php1,600
SLIDESMANIA.COM
𝒙≤𝟓
Max: 𝒛 = 𝟏𝟐𝟎𝟎𝒙 + 𝟏𝟔𝟎𝟎𝒚
Subject to:
𝟑𝒙 + 𝟐𝒚 ≤ 𝟏𝟖
𝟐𝒙 + 𝟒𝒚 ≤ 𝟐𝟎
𝒙≤𝟓
𝒙≥𝟎
𝒚≥𝟎
SLIDESMANIA.COM
Max: 𝒛 = 𝟏𝟐𝟎𝟎𝒙 + 𝟏𝟔𝟎𝟎𝒚
Subject to:
𝟑𝒙 + 𝟐𝒚 ≤ 𝟏𝟖
𝟐𝒙 + 𝟒𝒚 ≤ 𝟐𝟎
𝒙≤𝟓
𝒙≥𝟎
𝒚≥𝟎
SLIDESMANIA.COM
Max: 𝒛 = 𝟏𝟐𝟎𝟎𝒙 + 𝟏𝟔𝟎𝟎𝒚
Subject to:
𝟑𝒙 + 𝟐𝒚 ≤ 𝟏𝟖
𝟐𝒙 + 𝟒𝒚 ≤ 𝟐𝟎
𝒙≤𝟓
𝒙≥𝟎
𝒚≥𝟎
SLIDESMANIA.COM
Max: 𝒛 = 𝟏𝟐𝟎𝟎𝒙 + 𝟏𝟔𝟎𝟎𝒚 (0,0) → 1,200 0 + 1,600 0 = 0
Subject to: (5,0) →1,200 5 + 1,600 0 = 6,000
𝟑𝒙 + 𝟐𝒚 ≤ 𝟏𝟖 (0,5) →1,200 0 + 1,600 5 = 8,000
𝟐𝒙 + 𝟒𝒚 ≤ 𝟐𝟎 (5,1.5) →1,200 5 + 1,600 1.5 = 8,400
𝒙≤𝟓 (4,3) → 1,200 4 + 1,600 3 = 9,600
𝒙≥𝟎
𝒚≥𝟎 Optimal Solution
x=4
Corner Points y=3
(0,0) z = 9,600
(5,0)
(0,5) The maximum amount of money that a
SLIDESMANIA.COM
Production
Number of baskets of vegetables Cost Profit
Coffee
Number Tables
of baskets (x) (x)
of lettuce At least 550 baskets Php200
NumberEnd Tablesof(y)
of baskets celery (y) At most 200 baskets Php225
SLIDESMANIA.COM
TotalTotal perofweek
Number baskets At most 900 baskets z
STEP 3: Set the objective function and
translate it into linear equation.
Number of baskets of vegetables Profit