SIMPLEX METHOD
SIMPLEX METHOD
solving Linear
programming
problem[L.P.P]
SIMPLEX METHOD
Specifically:
a11x1 + a12x2 + a13x3 + .........+ a1nxn £ b1 can
be written as
a11x1 + a12x2 + a13x3 + .........+ a1nxn + si = bi
Where si = slack Variable
Surplus variable
It is a variable subtracted from the left-hand side of a greater than
or equal to type constraint to convert the constraint into equality. It
is also known as negative slack variable.
In economic terms, surplus variables represent over fulfillment of
the requirement.
Specifically:
a11x1 + a12x2 + a13x3 + .........+ a1nxn ³ bi can be
written as
a11x1 + a12x2 + a13x3 + .........+ a1nxn - si = bi
Where si = surplus variable.
Artificial variable
Subject to
a11x1 + a12x2 + a13x3 + .........+ a1nxn £ b1
a21x1 + a22x2 + a23x3 + .........+ a2nxn £ b2
.........................................................................
am1x1 + am2x2 + am3x3 + .........+ amnxn £ bm
x1, x2,....., xn ³ 0
Where:
cj (j = 1, 2, ...., n) in the objective function are called the cost or profit
coefficients.
bi (i = 1, 2, ...., m) are called resources constraints.
aij (i = 1, 2, ...., m; j = 1, 2, ...., n) are called technological
coefficients or input-output coefficients.
Converting inequalities to equalities
Yn+1 CB1 = o XB1 = b1 Y11 = a11 Y12 = a12 Y1k = a1k Y1n = a1n 1 0 0
Yn+2 CB2 = o XB2 = b2 Y21 = a21 Y22 = a22 Y2k = a2k Y2n = a2n 0 1 0
Optimality test:-
CJ 40 35 0 0 Minimum Ratio
BASIC CB XB / X1
XB X1 X2 S1 S2
S1 0 60 2 3 1 0 60 / 2 = 30
96 / 4 = 24(Minimum)
S2 0 96 4 3 0 1
Z = CB XB = 0 Cj - ZJ 40 35 0 0
Since all ∆J are not less than or equal to zero, therefore the solution is
not optimal.
Cj - ZJ = CJ - CBXJ
Cj - Z j = C1 - CBX1 = 40 – (0, 0) (2, 4)
= 40
Step IV: - Divide the second row containing the key element by 4 to make it
unity R2 = R2 / 4
Subtracting 2times of the second row from the first row
R1 = R1 - 2R2
CJ 40 35 0 0 Minimum Ratio
BASIC CB XB / X2
XB X1 X2 S1 S2
X1 40 24 1 3/4 0 1/4 32
Z = CB XB = 960 Cj - ZJ 0 5 0 -10
Since all CJ – Zj are not less than or equal to zero, therefore the solution is not
optimal.
Z J = C J – C BX J
Z1 = CBX1 = (0, 40) (0, 1) = 0x 0 + 40x1 = 40
Z2 = CBX2 = (0, 40) (3 / 2 , 3 / 4) = 0x3/2 + 40 x 3/4= 30
Z3 = CBX3 =(0, 40) (1, 0) = 0x1 + 40 x0 = 0
Step V: -To bring Y2 in place of Y3 we proceed in the following manner
Dividing the first row by 3/2 to make the key element unity i.e.
R1 = 2 R 1 / 3
And R2 = R 2 - 3 R 1
CJ 440 35 0 0 Minimum Ratio
BASIC CB
XB X1 X2 S1 S2
X2 35 8 0 1 2/3 - 1/3
X1 40 18 1 0 -1/2 1/2
X 1 = 18
Q2. Solve the following LPP by simplex
method:
Maximize Z = 5 X1 + 10X2 + 8X3
Subject to
3X1 + 5X2 + 2X3 ≤ 60
4X1 + 4X2 + 4X3 ≤ 72
2X1 + 4X2 + 4X3 ≤ 100
and Non-Negative Restriction (N.R)
X1, X2, X3 ≥ 0
Solution:-
S1 0 60 3 2 1 0 0 60 / 5 = 12
5 (Minimum)
S2 0 72 4 4 4 0 1 0
72 /4 = 18
S3 0 100 2 4 5 0 0 1 100 / 4 = 25
Z = CB XB = 0 ∆J 5 10 8 0 0 0
Since all ∆J are not less than or equal to zero, therefore the solution is
not optimal.
Step IV: - Divide the second row containing the key element by 5 to make it
unity R1 = R1 / 5
R2 = R2 - 4R1
R3 = R3 - 4R1
CJ 5 10 8 0 0 0 Minimum Ratio
BASIC CB XB / X3
XB X1 X2 X3 S1 S2 S3
0 24 8/5 0 - 4/5 1 0 10
S2 12/5 (Minimum)
Z = CB XB = ZJ -1 0 4 -2 0 0
120
R1 = R 1 – 2 R2 R3 = R3 – 17 R2
Step V: - R2 = 5 R2
12
5 5
CJ 5 10 8 0 0 0 Minimum Ratio
BASIC CB
XB X1 X2 X3 S1 S2 S3
X1 = 0
X2 = 8
and X3 = 10
Q3. Solve the following LPP by simplex method:-
Maximize Z = 3 X1 + 2X2 + 2X3
Subject to
X1 + 2X2 + 2X3 ≤ 10
2X1 + 4X2 + 3X3 ≤ 15
And Non-Negative Restriction (N.R) X1, X2, X3 ≥ 0
Solution:-
S1 0 10 1 2 2 1 0 10
0 15 4 3 0 1 7.5
S2 2 (Minimum)
Z = CB XB = 0 Cj - ZJ 3↑ 2 2 0 0
Since all ZJ are not less than or equal to zero, therefore the solution is
not optimal.
Step IV: - Divide the second row containing the key element by 2 to make it unity
R2 = R2 / 2
R1 = R1 – R2
CJ 3 2 2 0 0 Minimum Ratio
BASIC CB XB
XB X1 X2 X3 S1 S2
Z = CB XB = Cj - ZJ 0 - 4 - 5/2 0 -3/2
22.5
X2 = 0
And X = 0
Q4. Solve the following LPP by simplex method:-
Minimize Z = X1 - 3X2 + 2X3
Subject to
3X1 - X2 + 2X3 ≤ 7
-2X1 + 4X2 ≤ 12
-4X1 + 3X2 + 8X3 ≤ 10
and Non-Negative Restriction (N.R) X1, X2, X3 ≥ 0
Step I: -
The given problem is of Minimization so convert it to maximization
problem by taking the objective function as
Z = -Z
Max Z = - Z = - X1 + 3X2 - 2X3
and all the bi’s are already positive.
Step II: -
converting the inequalities of constraints into equations by
introducing slack variables S1, S2 and S3
Max Z = - Z = - X1 + 3X2 - 2X3 + 0S1 + 0S2 + 0S3
Subject to
3X1 - X2 + 2X3 + S1= 7
-2X1 + 4X2 + X5 + S2 = 12
-4X1 + 3X2 + 8X3 + S3 = 10
S1 0 7 3 -41 2 1 0 0 -7 (Negative)
S2 0 12 -2 0 0 1 0 3 (Minimum)
S3 0 10 -4 8 0 0 1 3.3
3
Z = CB XB = CJ -ZJ -1 3 -2 0 0 0
0
Since all CJ – Zj are not less than or equal to zero, therefore the solution is not optimal.
Step IV: - Divide the second row containing the key element by 4 to make it
unity R 2 = R2 / 4
R1 = R 1 + R 2
R3 = R3 -3 R2
CJ -1 3 -2 0 0 0 Minimum
Basic CB Ratio
XB X1 X2 X3 S1 S2 S3
XB / Y2
5/2
S1 0 10 0 2 1 1/4 0 3 (Minimum)
X2 3 3 -1/2 1 0 0 1/4 0 -6 (Negative)
S3 0 1 -5/2 0 8 0 -3/4 1 -2/5(Negative)
Since all CJ – ZJ are not less than or equal to zero, therefore the solution is not
optimal.
Step V: -To bring Y1 in place of Y4 we proceed in the following manner
R1 = 2 R 1 R2 = R 2 + 1 R 1 and R 3 = R3 + 5R1
5 2 2
CJ -1 3 -2 0 0 0 Minimum
Basic CB Ratio
XB X1 X2 X3 S1 S2 S3
Min Z = - Max Z = - 11
X1 = 4
X2 = 5
X3
=0
Simplex Method
Step 1:The given problem is of Minimization so
convert it to maximization problem by taking the
objective function as
Max Z = - Min Z
Step 2: Converting the inequalities of constraints into
equations by introducing slack variables (S1,S2,…Sn)
& convert ≥ constraints to ≤ constraints.
New element = old element _ Product of corresponding elements of key row & key column
Key element