Unit 5 Linear Programming - 1161260213
Unit 5 Linear Programming - 1161260213
PROGRAMMING
PREPARED BY:
Ms. Fatima Perez
Linear Programming
5 Steps in Solving List the constraints and translate them into linear
Linear Programming Step 2
inequality.
Problems
Set the objective function and translate it into
Step 3
linear equation.
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?
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?
Production Cost
“Production of one end table requires five
Coffee Tables (x) 6 hours Php 200 hours of labor, and the materials cost him
Php100.”
End Tables (y) 5 hours Php 100
EXAMPLE 1
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?
“The craftsman want to work no more than 40 hours each week, and his
List the constraints and translate them
financial resources allow him to pay no more than Php1,000 for Step 2
into linear inequality.
materials each week.”
Production Cost
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?
“If he can sell as many tables as he can make and if his profit is Php240 per coffee List the constraints and translate them
Step 2
table and Php160 per end table, how many coffee tables and how many end tables into linear inequality.
should he make each week to maximize weekly profit?”
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?
“If he can sell as many tables as he can make and if his profit is Php240 per coffee List the constraints and translate them
Step 2
table and Php160 per end table, how many coffee tables and how many end tables into linear inequality.
should he make each week to maximize weekly profit?”
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?
Recall that the objective function is a function that mathematically describes the Set the objective function and translate
profit.
Step 3
it into linear equation.
Total per
week No more than Php 1000
No more than 40 hours
z
EXAMPLE 1
According to the Corner principle, the maximum and the minimum Step 4 Graph the feasible region.
values of an objective function occur at corner points of the region of
possible solutions if that region is bounded. To graph the feasible
region and to determine the corner points, we just use the Graphing
Calculator Application.
𝟐𝟒𝟎(𝟎)+𝟏𝟔𝟎(𝟎)=𝒛
𝟐𝟒𝟎(𝟎)+𝟏𝟔𝟎(𝟖)=𝒛
𝒛 =𝟎 𝒛 =𝟏𝟐𝟖𝟎
The maximum profit possible when
For (5,0), For (2.5,5), the craftsman makes 2.5 number of
Coffee tables and 5 end tables
𝟐𝟒𝟎(𝟓)+𝟏𝟔𝟎(𝟎)=𝒛
𝟐𝟒𝟎(𝟐 . 𝟓)+𝟏𝟔𝟎(𝟓)= 𝒛
yielding to a profit of Php1400.
𝒛 =𝟏𝟐𝟎𝟎 𝒛 =𝟏𝟒𝟎𝟎
EXAMPLE 2
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?
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?
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?
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?
4 sq.m
1 sq.m
𝟐 𝒙 +𝟒 𝒚 ≤ 𝟐𝟎
and
EXAMPLE 2
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?
Since our objective here is to determine the number of Design A (x) and Design B
(y) to find out the maximum amount of money in selling these designs in the price Set the objective function and translate
of Php1200 for each Design A and Php1600 for each Design B, our objective
Step 3
it into linear equation.
function must be,
Available
Materials 18 sq.m 20 sq.m 5 sq.m z
EXAMPLE 2
𝟏𝟐𝟎𝟎(𝟎)+𝟏𝟔𝟎𝟎(𝟎)=𝒛
𝟏𝟐𝟎𝟎(𝟎)+𝟏𝟔𝟎𝟎(𝟓)=𝒛
𝟏𝟐𝟎𝟎(𝟒)+𝟏𝟔𝟎𝟎 (𝟑)=𝒛
A vegetable farmer in Rizal ships at most 900 baskets of vegetables on a freight truck daily to a certain Quezon City Public
Market. He must ship at least 550 baskets of lettuce and at most 200 baskets of celery. Furthermore, his profits are Php200 per
basket of lettuce and Php225 per basket of celery. How many number of baskets of lettuce and celery he should be loading the
freight truck in order to maximize his profit?
Let x be the number of baskets of lettuce should the vegetable farmer must load in the freight
truck.
Let y be the number of baskets of celery should the vegetable farmer must load in the freight
truck
EXAMPLE 3
A vegetable farmer in Rizal ships at most 900 baskets of vegetables on a freight truck daily to a certain Quezon City Public
Market. He must ship at least 550 baskets of lettuce and at most 200 baskets of celery. Furthermore, his profits are Php200 per
basket of lettuce and Php225 per basket of celery. How many number of baskets of lettuce and celery he should be loading the
freight truck in order to maximize his profit?
No. of baskets of
vegetables
No. of baskets of lettuce (x) “He must ship at least 550 baskets of lettuce
At least 550 baskets
and at most 200 baskets of celery.”
No. of baskets of celery (y) At most 200 baskets
A vegetable farmer in Rizal ships at most 900 baskets of vegetables on a freight truck daily to a certain Quezon City Public
Market. He must ship at least 550 baskets of lettuce and at most 200 baskets of celery. Furthermore, his profits are Php200 per
basket of lettuce and Php225 per basket of celery. How many number of baskets of lettuce and celery he should be loading the
freight truck in order to maximize his profit?
“Furthermore, his profits are Php200 per basket of lettuce and Php225 List the constraints and translate them
Step 2
per basket of celery.” into linear inequality.
No. of baskets of
Profit
vegetables
No. of baskets of lettuce (x) At least 550 baskets Php 200
A vegetable farmer in Rizal ships at most 900 baskets of vegetables on a freight truck daily to a certain Quezon City Public
Market. He must ship at least 550 baskets of lettuce and at most 200 baskets of celery. Furthermore, his profits are Php200 per
basket of lettuce and Php225 per basket of celery. How many number of baskets of lettuce and celery he should be loading the
freight truck in order to maximize his profit?
Total no. of baskets At most 900 baskets z For the total no. of baskets,
EXAMPLE 3
A vegetable farmer in Rizal ships at most 900 baskets of vegetables on a freight truck daily to a certain Quezon City Public
Market. He must ship at least 550 baskets of lettuce and at most 200 baskets of celery. Furthermore, his profits are Php200 per
basket of lettuce and Php225 per basket of celery. How many number of baskets of lettuce and celery he should be loading the
freight truck in order to maximize his profit?
Recall that the objective function is a function that mathematically describes the Set the objective function and translate
profit.
Step 3
it into linear equation.
No. of baskets of
Profit
vegetables
No. of baskets of lettuce (x) At least 550 baskets Php 200
Graph the following constraints in Step 2: Step 4 Graph the feasible region.
𝒙≥𝟓𝟓𝟎
𝟐𝟎𝟎 𝒙+𝟐𝟐𝟓 𝒚= 𝒛
(550,0), (900,0), (700,200), and (550,200)
𝟐𝟎𝟎(𝟓𝟓𝟎)+𝟐𝟐𝟓(𝟎)=𝒛
𝟐𝟎𝟎(𝟗𝟎𝟎)+𝟐𝟐𝟓(𝟎)=𝒛