Question # 6:: 2 3 4 Max Z X X X
Question # 6:: 2 3 4 Max Z X X X
Question # 6:
Objective Function:
Max z 2 x1 3 x 2 4 x3
Subject to Constant:
3 x1 x 2 4 x3 600
2 x1 4 x 2 2 x3 480
2 x1 3 x 2 3 x3 540
Solution:
3 x1 x 2 4 x3 s1 600
2 x1 4 x 2 2 x3 s 2 A1 480
2 x1 3 x 2 3 x3 A2 540
9
Objective function for maximise case
*******For the minimise case all the values should be added (+) by default
Simplex Table 1
CBi Cj 2 3 4 0 0 -M -M
BV x1 x2 X3 s1 s2 A1 A2 Solution Ratio
0 s1 3 1 4 1 0 0 0 600
-M A1 2 4 2 0 -1 1 0 480
-M A2 2 3 3 0 0 0 1 540
Always given the preference to the Artificial Variables over the Slack Variable
After obtaining the table check the values Cj – Zj for the optimal solution purpose.
10
Condition of Feasible Solution (Optimal Solution)
Cj – Zj Cj – Zj
All All
≤0 ≥0
0, - Values 0, + Values
Key column decided that x2 is the entering variable. The after key row will be decided
the exit variable.
Simplex Table 1
CBi Cj 2 3 4 0 0 -M -M
BV x1 x2 X3 s1 s2 A1 A2 Solution Ratio
11
Simplex Table 2
CBi Cj 2 3 4 0 0 -M
BV x1 x2 X3 s1 s2 A2 Solution Ratio
Simplex Table 3
CBi Cj 2 3 4 0 0
BV x1 x2 x3 s1 s2 Solution Ratio
0 s1 4/3 0 0 1 -3/2 60
3 x2 1/3 1 0 0 -1/2 60
4 x3 1/3 0 1 0 1/2 120
12
Max z 2 x1 3 x2 4 x3
x2 60
x3 120
x1 0
Max z 660
Min z 4 x1 x 2
Subject to Constant:
3 x1 x 2 3
4 x1 3 x 2 6
x1 2 x 2 4
x1 , x1 0
13
Linear Programming Problem (LPP)
By Two-Phase Method
Only minimise type of objective function can be solved with the help of Two-phase
method.
If there is maximise problem case, then first we convert into minimise case then apply
two phase method.
Question # 8:
Objective Function:
Min z 3 x1 2 x 2 x 2
Subject to:
x1 4 x 2 3 x3 50
2 x1 x 2 x3 30
-3 x1 2 x 2 x 3 -40
x1 , x 2 , x3 0
14
Solution:
Subject to:
x1 4 x 2 3 x3 s1 A1 50
2 x1 x 2 x3 s2 A2 30
-3 x1 2 x 2 x 3 s3 -40
x1 , x 2 , x3 0
Objective Function:
Min z 3 x1 2 x 2 x 2 0 s1 0 s 2 0 s3 1 A1 1 A2
For Phase I
15
Simplex Table 1
CBi Cj 0 0 0 0 0 0 1 1
BV x1 x2 x3 s1 s2 s3 A1 A2 Solution
1 A1 1 4 3 -1 0 0 1 0 50
1 A2 2 1 1 0 -1 0 0 1 30
0 s3 -3 -2 -1 0 0 1 0 0 -40
Zj 3 5 4 -1 -1 0 1 1 80
Cj -Zj -3 -5 -4 1 1 0 0 0
After computing the Cj – Zj values, check the optimality condition. For Minimisation
cases,
Cj – Zj ≥ 0
16
Simplex Table 1
CBi Cj 0 0 0 0 0 0 1 1
BV x1 x2 x3 s1 s2 s3 A1 A2 Solution
1 A1 1 4 3 -1 0 0 1 0 50
1 A2 2 1 1 0 -1 0 0 1 30
0 s3 -3 -2 -1 0 0 1 0 0 -40
Zj 3 5 4 -1 -1 0 1 1 80
Cj -Zj -3 -5 -4 1 1 0 0 0
Simplex Table 2
CBi Cj 0 0 0 0 0 0 1
BV x1 x2 x3 s1 s2 s3 A2 Solution
17
Simplex Table 2
CBi Cj 0 0 0 0 0 0 1
BV x1 x2 x3 s1 s2 s3 A2 Solution
Simplex Table 3
CBi Cj 0 0 0 0 0 0
BV x1 x2 x3 s1 s2 s3 Solution
Zj 0 0 0 0 0 0 0
Cj -Zj 0 0 0 0 0 0
18
For Phase II:
We will use the previous table as it as. However, objective function actual/original
values will be using.
Simplex Table 4
CBi Cj 3 2 1 0 0 0
BV x1 x2 x3 s1 s2 s3 Solution
Simplex Table 4
CBi Cj 3 2 1 0 0 0
BV x1 x2 x3 s1 s2 s3 Solution
19
x3 is entering variable and s3 is leaving variable
Simplex Table 5
CBi Cj 3 2 1 0 0
BV x1 x2 x3 s1 s2 Solution
Zj 3 2 1 0 0 40
Cj -Zj 0 0 0 0 0
Condition satisfied
Z j 40, when
x1 25 / 3
x2 5 / 3
x3 35 / 3
20