Chapter 5: Linear Programming: Graphical Solution
Chapter 5: Linear Programming: Graphical Solution
Graphical solution:
x1 = 20 ----------------(2)
x2 = 30 ----------------(3)
x2
60
50
Feasible region
40
C
B
30
A
20
10
x1
10 20 30 40 50 60 70
For A
For B
B = (24, 30)
For C
C = (20, 33.33)
Optimal solution is
40 x1 = 35 ----------------(2)
x2 = 20 ----------------(3)
30 B
20
A
10
x1
10 20 30 40 50 60 70 80
Solution: Chapter 5: LP Graph 3
For A
x1 + x2 = 65
Since x2 = 20
x1 = 65-20=45, hence A = (45, 20).
For B
x1 + x2 = 65
x1 = 35
x2 = 65– 35= 30
B = (35, 30)
A: x1 = 45, x2 = 20
Zmin = $ 309,000
Solution: Chapter 5: LP Graph 4
Graphical solution:
x1 +x2 = 90 ----------------(2)
x1 + x2 = 40 ----------------(3)
x2 = 2x1
Two points are (50,100), (25,50)
x2
100
90
80
70
60
Feasible region
50
40
B
30
A
20
10
x1
10 20 30 40 50 60 70 80 90 100
Solution: Chapter 5: LP Graph 5
For A
x1 + x2 = 40
x2 = 2x1
x1 + 2x2 = 40 x1 = 40/3 = 13.33
x2 = 26.66,
Hence A = (13.33, 26.66).
B = (0, 40)
A: x1 = 13.33, x2 = 26.66
Zmax = RM 3732.4
Similarly profit from 1 acre of letture and 1 acre of radishes are Rs 2080 and Rs. 1875,
respectively. Hence the LP formulation is
Graphical solution:
x1 + x2 = 15----------------(2)
x1 = 2 --------------------(3)
x2 = 2 --------------------(4)
x2
20
18
16 Feasible region
A
14
B
12
10
C
8
6
4
2
x1
2 4 6 8 10 12 14 16 18 20
For A
For B
x1 + x2 = 15
x1 = 2
x2 = 13
B = (2, 13)
For C
C = (6, 9)
Profit from one can of enamel paint produced at Dubai plant is 8-5 = $3, and the profit
from one can of latex paint produced at Dubai plant is 7-4.50 = $2.50. Similarly, profits
from one can of enamel and one can of latex paint produced at Abu Dhabi plant are: $2,
and $4, respectively.
Or,
Minimize Z = 5x1+6x2
subject to:
x1+ x2 =1000
x1 300
x2 150
x1, x2 0.
(b) x1 + x2 = 1000
If x1 = 0, x2 = 1000
If x2 = 0, x1 = 1000
B
1000
900
800
700 A
600
500
400
300
200
100
x1
100 200 300 400 500 600 700 800 900 1000
A = (300,700), B = (0,1000)
Z at A = (5300) + (6700) = 570
Z at B = (50) + (61000) = 6000
Hence the best solution is to mix 300 pounds of phosphate and 700 pounds of potassium and
minimum cost will be RM 5,700.
10. The given LPP is:
maximize Z = 12x1+8x2
subject to:
x1 + x2 ≤ 20 (1)
3x1 + x2 ≥ 30 (2)
2x1 + 6x2 ≥ 60 (3)
2x1 – x2 ≥ 0 (4)
x1, x2 ≥ 0
Solution: Chapter 5: LP Graph 10
x1+ x2 = 20
Two points are (0,20), (20,0).
3x1+x2 = 30
Put x1 = 0, x2 = 30, (0, 30)
Put x2 = 0, x1 = 10, (10, 0)
2x1+6x2 = 60
Put x1 = 0, x2 = 10, (0, 10)
Put x2 = 0, x1 = 30, (30, 0)
2x1- x2 = 0 or 2x1 = x2; Two points are: (5, 10), (10, 20).
Let us plot the points one by one and obtain the following graph:
40
35
30
④
25
20
15
Feasible region
D
10 C ①
B ② ③
5 A
O
5 10 15 20 25 30 35 40
Solution: Chapter 5: LP Graph 11
For A
3 x1 x 2 30
2 x1 6 x 2 60
or , 2 x1 6(30 3 x1 ) 60
or , 2 x1 180 18 x1 60
or , 16 x1 60 180
or , 16 x1 120
120
x1 7. 5
16
x 2 30 3 7.5 7.5
A (7.5, 7.5)
For B
x1 x 2 20
2 x1 6 x 2 60
or , 2 x1 6( 20 x1 ) 60
or , 2 x1 120 6 x1 60
or , 4 x1 60 120
or , 4 x1 60
x1 15
x 2 20 15 5
B (15, 5)
For C
3 x1 x 2 30
2 x1 x 2 0
or , 3x1 2 x 2 30
x1 6
x 2 12
C (6, 12)
For D
x1 x 2 20
2 x1 x 2 0
or , x1 2 x 2 20
20
x1
3
40
x2
3
D ( 20 / 3, 40 / 3)
Solution: Chapter 5: LP Graph 12
Now we calculate the objective function values at the four corner points :
Z at A 12 x1 8 x 2
12 7.5 8 7.5
150
Z at B 12 x1 8 x 2
12 15 8 5
220
Z at C 12 x1 8 x 2
12 6 8 12
156
Z at D 12 x1 8 x 2
20 40
12 8
3 3
186.67
x1 125
x1 + x2 350
2x1 + x2 600
x 1, x 2 0
Graphical solution:
x2
x1 = 125 ----------------(1)
x1 + x2 = 350 -----------------(2)
600
350
300
250
A
200
150
100 B
50
50 100 150 200 250 300 350 400 450 500 550 600
Solution: Chapter 5: LP Graph 13
x1
For A
For B
2x1 + x2 = 600
x1+x2 = 350
Or, 2x1 = 600 – (350-x1) = 600 – 350 + x1
x1 = 600-350 = 250
x2 = 350-250 = 100
B = (250, 100)
For C
x1 = 125
2x1 + x2 = 600
C = (125, 350)
Solution: Chapter 5: LP Graph 14
B = (250, 100)
Zmin = 800
2x1 + 7x2 22
x1 + x2 6
5x1 + x2 10
x1, x2 0
Graphical solution:
x1x+ x2 = 6 -----------------(2)
2(0, 6), (6, 0)
125x + x = 10 -----------------(3)
1 2
11
(0, 10), (2, 0)
10 D
9
Feasible region
8
6
5
4 C
2 B
1
x1
O
1 2 3 4 5 6 7 8 9 10 11 12
A
Solution: Chapter 5: LP Graph 15
For A
For B
2x1 + 7x2 = 22
x1+x2 = 6
Or, 2x1 = 22 – 7(6-x1) = 22 – 42 + 7x1
5x1 = 20
x1 = 4
x2 = 2
B = (4, 2)
For C
5x1 + x2 = 10
x1 + x2 = 6
5x1 = 10-(6-x1) = 10 – 6 + x1
or, 4x1 = 4
Solution: Chapter 5: LP Graph 16
or, x1 = 1
x2 = 5
C = (1, 5)
B = (4, 2)
Zmin = 14
Maximize Z = 2x1 + x2
subject to:
x1 + x2 6
3x1 + 2x2 16
x2 9
x1, x2 0
Graphical solution:
x1 + x2 = 6 -----------------(1)
x2 = 9 -----------------(3)
Solution: Chapter 5: LP Graph 17
x2
12
Feasible region
10
D
8
C
B
2
x1
0 A
2 4 6 8 10 12
Feasible region is not bounded and given LPP is of maximization type. Hence the given problem
has no finite solution.
x1 + x2 7
10x1 + 7x2 40
x1, x2 0
Graphical solution:
x1 + x2 = 7 -----------------(1)
x2
10
6
5
4
x1
1 2 3 4 5 6 7 8 9 10
Graphical solution:
8
7
C
6
5
4
Feasible region
3
2
B
1
x1
1 2 3 A 4 5 6 7 8 9 10
Solution: Chapter 5: LP Graph 19
A = (3, 0)
For B
6x1 + 4x2 = 24
x1 = 3
Or, 4x2 = 24 – 18 = 6
x2 = 6/4 = 3/2
B = (3, 3/2)
Further, C = (0, 6)
________