CH 4 LP QM
CH 4 LP QM
Linear Programming
(LP)
By: Zahid Qavi Srohi. FCA
P1 ( 2,3) P2 ( 7,1)
2X + Y = 8
1
8/31/2023
2X + Y = 8
X is at least 3
times of Y
X=3
Y=1
X is maximum 3
times of Y
2
8/31/2023
3
8/31/2023
X> Y
Means that x is greater than y
X≥Y
Means that x is greater than or equal to y
X<Y
Means that x is less than y
X≤Y
Means that x is less than or equal to y
10 > 8 10 > 8
10+4 > 8+4 10 – 25 > 8 – 25
14 > 12 -15 > -17
4
8/31/2023
10> 8
10 x 4 > 8 x 4
40 > 32
10 > 8
10 x (-4) > 8 x (-4)
-40 < -32
10
5
8/31/2023
Feasible
Region
11
X>100 X<1000
Y<500
FEASIBLE REGION
FEASIBLE REGION
FEASIBLE REGION
FEASIBLE REGION
Y>100
12
6
8/31/2023
13
14
7
8/31/2023
C
D E
A
B
15
RESOURCE REQUIREMENTS
Labor Clay Revenue
PRODUCT (hr/unit) (lb/unit) (Rs./unit)
Bowl 1 4 40
Mug 2 3 50
There are 40 hours of labor and 120 pounds of clay available each
day
16
8
8/31/2023
Let
X= number of bowls to produce
Y = number of mugs to produce
40 X + 50 Y = Max.
Subject to
X + 2Y 40 hr (labor constraint)
4X + 3Y 120 lb (clay constraint)
X , Y 0( Non negative constrain )
17
18
9
8/31/2023
4X + 3Y 120
X + 2Y 40 4X + 3Y =120
X + 2Y = 40 X=0 Y= 40
X=0 Y= 20 X=30 Y=0
X=40 Y=0
40 X + 50 Y = Max.
19
50 –
4 X + 3 Y 120 lb
40 –
30 –
20 –
10 – X + 2 Y 40 hr
0– | | | | | |
10 20 30 40 50 60 X
20
10
8/31/2023
X = 0 bowls
Y = 20 mugs
Y Z = Rs.1,000
X = 24 bowls
Y = 8 mugs
Z = Rs.1,360
X = 30 bowls
Y = 0 mugs
Z = Rs.1,200
40 –
A
30 –
20 –
B
10 –
C
0– | | | |
X
10 20 30 40
21
50 –
4 X + 3 Y 120 lb
40 –
30 –
20 –
10 – X + 2 Y 40 hr
0– | | | | | |
10 20 30 40 50 60 X
22
11
8/31/2023
50 –
4 X + 3 Y 120 lb
40 –
30 –
20 –
10 – X + 2 Y 40 hr
0– | | | | | |
10 20 30 40 50 60 X
23
Y X + 2Y = 40
40 – 4X + 3Y = 120
4 X + 3 Y 120 lb
X=24 Y =8
30 –
20 –
X + 2 Y 40 hr
10 –
0– | | | | X
10 20 30 40
24
12
8/31/2023
X + 2Y = 40 4X + 3Y = 120
X=24 Y=8
25
40 X + 50 Y = Z
Z = Rs.50(24) + Rs.50(8) = Rs.1,360
26
13
8/31/2023
Objective Function
Y
40 –
4X + 3Y 120 lb
30 – Z = 70X + 20Y
Optimal point:
X = 30 bowls
20 –A
Y = 0 mugs
Z = Rs.2,100
10 – B
X + 2Y 40 hr
0– | | | C |
10 20 30 40 X
27
A manufacturer produce two products P and Q which must pass through the
same processes in departments A and B having weekly production capacities of
240 hours and 100 hours respectively. Product P needs 4 hours in department
A and 2 hours in department B. Product Q requires 3 hours and 1 hour
respectively, in department A and B. Profit yields for product P is Rs.700 and
for Q is Rs.500. The manufacturer wants to maximize the profit with the given
set of inequalities.
28
14
8/31/2023
A firm makes two types of products: Type A and Type B. The profit
on product A is Rs.20 each and that on product B is Rs.30 each.
Both types are processed on three machines M1, M2 and M3. The
time required in hours by each product and total time available in
hours per week on each machine are as follow:
Machine Product A Product B Available Time
M1 3 3 36
M2 5 2 50
M3 2 6 60
The constraints can be formulated taking x1 = number of units A
and x2 = number of unit of B as:
29
M1 M2 M3 Profit
Product A (X1) 3 5 2 20
Product B(X2) 3 2 6 30
Maximum 36 50 60
30
15
8/31/2023
2X1 + 6X2 ≤ 60
X1 X2
0 10
30 0
31
1 2
32
16
8/31/2023
33
34
17
8/31/2023
35
36
18
8/31/2023
2X+0.8Y ≤ 280
X Y
0 350
140 0
37
2X+0.8Y ≤ 280
X Y
140 0
38
19
8/31/2023
(200,200)
X+Y ≤ 200
(320,160)
(140,350) X+2Y ≤ 320
2X+0.8Y ≤ 280
39
An employer recruits experienced (x) and fresh workmen (y) for his
firm under the condition that he cannot employ more than 9
people, x and y can be related by the inequality:
(a)x + y ≠9
(b) x + y ≤9, x ≥0, y ≥ 0
(c) x + y ≤ 9, x ≥ 0, y ≥ 0
(d) None of these
40
20
8/31/2023
a) 5x + 3y ≤30
b) 5x + 3y > 30
c) 5x + 3y ≥30, x >0, y >0
d) None of these
41
The rules and regulations demand that the employer should employ
not more than 5 experienced hands to 1 fresh one. This fact can be
expressed as:
a) X≤ Y/2
b) Y ≤ X/2
c) y ≥ X/5
d) None of above
42
21
8/31/2023
43
a) X≤ Y/2
b) Y ≤ X/2
c) y ≥ X/2
d) None of above
44
22
8/31/2023
46
23
8/31/2023
47
48
24
8/31/2023
49
4.9. A manufacturer produce two products P and Q which must pass through the same
processes in departments A and B having weekly production capacities of 240 hours and
100 hours respectively. Product P needs 4 hours in department A and 2 hours in
department B. Product Q requires 3 hours and 1 hour respectively, in department A and
B. Profit yields for product P is Rs.700 and for Q is Rs.500. The manufacturer wants to
maximize the profit with the given set of inequalities. The objective function and all the
constraints are:
50
25
8/31/2023
51
52
26
8/31/2023
53
54
27
8/31/2023
55
56
28
8/31/2023
4.16. A manufacturer produces two products X1 and X2. Resources available for the
production of these two items are restricted to 200 support staff hours, 320 machine hours
and 280 labour hours. X1 requires for its production 1 support staff hour, 1 machine hour
and 2 labour hours. X2 requires 1 support staff hour, 2 machine hours and 0.8 labour hour.
X1 yields Rs.300 profit per unit and X2 yields Rs.200 profit per unit. The manufacturer
wants to determine the profit maximizing weekly output of each product while operating
within the set of resource limitations. Situation of the above data in the form of equations
and inequalities
57
4.17. A factory is planning to buy some machine to produce boxes and has a choice of B-1
or B-9 machines. Rs.9.6 million has been budgeted for the purchase of machines. B-1
machines costing Rs.0.3 million each require 25 hours of maintenance and produce 1,500
units a week. B-9 machines costing Rs.0.6 million each require 10 hour of maintenance
and produce 2,000 units a week. Each machine needs 50 square meters of floor area. Floor
area of 1,000 square meters and maintenance time of 400 hours are available each week.
Since all production can be sold, the factory management wishes to maximize output.
Situation of above data in the form of objective function and constraints is:
58
29
8/31/2023
4.18. A company produces two products A and B. Production of A will be at least five
times the production of B. This situation can be expressed as:
(a) b≥5a
(b) b≤5a
(c) a≤5b
(d) a≥5b
59
60
30
8/31/2023
61
4.21. Which of the following values of 𝑥 and y does not satisfy the inequality
2𝑥+3y ≤ 6
(a) (1,1)
(b) (0,1)
(c) (3,1)
(d) (1,0)
62
31
8/31/2023
4.22. A machine can work for 16 hours per day at most. It takes 4 hours to
produce one unit of product A and 8 hours to produce one unit of product
B. This information can be expressed as:
(a) 4a+8b ≤ 16
(b) 4a+8b ≥ 16
(c) 4a+8b = 16
(d) Not possible to express information
63
4.23. Which of the following constraint will have a feasible region with
coordinate (2, 3) in it?
(a) 10𝑥+5y ≤ 40
(b) 10𝑥+5y ≤ 30
(c) 10𝑥+5y ≤ 10
(d) 10𝑥+5y ≤ 20
64
32
8/31/2023
4.24. Pharma limited produces two medicines. Each of which requires two
types of raw material with following details:
Product A(kg/unit) Product B(kg/unit) Total available (kg)
65
66
33
8/31/2023
67
68
34
8/31/2023
69
4.29. For the following set of inequalities and objective function. Identify the
optimal solution using corner point theorem
Constraints
i. 𝑥 ≥ 0
ii. y ≥0
iii. 𝑥+y ≤ 8
Objective function
Profit = 10𝑥+2y
(a) (8, 0)
(b) (0, 8)
(c) (4, 4)
(d) (0, 0)
70
35
8/31/2023
4.30. For the following set of inequalities and objective function. Identify the
optimal solution using corner point theorem
Constraints
i. 𝑥 ≥ 0
ii. y ≥0
iii. 2𝑥+y ≤ 8
iv. 2𝑥+2y ≤ 10
Objective function
Profit = 10𝑥+2y
(a) (0, 8)
(b) (5, 0)
(c) (0, 5)
(d) (8, 0)
71
4.31. For the following set of inequalities and objective function. Identify
the optimal solution using corner point theorem
Constraints
i. 𝑥 ≥ 1
ii. y ≥2
iii. 𝑥+y ≤ 8
Objective function
Cost = 10𝑥+2y
(a) (0, 0)
(b) (1, 2)
(c) (2, 1)
(d) (0, 0)
72
36
8/31/2023
73
4.33. A company wants to make product A which will contain both chemical 𝑥 and chemical
y. The product must contain at least 1 unit of 𝑥 and 2 units of y. The company has to be
careful that total of 𝑥 and y units in the product must not exceed 8 units.
If the cost of each unit of 𝑥 and y is 10 and 2 respectively, formulate constraints and objective
function respectively.
(a) Constraints (c) Constraints
i. 𝑥 ≥ 1 i. 𝑥 ≥ 0
ii. y ≥2 ii. y ≥0
iii. 𝑥+y ≤ 8 iii. 𝑥+y ≤ 8
Objective function Objective function
Cost = 10𝑥+2y Cost = 10𝑥+2y
(b) Constraints (d) Constraints
i. 𝑥 ≥ 1 i. 𝑥 ≥ 1
ii. y ≥2 ii. y ≥2
iii. 𝑥+y ≤ 8 iii. 𝑥+y ≤ 2
Objective function Objective function
Cost = 2𝑥+10y Cost = 10𝑥+2y
74
37
8/31/2023
4.34. A company produces two types of cola drinks. Each of which requires
two types of raw material with following details:
Product A(kg/unit) Product B(kg/unit) Total available (kg)
Raw material X 3 4 480
Raw material Y 2 6 540
How many units of each type of cola drink may be produced to maximise the
profit, if the profit on each unit of A and B is Rs 1,800 and Rs. 6,300
respectively?
(a) (72, 66)
(b) (0, 90)
(c) (160, 0)
(d) (66, 72)
75
76
38
8/31/2023
77
78
39
8/31/2023
79
40