Linear Programming Examples
Linear Programming Examples
PROGRAMING
EXAMPLES
Linear Programming Example 1
A manufacturer of plastic chairs makes a regular model and a compact
model. Each regular model requires five hours from fabricating
department and two hours from the finishing department. Each compact
model requires four hours from the fabricating department and three
hours from the finishing department. The maximum work hours
available per week in the fabricating department is 200 while in the
finishing department, it is 108. If the company makes a profit of Php150
on each regular chair and Php135 on each compact chair, how many
chairs of each type should be manufactured per week to maximize the
total profit for the week? What is the maximum profit? Assume that all
chairs can be sold.
Linear Programming Example 1
Here, we are asked: how many chairs of each type should be manufactured per
week to maximize the total profit for the week?
Generate the formula to compute for the profit using the variables we defined.
Since each regular chair gives a profit of Php150 while the compact chair gives
a profit of Php135:
P = 150x + 135y
Linear Programming Example 1
5x + 4y < 200
Linear Programming Example 1
Finishing Department
Since the finishing department can operate for a maximum of 108 hours
per week and it was given that each regular chair requires two hours
from the finishing department while each compact chair requires three
hours from the finishing department, we can convert these details into a
mathematical sentence (specifically an inequality because of the
keyword maximum) using the variables we defined.
2x + 3y < 108
Linear Programming Example 1
Consider also the non-negativity constraints for x and y, that is x (the
number of regular chairs) and y (the number of compact chairs) must
never be negative.
Subject to
5x + 4y < 200
2x + 3y < 108
x>0
y>0
Linear Programming Example 1
We will now use the Corner Principle. Graph all the constraints in one
cartesian plane (use a graphing tool such as Desmos) and locate the corners
(or vertices) of the polygon formed representing the feasible region.
Linear Programming Example 1
We will now use the Corner Principle. Graph all the constraints in one
cartesian plane (use a graphing tool such as Desmos) and locate the corners
(or vertices) of the polygon formed representing the feasible region.
Linear Programming Example 1
The polygon formed from the intersection of all the planes representing the
constraints is shown below. The corners (or vertices) are also indicated.
Linear Programming Example 1
The polygon formed representing the feasible region may not be obvious right away. A
technique you may use is to flip the direction of the inequality symbols, that is change
</< to >/> and vice versa.
(0, 0) P=150(0)+135(0)=Php0
Generate the formula to compute for the cost using the variables we defined.
Since the cost of a first model truck is Php1.5M while the cost of a second
model truck is Php2.4M:
x + y < 15
Linear Programming Example 2
Those vehicles are suppose to provide at least 36 tons of additional load
capacity.
Considering that the first model can hold two tons while the second
model can hold three tons, and taking note of the keyword at least 36
tons above.
2x + 3y > 36
Linear Programming Example 2
Consider also the non-negativity constraints for x and y, that is x (the
number of first model trucks) and y (the number of second model
trucks) must never be negative.
Subject to
x + y < 15
2x + 3y > 36
x>0
y>0
Linear Programming Example 2
We will now use the Corner Principle. Graph all the constraints in one
cartesian plane (use a graphing tool such as Desmos) and locate the corners
(or vertices) of the polygon formed representing the feasible region.
Linear Programming Example 2
We will now use the Corner Principle. Graph all the constraints in one
cartesian plane (use a graphing tool such as Desmos) and locate the corners
(or vertices) of the polygon formed representing the feasible region.
Linear Programming Example 2
The polygon formed from the intersection of all the planes representing the
constraints is shown below. The corners (or vertices) are also indicated.
Linear Programming Example 2
The polygon formed representing the feasible region may not be obvious right away. A
technique you may use is to flip the direction of the inequality symbols, that is change
</< to >/> and vice versa.