Methods To Solve System of Linear Equations-Operation Research
Methods To Solve System of Linear Equations-Operation Research
X=4 X <= 4
Any value that satisfy the system of inequalities form the feasible solution.
Infeasible solution:
Any value that does not satisfy any inequality from the system of inequalities form the infeasible
solution.
Extreme points:
Extreme points are the corner points that define your region.
Optimal solution:
Optimal solution is the best solution from your identified feasible solutions that meet your all
requirements or demands.
Question:
Maximize: z = 10x + 9y Objective Function
x, y >= 0
𝑥 𝑦
Constrain 2: +8=1
6
Graph:
A D
B = (0,7) 3𝑥 + 3𝑦 = 21 𝑥=3
C = (3,4) 4𝑥 + 3𝑦 = 24 𝑦=4
D = (6,0) −𝑥 = −3
Feasible Solution:
𝑧𝐴 = 0
𝑧𝐵 = 60
𝑧𝐶 = 66
𝑧𝐷 = 54
Optimal Solution:
Since our objective is to maximize the function then 66 is the maximum value we obtain at point C.
4x + 3y <= 24
x, y >= 0
x, y, S1, S2 >= 0
Basic Variables are those variables whose values you’re going to find.
Non-Basic Variables are those variables whose values are fixed to zero.
z = 10x + 9y + 0 S1 + 0 S2 z = 10x + 9y
3x + 3y + S1 = 21 S1 = 21 – 3x – 3y ------ (1)
4x + 3y + S2 = 24 S2 = 24 – 4x – 3y ------ (2)
Since co-efficient of x in objective function is higher, then our entering variable is “x”. Now
follow the procedure to find the leaving variable.
Entering variable = x
x=1 S1 = 18 S2 = 20
x=2 S1 = 15 S2 = 16
… … …
x=6 S1 = 3 S2 = 0
x=7 S1 = 0 S2 = -4
Leaving variable = S2
Since the co-efficient of y is higher in the objective function. Then our entering variable is “y”.
Entering variable = y
y=1 x = 21/4 S1 = 9/4
… … …
y=4 x=3 S1 = 0
Leaving variable = S1
Now the new system of equations is;
3 3
From equation (4); S1 = 3 − 𝑦 + 𝑆2
4 4
4
𝑦 = 4 − 3 𝑆1 + 𝑆2 --------- (7)
3 1
From equation (3); x = 6 − 4 𝑦 − 4 𝑆2
3 4 1
= 6 − 4 [ 4 − 3 𝑆1 + 𝑆2 ] − 4 𝑆2
x = 3 + S1 – S2 ---------- (8)
3 5
Then equation (5) becomes; z = 60 + 2
𝑦 − 2 𝑆2
3 4 5
= 60 + 2
[4 − 3 𝑆1 + 𝑆2] − 2 𝑆2
We cannot proceed further because the variables present in our objective function all are negative.
Stopping Criteria:
No positive coefficient of variables in objective function or you can say all negative coefficient variables
in the objective function.
CB XB x y S1 S2 Solution Ratio
0 S1 3 3 1 0 21 7
0 S2 4 3 0 1 24 6
Cj - Zj 10 9 0 0 0
0 S1 0 3/4 1 -3/4 3 4
10 x 1 3/4 0 1/4 6 8
Cj - Zj 0 3/2 0 -5/2 60
CB XB X Y S1 S2 A1 A2 Soln. Ratio
-M A1 1 1 -1 0 1 0 4 4
-M A2 5 2 0 -1 0 1 10 2
Cj - Zj 6M-7 3M-5 -M -M 0 0 -14M
X = 2/3 , Y = 10/3
Where,
And hence, we have the solution of z= 64/3 for our problem of minimization.
PRACTISE QUESTIONS
Q1: Maximize: Z= 2X + Y
2X <= 40
X, Y >=0
(This is a problem of unbounded solution also there exists no optimal solution in that case.)
Q2: Maximize: Z = 3X + 2Y
3X + 4Y >= 12
X, Y >= 0
(This is a problem of infeasible solution because artificial variables are still present in the solution)
HINT: Apply this method when you have all constraints with (>=) sign.
QUESTION:
Minimize: g = 20x + 30y + 36z
Subject to: x + 2y + 3z >=48
2x + 2y + 3z >= 70
2x + 3y + 4z >= 96
Solution:
1 2 3 48
2 2 3 70
2 3 4 96
20 30 36 g
48 70 96 0 0 0
Solution Ratio
CB XB X1 X2 X3 S1 S2 S3
0 S1 1 2 2 1 0 0 20 10
0 S2 2 2 3 0 1 0 30 10
0 S3 3 3 4 0 0 1 36 9
C j - Zj 48 70 96 0 0 0 0
X1 = X2 = 0 , X3 = 9
fmax = 864
X1 = X2 = 0 , X3 = 24
gmax = 864