Chapter-6: Simplex & Dual Simplex Method
Chapter-6: Simplex & Dual Simplex Method
com
1. © Simplex method
Introduction
Ax = b,
2x 1+x2+5x3 = 5 ---------------(2)
1
1 2 1 4
2 =
2 1 5 5
3
A x b
1 2 1 1 2 1
. , &
2 1 2 5 1 5
The basic solutions are obtained from the following equations:
1 2 1 4
(I) = -------(1) setting x3 = 0
2 1 2 5
2 1 2 4
(II) = -----------(2) setting x1 = 0
1 5 3 5
1 1 1 4
(III) = -------------(3) setting x2 = 0
2 5 2 5
Considering Eq (1)
[x1+2x2 = 4] ×2
2x1+x2 = 5
4x 2-x2 = 8 - 5 = 3
= 3x2 = 3 = x2 = 1
2x 1+1 = 5 = x1 = 2
Ex: Show that the following system of linear equations has a degenerate
solution.
2x1+x2-x3 = 2
3x1+2x2+x3 = 3
Solution
1
2 1 −1 2
. 2 =
3 2 1 3
3
A x b
2 1 1 2
. = -------------(1) by setting x3 = 0
3 2 2 3
1 −1 2 2
. = ------------(2) by setting x1 = 0
2 1 3 3
2 −1 1 2
. = ------------(3) by setting x2 = 0
3 1 3 3
Solving (1) Basic → x1 = 1, x2 = 0; non basic x3 = 0
z = cx
subjected to constraints:
Ax = b
& x≥0
(1)
= , =− ( ), =0←
−
Maximize z = cx
It is obvious that the value of the objective function for the basic feasible
solution xB, is given by:
www.getmyuni.com
z0 = cBxB
Let xB and be two basic feasible solution to the standard LPP, then
is said to be an improved basic feasible solution as compared to xB if
̂ ≥
Maximize z = cx
Subjected to Ax = b and x ≥ 0.
z0 = cB xB ≥ z*
Let there exist a basic feasible solution to a given LPP. If for at least one
j, for which yij ≤ 0 (i = 1,2,3,……..m), zj –cj is negative, then there does not exist
any optimum solution to this LPP.
© Computational procedure
Maximize z = 4x1+5x2+9x3
fx1+5x2+3x3 ≤ 25
Solution:
Step-2: Check whether all bi are +ve. If any one bi is –ve, multiply the
corresponding in equation by (-1).
X1+x2+2x3+x4 = 16 ----------------(1)
fx1+5x2+3x3+x5 = 25 ---------------(2)
step-4: Obtain an initial basic feasible solution to the problem in the form of
1
⎡ 2⎤
1 1 2 1 0 ⎢ ⎥ 16
.
7 5 3 0 1 ⎢ 3⎥ = 25
⎢ 4⎥
⎣ 5⎦
i.e.
1 0 4 16
. =
0 1 5 25
:- x4 = 16
& x5 = 25
0 0
I
Cf, YB }CB Y1 y2- Y3 Y1 J/s
0 _y '( ~:=/{; I I @ f 0 i
2
Step-6: If there are more than one –ve in zj – cj, choose the most –ve of them,
let Zr –Cr. If all yir ≤0 (i = 1,2,……….m) then there is an unbounded solution to
the given problem. If at least one yir > 0, then corresponding vector yr enters
the basis.
Step- 7: Compute the ratio , > 0, and choose the minimum of them. let
the minimum be , then the vector yk leaves the basis yB. The common
element is called pivotal element.
Step-8: Convert the pivotal element/leading element and all other elements in
the column to zeros.
q 0 0
1ltl Y, v: y3 _y Y_,.--
c~ 513 ~
1 s:I-- .L
q h e 2-
L
2-
0
0 .Y s: i ~
2- 03 0
-3-
2-
1.
0 D
This original LPP can also be expressed in different form – called → Dual
problem.
There is an unique dual problem associated with the primal problem and
vice versa.
Ex: The amount of vitamins (v1 & v2) present I 2 different food (f1 & f2),
cost and daily requirement are presented in the following table.
www.getmyuni.com
V1 2 4 40
V2 3 2 50
Cost 3 2.5
Solution:
Minimize z = 3x1+2.5x2
Subject to constraints:
(i) 2x 1 +4x2 ≥ 40
(ii) 3x 1 +2x2 ≥ 5.
Now the problem of the dealer is to fix maximum per unit selling prices
for the 2 vitamins in such a way that the resulting prices of foods f1 & f2 does
not exceed their existing market price.
Let the dealer decide to fix up 2 prices at w1 & w2 per unit respectively.
Then the dealer problem can be stated mathematically.
www.getmyuni.com
Subject to constraints:
2w1 + 3w2 ≤ 3
w1 w2 ≥ 0
&ij -F"
Subject to constraints
5x 1+6x2-x3 ≤ 3
-2x1+x2+4x3 ≤ 4
X1-5x2+3x3 ≤ 1
-3x1-3x2+7x3 ≤ 6
x1 x2 x3 ≥ 0.
Also verify that dual of the dual problem is the primal problem.
www.getmyuni.com
Subjected to constraints:
5 6 −1 1 3
−2 1 4 4
.
1 −5 3 2 ≤ 1
7 3 6
−3 −3
d(w) = 3w1+4w2+w3+6w4
subject to constraints:
1 2
5 −2 1 −3
. 6 2 ≥
1 −5 −3 3 5
−1 4 3 7 4 6
w1 w2 w3 w4 ≥ 0
i.e. minimize
g(w) = 3w1+4w2+w3+6w4
subjected to constraints:
5w1-2w2+w3 – 3w4 ≥ 2
6w1+w2-5w3-3w4 ≥ 5
-w1+4w2+3w3+7w4 ≥ 6
w1,w2,w3,w4 ≥ 0.
Subjected to constraints
1
5 −2 1 −3 −2
(-1) 6 2 ≤
1 −5 −3 3 −5
−1 4 3 7 4
−6
w1,w2,w3,w4 ≥ 0
To minimize
h(x) = -2x1-5x2-6x 3
subjected to constraints:
5 6 −1 1 −3
(-1) −2 1 4 −4
2 ≥ −1
1 −5 3
7 3 −6
−3 −3
x1,x2,x3 ≥ 0
subjected to constraints:
5 6 1 1 3
. −2 1 4 4
2 ≤ 1 ←original form proceed
1 −5 3
7 3 6
−3 −3
Step-2: Introduce slack variables in the constraints and obtain an initial basic
solution. Put this solution in the starting dual simplex table.
(a) If all zj – cj and xBi are non-negative for all i & j then an optimum basic
feasible solution has been obtained.
(b) If all zj – cj are non- negative and at least one basic variable say xBi is
negative, then go to step 4.
(c) If at least one zj-cj is negative, the method is not applicable to the given
problem.
Step-4: Select the most negative xBis. The corresponding basic vector then
leaves the basis set yB. Let xBk be the most negative basic variable so that yk
leaves yB.
(a) If all yki are non-negative, there does not exist any easible solution to the
given problem.
(b) If at least one yki is negative, compute the replacement ratios { , yki <
0} j = 1,2,…….n. and choose the maximum of these. The corresponding
column vectors, say yr (corresponding to ), then enters the basic set
yB .
Step-6: Test the new iterated dual simplex table for optimality.
Repeat the procedure until either an optimum feasible solution has been
obtained (in finite number of steps) or there is an indication of the non-
existence of a feasible solution.
Sample problem
Minimize z = x1+2x2+3x3
www.getmyuni.com
Subject to constraints:
X1-x2+x3 ≥ 4
x1+x2+2x3 ≤ 8
x2 – x3 ≥ 2
x1, x2, x3 ≥ 0
solution:
-x1+x2-x3+x4 = -4
X1+x2+2x3+x5 = 8
0×x1-x2+x3+x6 = -2
1
⎡ 2⎤
−1 +1 −1 +1 0 0 ⎢ −4
3⎥⎥
:- 1 1 2 0 1 0 ⎢ = 8
4⎥
0 −1 +1 0 0 +1 ⎢⎢ 5⎥ −2
⎣ 6⎦
+1 0 0 4 −4
. 0 1 0 5 = 8
0 0 +1 6 −2
i.e.,
x4 = -4,
x5 = 8
x6 = -2
www.getmyuni.com
2-
' 0 ( 0
0 s: e 1
Y{;, - 2-
-I !.- c -
3 0 D 0
0 \ L 2
-
First iteration: y4 is dropped and y1 is introduced. Hence the resulting dual
simplex table becomes:
-r 0 0 0
~
C¬ ,, .YB ~ .YI y.2.- Y3 .s ; yr;- _yj.,
-
-r s, 4 i - 1 1 - f 0 0
0 Ys- 4 0 2. i L t. 0
() 0
-4 -3 2 i 0
-'
o y s 0 0 0 3 I 1 2-
- 2-- vs: 2- 0 L -i 0 0 -/
~-Io 0 0 s I 0 3
I
Now since all xj-cj ≥ 0 and also all xBi ≥ 0 an optimum basic feasible
solution has been reached.
www.getmyuni.com
Hence the optimum basic feasible solution to the given LPP is x1=6, x2=2,
x3=0 and minimum z = -(-10) = 10 ans