Presentation in Linear Programming
Presentation in Linear Programming
PROGRAMMING
I. Objectives
At the end of the lesson, must be able to;
1. graph systems of linear inequalities,
2. solve real life problems involving maximization, and
3. appreciate how linear programming being used in
different fields such as manufacturing, business
operation, etc.
We will start our class with a Prayer.
First we will be
playing a game called
“Equal or Not?”
Tell me if the situations are Equal or Not.
in the farm. The farmer owns 10 Chickens and 5 Pigs. Equal or not?
in the safari. In the wild lives 15 Bulls and 8 Indian Rhinos. Equal
or not?
Note that there is a cost associated with producing each part. Each
doodad costs $2 to make and each whirligig costs $4 to make. The
factory only has $220 available to spend on these costs, so the
production is limited by cost. Let x be the number of doodads produced,
and let y be the number of whirligigs produced. Then this constraint can
be written as an inequality:
𝟐 𝒙 +𝟒 𝒚 ≤ 𝟐𝟐𝟎
There is also the limitation on how much time the factory has to produce
these parts. Each doodad requires 3 hours to make and each whirligig
requires 2 hours to make. The factory only has 150 hours available this
week, so production is also limited by time. This constraint can be
written as an inequality:
𝟑 𝒙+𝟐 𝒚 ≤ 𝟏𝟓𝟎
In addition to these constraints, there is also a couple of "common
sense" constraints. It's not possible to produce less than 0 of any part,
so these constraints are also written:
These are called non-negative constraints.
Altogether, the constraints form a system of
inequalities:
Graphing these inequalities in the coordinate plane creates a polygon
shape.
Each doodad costs $2 to make and sells for $6. This gives
a profit of $4 per doodad. Each whirligig costs $4 to
make and sells for $7. This gives a profit of $3 per
whirligig. The profit function can be defined as:
𝑷 ( 𝒙 , 𝒚 )=𝟒 𝒙+𝟑 𝒚
This is the objective function of this problem, and the
goal is to maximize it.
We will maximize the example problem.
𝑷 ( 𝒙 , 𝒚 )=𝟒 𝒙+𝟑 𝒚
(0,55)
𝑷 ( 𝟎 ,𝟓𝟓 )=𝟒 𝒙+𝟑 𝒚
¿ 𝟒 (𝟎)+𝟑 (𝟓𝟓)
(20,45)
¿ 𝟎+𝟏𝟔𝟓
¿ 𝟏𝟔𝟓
𝑷 ( 𝟐𝟎 , 𝟒𝟓 ) =𝟒 𝒙 +𝟑 𝒚
¿ 𝟒 (𝟐𝟎)+𝟑 (𝟒𝟓)
¿ 𝟖𝟎+𝟏𝟑𝟓
¿ 𝟐𝟏𝟓
𝑷 ( 𝟓𝟎 ,𝟎 )=𝟒 𝒙+𝟑 𝒚
¿ 𝟒 (𝟓𝟎)+𝟑 (𝟎)
¿ 𝟐𝟎𝟎+𝟎
(50,0)
¿ 𝟐𝟎𝟎
Constraints
It takes 2 hours to produce the parts of one unit of T1. It
takes 2.5 hour to assemble the parts of one unit of T2. Per
month, 4000 hours for assembling the parts.
It takes 2 hours to polish T1. It takes 1.5 hours to polish T2.