Beruflich Dokumente
Kultur Dokumente
Contents
Big M Method
Example 1
= 10
2x1 +x2 S1
x1 + x2 - S2
=6
+ S3 = 6
-3x1 + 2x2
7
2x1 + x2 S1 +R1
= 10
x1 + x2 S2
+R2 = 6
+ S3 = 6
- 3x1 + 2x2
Artificial
variables
R1 and R2 added to
the constraints
Objective function
= 10
=6
=6
constraints
Tabular form
Basic
x1
x2
S1
-4
-3
R1
R2
S3
-3
S2
R1
R2
S3
solution
-M
-M
-1
10
-1
10
x1
x2
S1
-4
-3
R1
R2
S3
-3
S2
R1
R2
S3
solution
-M
-M
-1
10
-1
R1 = 10; R2 = 6 and z = 0
Is this table
correct ?
11
Basic
x1
x2
S1
-4 + 3M
-3+2M
-M
R1
R2
S3
-3
S2
R1
R2
S3
solution
-M
16M
-1
10
-1
13
x1
x2
S1
-4 + 3M
-3+2M
-M
R1
-1
R2
S3
-3
S2
R1
R2
S3
solution
-M
16M
10
Min.
ratio
10/2
0
-1
6
6/1
---
Second iteration
Bas
ic
x1
x2
S1
-2+M
2
-4-M
2
x1
1/2
R2
S3
R1
R2
S3
-M
4 3M
2
20 +M
-1/2
1/2
1/2
-1
7/2
-3/2
21
1/2
S2
solution Min.
ratio
5/1/2
1/1/2
21/7/2
15
Final iteration
Basic
x1
x2
S1
S2
R1
R2
S3
solution
-1
-2
1M
(2-M)/2
22
x1
-1
x2
-1
S3
-13/2
14
Solution x1 = 4; x2 = 2; z = 22
16
z = 2 x1 + 3 x 2 5 x3
x1 + x 2 + x3 = 7
2 x1 5 x 2 + x3 10
x1 , x 2 , x3 0
17
z = 2 x1 + 3 x 2 5 x3 MR1 MR 2
x1 +
x2 + x3
2 x1 5 x 2 + x 3 s 2
+ R1
= 7
+ R2 = 10
x1 , x 2 , x 3 , s 2 , R 1 , R 2 0
Now we solve the above LPP by the Simplex method.
18
Basic z
x1
x2
x3
s2
R1
R2
Sol.
0
M
0
M
-17M
0
R1
R2
z
0
1
0
0
0
1
1
6M/2
1/2
1/2
-1
-1 M/2
1/2
-1/2
0
0
R1
x1
-5
-8 7M/2
7/2
-5/2
50/7
102/7
x2
1/7
x1
6/7
-1/7
45/7
1
0
5/7
1
10
1+
10 3M/2 2M
-1/2
2
1/2
5
1/7
4/7
20
Tutorial - 3
22
z = 1 2 x1 1 5 x 2
4 x1 + 3 x 2
12
2 x1 + 5 x 2 1 0
x1 , x 2 0
z = 2 x1 3 x 2
(ii) Max.
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
23
(iii) Max.
subject to
z = 3 x1 + 2 x 2 + 5 x 3
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.
subject to
z = 6 x1 2 x 2 6 x 3
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
24
z = x1 + 3 x 2
x1 + 2 x 2
3 x1 + x 2 3
x1 4
x1 , x 2 0
z = 9 x1 + x 2 + 2 x 3
(ii) Min.
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
25
26
27
Phase - I
We construct an auxiliary LPP (always a minimization
problem).
The objective function is sum of artificial variables,
with the original constraints
The optimal solution of the auxiliary problem will give
a starting BFS for the original problem.
28
Phase - II
29
Example
Min
Subject to
2x1 + 4x2 + 3x3 32
x1 + 2x2 + 4x3 28
x1, x2, x3 0
30
31
32
Basic
x1
x2
x3
s1
R1
R2
s2
R1
R2
solution
-1
-1
-1
32
-1
28
Thus
New r-row = r-row + R1 row + R2 row
33
Basic
x1
x2
x3
s1
-1
R1
R2
s2
R1
R2
solution
-1
60
-1
32
-1
28
34
x1
x2
x3
s1
-1
R1
R2
s2
R1
R2
solution
-1
60
-1
32
32/3
-1
28
28/4
Min.
ratio
35
Basic
x1
x2
x3
s1
3/4
5/2
-1
R1
5/4
5/2
5/2
x3
1/4
1/2
s2
R1
R2
solution
7/4
-7/4
11
-1
3/4
-3/4
11
-1/4
1/4
36
Basic
x1
x2
x3
s1
x2
1/2
x3
s2
R1
R2
solution
-1
-1
-2/5
3/10
2/5
-3/10
22/5
1/5
-2/5
-1/5
2/5
24/5
Phase II
We will use the BFS obtained in Phase-I as a starting
BFS of the given problem, and use simplex method to
find the optimal solution.
38
x1
x2
x3
s1
s2
solution
-4
-6
-5
x2
1/2
-2/5
3/10
22/5
x3
1/5
-2/5
24/5
39
Basic
x1
x2
x3
s1
s2
solution
-1
-12/5
-2
252/5
x2
1/2
-2/5
3/10
22/5
x3
1/5
-2/5
24/5
Since all the conditions for optimality (for a minimization problem) are
being satisfied. Phase two ends at this point.
40
Minimize
Subject to
z = 2 x1 + 5 x2 + 3 x3
x1 2 x 2 + x 3 2 0
2 x1 + 4 x 2 + x 3 = 5 0
x1 , x 2 , x 3 0
41
Phase I:
Minimize
Subject to
r = R1 + R2
x1 2 x2 + x3 s1 + R1
2 x1 + 4 x2 + x3
= 20
+ R2 = 50
x1 , x2 , x3 , s1 , R1 , R2 0
42
x1
x2
x3
s1
R1
3
0
2
0
2
0
-1
0
0
-1
0
-1
70
0
R1
-2
-1
20
R2
50
-1
-3
10
x1
-2
-1
20
R2
-1
-2
10
Basic
R2
Sol
43
Basic r
x1
x2
x3
s1
R1
-1
-3
x1
-2
R2
x1
x2
R2
Sol
10
-1
20
-1
-2
10
-1
-1
3/4
-1/2
1/2
1/4
45/2
-1/8
1/4 -1/4
1/8
5/4
44
z = 2 x1 + 5 x2 + 3x3
45
Basic z
x1
x2
0
-2
0
-5
-17/8
-3
1/4
0
205/4
0
x1
3/4
-1/2
45/2
x2
-1/8
1/4
5/4
-1
-2
50
x1
1/2
25
s1
x3
-1/2
s1
R1
R2
Sol
47
Tutorial - 4
48
z = 2 x1 + 3 x 2 5 x3
x1 + x 2 + x3 = 7
2 x1 5 x 2 + x3 10
x1 , x 2 , x3 0
49
(ii) Maximize
z = 2 x1 + 2 x2 + 4 x3
Subject to
2 x1 + x2 + x3 2
3 x1 + 4 x2 + 2 x3 8
x1 , x2 , x3 0
50
(iii) Max.
subject to
z = x1 + 3 x 2
x1 + 2 x 2
3 x1 + x 2 3
x1 4
x1 , x 2 0
(iv) Min.
z = 9 x1 + x 2 + 2 x 3
subject to
4 x1 + 2 x 2 + x 3 5
x1 + 2 x 2 + 3 x 3 4
x1 , x 2 , x 3 0
51