Linear Prog Lecture9&10 BCD
Linear Prog Lecture9&10 BCD
Linear Prog Lecture9&10 BCD
Linear Programming
28/9/21 1
Linear Programming (LP)
Introduction:
Linear programming problems is a system process of finding a
maximum or minimum value of any variable in a function subject
to some constraints (conditions). It is also known by the name of
optimization problem.
28/9/21 2
Linear Programming (LP)
A linear programming problem has three parts:
maximize Z = 2x + 3 y Constraints
subject to
4x + 3 y ≤ 24
x + 2 y ≤ 11
x , y ≥ 0.
Non-negativity
restriction
28/9/21 4
LP Problem
Problem: Maximize Z = 2x + 3 y
subject to
4 x + 3 y ≤ 24
x + 2 y ≤ 11
x , y ≥ 0.
Solution:
We consider the constraints Again consider the constraints
4x + 3 y ≤ 24 x + 2 y ≤ 11
4x 3 y 24 x 2 y 11
⇒ + ≤ ⇒ + ≤
24 24 24 11 11 11
x y x y
⇒ + ≤ 1⋅⋅⋅⋅⋅⋅(2) ⇒ + ≤ 1⋅⋅⋅⋅⋅⋅(3)
6 8 11 11 /2
Now, we plot the graph for the inequalities (2) & (3) considering
equations
28/9/21 5
LP Problem
E (0,8)
4x + 3 y = 24
A (0,5.5)
B (3,4)
x + 2 y = 11
C (6,0) A (11,0)
O (0,0)
1 2 3 4 5 6 7 8 9 11
28/9/21 6
LP Problem
From the graph, we see that the feasible solution space is OABC.
The co-ordinate of O is O (0, 0)
The co-ordinate of A is A (0, 5.5)
The co-ordinate of C is C (6, 0)
28/9/21 7
LP Problem
28/9/21 8
LP Problem
Problem: Minimize Z = 3x + 5 y
subject to
2x + 4 y ≥ 36
x + y ≤ 12
− 2x + y ≥ 0
x , y ≥ 0.
Solution:
We consider the constraints Again consider the constraints
2x + 4 y ≥ 36 x + y ≤ 12
2x 4 y 36 x y
⇒ + ≥ ⇒ + ≤ 1⋅⋅⋅⋅⋅⋅(2)
36 36 36 12 12
x y And the consider the constraints
⇒ + ≥ 1⋅⋅⋅⋅⋅⋅(1)
18 9 -2x + y ≥ 0
⇒ y ≥ 2x ⋅⋅⋅⋅⋅⋅(3)
Now, we plot the graph for the inequalities (1), (2) & (3)
considering equations
28/9/21 9
LP Problem
y = 2x
A (0, 12)
D (0,9) B (4 ,8)
C (3.6, 7.2)
2x + 4 y = 36
x + y = 12
F (12,0) E (18,0)
O (0,0)
1 2 3 4 5 6 7 8 9 11
28/9/21 10
LP Problem
From the graph, we see that the feasible solution space is ABCD.
The co-ordinate of A is A (0, 12)
The co-ordinate of D is D (0, 9)
To, find the co-ordinates of B, we solve the equations
x + y = 12 and
y = 2x
Putting y = 2x , we get 3x = 12 ∴ x = 4, ∴ y = 8.
Therefore the co-ordinate of B is (4, 8)
28/9/21 11
LP Problem
28/9/21 12
LP Problem Formulation
Problem:
A factory produces two kinds products: shirt and pant. Each shirt
sells for $24 and cost $19 to make, while each pant sells $30 and
cost $27 to make. Each shirt must be processed on two machines:
shirt requires 3 hours on machine A and 2 hours on machine B,
whereas pant requires 7 hours on machine A and 1 hour on machine
B. In the next week, machine A will be free for no more than 42
hours and machine B for no more than 17 hours. Determine the
number of shirts and pants to be made in the next week for the
company to maximize its profits and what will be the total profit?
Solution:
Let x number of shirts and y number of pants to be made in the next
week for the company to maximize its profit.
28/9/21 13
LP Problem Formulation
Here the profit from each shirt is $24 - $19 = $5
from each pant is $30 - $27 = $3
Therefore, the objective function that to be maximize is
Maximize Z = 5x + 3 y
subject to
3x + 7 y ≤ 42
2x + y ≤ 17
x , y ≥ 0.
28/9/21 14