Lec 2 - Linear Programming Graphical Solution
Lec 2 - Linear Programming Graphical Solution
Prepared By
Dr/Marwa Yahya
Objectives
At the end of this lesson the student should be able to
❑Define the following definitions:
- Feasible region.
- Feasible solution.
- Optimal solution.
❑Solve the linear programming problem graphically.
According to the video on the link below
https://www.youtube.com/watch?v=NncBeSG
kyu8
Answer the following question
What is the difference between feasible
region, feasible solution, and optimal
solution?
General Description of Linear
Programming Problem
A B Availability
M1 10 22 2640
M2 15 18 2500
Profits 200 175
𝑴𝒂𝒙 𝒁 = 𝟐𝟎𝟎𝒙𝟏 + 𝟏𝟕𝟓𝒙𝟐
Subject to
𝟏𝟎𝒙𝟏 + 𝟐𝟐𝒙𝟐 ≤ 𝟐𝟔𝟒𝟎
𝟏𝟓𝒙𝟏 + 𝟏𝟖𝒙𝟐 ≤ 𝟐𝟓𝟎𝟎
𝒙𝟏 , 𝒙𝟐 ≥ 𝟎
Graphical Solution
𝐱𝟏 𝐱𝟐 𝐱𝟏 𝐱𝟐
0 2640/22=120 0 2500/18=138.9
2640/10=264 0 2500/15=166.7 0
140
120
100
80
60
40
20
0
0 50 100 150 200 250 300
𝟏𝟎𝐱1+𝟐𝟐𝐱2 = 𝟐𝟔𝟒𝟎
160
140
120
100
80
40
20
0
0 50 100 150 200 250 300
10x1+22x2=2640 15x1+18x2=2500
160
140
D
120
100 C
80
40
20
0 B
A
0 50 100
10x1+22x2=2640
150
15x1+18x2=2500
200 250 300
160
140
D
120
100 C
80
40
Feasible
20
Region
0 B
A
0 50 100
10x1+22x2=2640
150
15x1+18x2=2500
200 250 300
160
140
D(0,120)
120
C(49.91,97.3)
100
80
60
Feasible
40 Region
20
B(166.7,0)
0
0 15 30 45 60 75 90 105 120 135 150 165 180 195 210 225 240 255 270 285
A(0,0) 10x1+22x2=2640 15x1+18x2=2500
To find C
𝟏𝟎𝒙𝟏 + 𝟐𝟐𝒙𝟐 = 𝟐𝟔𝟒𝟎 *15
𝟏𝟓𝒙𝟏 + 𝟏𝟖𝒙𝟐 = 𝟐𝟓𝟎𝟎 *(-10)
𝟏𝟓𝟎𝒙𝟏 + 𝟑𝟑𝟎𝒙𝟐 = 𝟑𝟗𝟔𝟎𝟎
−𝟏𝟓𝟎𝒙𝟏 − 𝟏𝟖𝟎𝒙𝟐 = −𝟐𝟓𝟎𝟎𝟎
𝟏𝟓𝟎𝒙𝟐 = 𝟏𝟒𝟔𝟎𝟎,
𝒙𝟐 = 𝟗𝟕. 𝟑, 𝒙𝟏 = 𝟒𝟗. 𝟗𝟒
Corner Point 𝑴𝒂𝒙 𝒁 = 𝟐𝟎𝟎𝒙𝟏 + 𝟏𝟕𝟓𝒙𝟐
𝒙𝟏 𝒙𝟐 𝒙𝟏 𝒙𝟐
0 11 0 20
22 0 10 0
25
20
15
10
X1 + 2x2 = 22
0
0 5 10 15
25
20
15
x1+2x2=22
4x1+2x2=40
10
x1+2x2 = 22
4x1+2x2 = 40
0
0 5 10 15 20 25
25
20
15
D(0,11) x1+2x2=22
4x1+2x2=40
10
C(6,8)
5 Feasible
region
B(10,0)
0
0 5 10 15 20 25
A(0,0)
To find C
𝒙𝟏 + 𝟐𝒙𝟐 = 𝟐𝟐 *(-1)
𝟒𝒙𝟏 + 𝟐𝒙𝟐 = 𝟒𝟎
𝟑𝒙𝟏 = 𝟏𝟖, 𝒙𝟏 = 𝟔, 𝒙𝟐 = 𝟖
Solution
𝑴𝒊𝒏 𝒁 = 𝟏. 𝟐𝟎𝒙𝟏 + 𝟎. 𝟖𝟎𝒙𝟐
subject
𝟐𝒙𝟏 + 𝟐𝒙𝟐 ≥ 𝟏𝟔
4𝒙𝟏 + 𝒙𝟐 ≥ 𝟐𝟎
𝒙𝟏 , 𝒙𝟐 ≥ 𝟎
Graphical Solution
𝒙𝟏 𝒙𝟐 𝒙𝟏 𝒙𝟐
0 8 0 20
8 0 5 0
9
2x1+2x2=16
4
0
0 1 2 3 4 5 6 7 8 9
25
20
15
4x1+x2=20
2x1+2x2=16
10
0
0 1 2 3 4 5 6 7 8 9
25
20 A(0,20)
15
4x1+x2=20
2x1+2x2=16
10
5
B(4,4)
C(8,0)
0
0 1 2 3 4 5 6 7 8 9
25
20 A(0,20)
15 Feasible Region
4x1+x2=20
2x1+2x2=16
10
5
B(4,4)
C(8,0)
0
0 1 2 3 4 5 6 7 8 9
To find B
𝟐𝒙𝟏 + 𝟐𝒙𝟐 = 𝟏𝟔
𝟒𝒙𝟏 + 𝒙𝟐 = 𝟐𝟎 *(-2)
𝟐𝒙𝟏 + 𝟐𝒙𝟐 = 𝟏𝟔
−𝟖𝒙𝟏 − 𝟐𝒙𝟐 = −𝟒𝟎
−𝟔𝒙𝟏 = −𝟐𝟒, 𝒙𝟏 = 𝟒, 𝒙𝟐 = 𝟒
Points 𝑴𝒊𝒏 𝒁 = 𝟏. 𝟐𝟎𝒙𝟏 + 𝟎. 𝟖𝟎𝒙𝟐
A(0,20) 𝒁 = 𝟏. 𝟐𝟎 𝟎 + 𝟎. 𝟖𝟎 𝟐𝟎 = 𝟏𝟔
𝒁 = 𝟏. 𝟐𝟎 𝟒 + 𝟎. 𝟖𝟎 𝟒 = 𝟖
B(4,4) (Optimal Solution)
C(8,0) 𝒁 = 𝟏. 𝟐𝟎 𝟖 + 𝟎. 𝟖𝟎 𝟎 = 𝟗. 𝟔
20 A(0,20)
15
Feasible Region
4x1+x2=20
2x1+2x2=16
10
5
B(4,4)
C(8,0)
0
0 1 2 3 4 5 6 7 8 9
Summary
The region determined by all the
constraints of a given linear
programming problem is called
feasible region and every point in the
feasible region is called the
feasible solution. Any point in the
feasible region that produces the
optimal value of the objective function
over the feasible region is called an
optimal solution
Procedure: Geometric Method for Solving Linear
Programming Problem with Two Variables