Professional Documents
Culture Documents
Maximize Z = x + 5y
Subject to: -x + 3y 10
x+y 6
x-y 2
x0 y0
4
Example 5: Solve the following LPP using simplex
method
Maximize z = 2 x1 + 4 x2 + 4 x3 3x4
Subject to
x1 + x2 + x3 4
x1 + 4 x2 + x4 = 8
x1 , x2 , x3 , x4 0
Contents
6
If in a starting simplex tableau, we dont have an
identity sub matrix (i.e. an obvious starting BFS), then
we introduce artificial variables to have a starting BFS.
7
Big M Method
8
Suppose that ith constraint equation doesn't have a
slack variable. i.e.
ith constraint in the original LPP is either or = type .
9
Artificial variable objective coefficient
= - M (Sum of artificial variables) in a maximization
problem,
= M (sum of the artificial variables ) in a minimization
problem
where M is a very large positive number.
Mathematically M
10
Example 1
12
z = 4x1 + 3x2 + MR1 + MR2 Objective function
2x1 + x2 s1 +R1 = 10
x1 + x2 s2 +R2 =6 constraints
- 3x1 + 2x2 + s3 =6
13
Tabular form
Basic z x1 x2 S1 S2 R1 R2 S3 solution
z 1 -4 -3 0 0 -M -M 0 0
R1 0 2 1 -1 0 1 0 0 10
R2 0 1 1 0 -1 0 1 0 6
S3 0 -3 2 0 0 0 0 1 6
14
Since the z column does not change in the iterations, it may be
deleted
Basic x1 x2 S1 S2 R1 R2 S3 solution
z -4 -3 0 0 -M -M 0 0
R1 2 1 -1 0 1 0 0 10
R2 1 1 0 -1 0 1 0 6
S3 -3 2 0 0 0 0 1 6
16
Basic x1 x2 S1 S2 R1 R2 S3 solution
z -4 + 3M -3+2M -M -M 0 0 0 16M
R1 2 1 -1 0 1 0 0 10
R2 1 1 0 -1 0 1 0 6
S3 -3 2 0 0 0 0 1 6
17
Selecting pivot row and pivot column for a minimization problem
R1 2 1 -1 0 1 0 0 10
2 10/2
R2 1 1 0 -1 0 1 0 6
6/1
S3 -3 2 0 0 0 0 1 6 ---
18
Second iteration
Bas x1 x2 S1 S2 R1 R2 S3 solution Min.
ic ratio
z 0 -2+M -4-M -M 4 3M 0 0 20 +M
2 2 2
R2 0 1/2 1/2 -1 0 1 0 1
1/2 1/1/2
19
Final iteration
Basic x1 x2 S1 S2 R1 R2 S3 solution
z 0 0 -1 -2 1M (2-M)/2 0 22
x1 1 0 -1 0 1 0 0 4
x2 0 1 1 -1 0 1 0 2
S3 0 0 -13/2 0 0 0 1 14
Solution x1 = 4; x2 = 2; z = 22
20
Consider the following LPP:
Maximize z = 2 x1 + 3 x 2 5 x3
Subject to x1 + x 2 + x3 = 7
2 x1 5 x 2 + x3 10
x1 , x 2 , x3 0
21
Introducing surplus and artificial variables, s2, R1 and R2 , the
LPP is modified as follows:
Maximize z = 2 x1 + 3 x 2 5 x3 MR1 MR 2
Subject to x1 + x2 + x3 + R1 = 7
2 x1 5 x 2 + x 3 s 2 + R2 = 10
x1 , x 2 , x 3 , s 2 , R 1 , R 2 0
22
Basic z x1 x2 x3 s2 R1 R2 Sol.
24
If in any iteration, there is a tie for leaving variable
between an artificial variable and other variable
(decision, surplus or slack), we must prefer the
artificial variable to leave the basis.
25
Tutorial - 3
26
(1). Solve the following LPPs using Simplex method:
(i) Max. z = 1 2 x1 1 5 x 2
subject to 4 x1 + 3 x 2 12
2 x1 + 5 x 2 1 0
x1 , x 2 0
(ii) Max. z = 2 x1 3 x 2
subject to x 1 + x 2 2
2 x1 x 2 2
x1 x 2 2
x1 0 , x 2 u n re s tric e d
27
(iii) Max. z = 3 x1 + 2 x 2 + 5 x 3
subject to x1 + 2 x 2 + x 3 4 3 0
3 x1 2 x 3 4 6 0
x1 + 4 x 2 4 2 0
x1 , x 2 , x 3 0
(iv) Min. z = 6 x1 2 x 2 6 x 3
subject to 2 x1 3 x 2 + x 3 1 4
4 x1 + 4 x 2 + 1 0 x 3 4 6
2 x1 + 2 x 2 4 x 3 3 7
x1 2 , x 2 1, x 3 3
28
(2). Solve the following LPPs using Big-M method:
(i) Max. z = x1 + 3 x 2
subject to x1 + 2 x 2 2
3 x1 + x 2 3
x1 4
x1 , x 2 0
(ii) Min. z = 9 x1 + x 2 + 2 x 3
subject to 4 x 1 + 2 x 2 + x 3 5
x1 + 2 x 2 + 3 x 3 4
x1 , x 2 , x 3 0
29