Solutions of Linear Programming Model
Solutions of Linear Programming Model
The graphical method is applicable to solve the LPP involving two decision
variables x1 , and x2 . We may take these decision variables as x , y instead of x1 ,
X2 To solve the LP model , the graphical method includes two major steps
a ) The determination of the solution space that defines the feasible solution . Note
that the set of values of the variables x1 , R2 , X3 . . . . . X which satisfy all the
constraints and also the non - negative conditions is called the feasible solution of
the LP .
For each constraint , the line ( 1 ) divides the first quadrant in to two regions say R
, and R2 , suppose ( X1 , 0 ) is a point in R . If this point satisfies the equation ax +
by ≤ c or (≥ c ) , then shade the region R1 . If ( x1 , 0 ) does not satisfy the inequality
, shade the region R2 .
2x1 + x2 ≤ 100 ( 1 )
x1 + x2 ≤ 80 (2)
x1 ≥ 0 x2 ≥ 0
2x1 + x2 = 100
x1 + x2 = 80
x1 = 50
( 50 , 0 ) is a point on the line ( 1 )
put x = 0 in ( 2 ) , y = 100
( 0 , 100 ) is the other point on the line ( 1 ).
In the same manner (80,0) and (0,80) will be the two points of the line (2) for the
equation x1 + x2 = 80
Industrial Engineering linear programming 4th Lecture
draw the line which represent the line 2x1 + x2 = 100 . Every point in the shaded
region OABC is a feasible solution of LPP ,
since this point satisfies all the constraints including the non - negative Constraints
b ) .This method includes the following steps :
Step 4 : identify the corner point at which the value of the objective function is
maximum ( or minimum depending on the LP ) The co - ordinates of this vertex is
the optimal solution and the value of Z is the optimal value .
Industrial Engineering linear programming 4th Lecture
2x1 + x2 = 100
x1 + x2 = 80
Subject to
𝑎11 +𝑎12 𝑥2 +…..+𝑎1𝑛 𝑥𝑛 ≤ 𝑏1
Where
xi ≥ 0 and bi ≥ 0 Non-negative constraints
.
𝑎𝑚1 𝑥1 +𝑎𝑚2 𝑥2 +…..+𝑎𝑚𝑛 𝑥𝑛 + 𝒔𝒎 = 𝑏𝑚
Where 𝒔𝒊 ≥0
Industrial Engineering linear programming 4th Lecture
Example 2:
Find the optimal solution for the following linear programming model
Max Z = 4𝑥1 + 6𝑥2
Subject to
- 𝑥1 + 𝑥2 ≤ 11
𝑥1 + 𝑥2 ≤ 27
2𝑥1 +5𝑥2 ≤ 90
𝑥1 , 𝑥2 ≥ 0
Solution:
. Entering variable
𝐁. 𝐯 𝒙𝟏 𝒙𝟐 𝑺𝟏 𝑺𝟐 𝑺𝟑 R.H.S Ratio(b)
Departing variable
𝑆1 -1 1 1 0 0 11 11/1=11
𝑆2 1 1 0 1 0 27 27/1=27
𝑺3 2 5 0 0 1 90 90/5=18
Z -4 -6 0 0 0 0
Pivoting column
Industrial Engineering linear programming 4th Lecture
First iteration
𝐁. 𝐯 𝒙𝟏 𝒙𝟐 𝑺𝟏 𝑺𝟐 𝑺𝟑 R.H.S Ratio
𝑿𝟐 -1 1 1 0 0 11 -11
𝑺2 2 0 -1 1 0 16 8
𝑺3 7 0 -5 0 0 35 5
Z -10 0 6 0 0 66
Second iteration
𝐁. 𝐯 𝒙𝟏 𝒙𝟐 𝑺𝟏 𝑺𝟐 𝑺𝟑 R.H.S Ratio*
𝑿𝟐 0 1 2/7 0 1/7 16
𝑺𝟐 0 0 3/7 1 -2/7 6
𝑿1 1 0 -5/7 0 0 5
Third iteration
𝐁. 𝐯 𝒙𝟏 𝒙𝟐 𝑺𝟏 𝑺𝟐 𝑺𝟑 R.H.S Ratio*
𝑿𝟐 0 1 -2/3 0 1/3 12
𝑺𝟏 0 0 7/3 1 -2/3 14
𝑿1 1 0 5/3 0 -1/3 15
7- When all elements in the bottom row have positive values means we have the
optimal solution.
(X1,X2,S1,S2,S3)= (15,12,14,0,0) with Z= 4X1+6X2=4*15+6*12 =132
Industrial Engineering linear programming 4th Lecture
Example
Find the optimal solution for the following LP model :
Minimize Z =X1-3X2+2X3 (
Subject to :
3X1 - X2+2X3 ≤ 7
-2X1 +4X2 ≤ 12
-4X1 + 3X2 +8X3 ≤ 10
X1 ,X2 ,X3 ≥ 0
Solution:
We have to change the problem into Max type ,take W= -Z.
Max W = - X1+3X2- 2X3
W+X1-3X2+ 2X3=0
Subject to 3X1 - X2+2X3 + S1= 7
-2X1 +4X2 +S2 = 12
-4X1 + 3X2 +8X3 +S3 = 10
𝐁. 𝐯 𝒙𝟏 𝒙𝟐 𝒙3 𝑺𝟏 𝑺𝟐 𝑺𝟑 R.H.S Ratio(b)
𝑆1 3 -1 2 1 0 0 7 7/-1
𝑆2 -2 4 0 0 1 0 12 12/4=3
𝑺3 -4 3 8 0 0 1 10 10/3=
3.3
W 1 -3 2 0 0 0 0
Industrial Engineering linear programming 4th Lecture
First iteration:
𝐁. 𝐯 𝒙𝟏 𝒙𝟐 𝒙3 𝑺𝟏 𝑺𝟐 𝑺𝟑 R.H.S Ratio(b)
𝑆1 5/2 0 2 1 1/4 0 10 4
W -1/2 0 2 0 3/4 0 9
Second iteration:
𝐁. 𝐯 𝒙𝟏 𝒙𝟐 𝒙3 𝑺𝟏 𝑺𝟐 𝑺𝟑 R.H.S Ratio(b)
𝑺3 0 0 10 1 -1/2 1 11