Beruflich Dokumente
Kultur Dokumente
Operations Research
Big M Method
1
Solving LP
Graphic Metod
Simplex algorithm
The Big M method
Oranj
x2 : the quantity of ounces of orange juice in a bottle of
Oranj
Objective Function
Min z = 2 x1 + 3 x2
Constraints
0,5 x1 + 0,25 x2 4
x1 + 3 x2 20
x1 +
x2 = 10
x1 , x2 0
(Sugar Constraint)
(Vit. C constraint)
(10 oz. in bottle)
(sign restrictions)
= 0
= 4
= 20
= 10
= 20
a3
= 0
= 4
R2
= 10
R0
R1
R3
x1
x2
1
0
2M-2
0.5
4M-3
0.25
0
1
-M
0
0
0
0
0
30M
4
z=30M
s1=4
16
-1
20
a2=20
20/3*
10
a3=10
10
s1
e2
a2
a3
RHS
BV
Ratio
x1
(2M-3)/3
5/12
1/3
2/3
x2
0
0
1
0
s1
0
1
0
0
e2
a2
(M-3)/3 (3-4M)/3
1/12
-1/12
-1/3
1/3
1/3
-1/3
e2
a2
a3
0
0
0
1
a3
RHS
20+3.3M
7/3
20/3
10/3
RHS
BV
z
s1
x2
a3
28/5
20
5*
x1
x2
s1
1
0
0
0
0
0
0
1
-1/2
1/2
-1/2
x2=5
20
1/2
-1/2
3/2
x1=5
5*
25
1/4
BV
Ratio
Ratio
z=25
s1=1/4 28/5
11
Big M Method
infeasibility
Brevco example suppose vitamin C constraint is changed to 36mg.
min z = 2x1 + 3x2
s.t.
1/2 x1 +1/4 x2 4
x1 + 3x2 36
x1 + x2 = 10
x1 , x 2 0
Initial Tableau
z
x1
x2
2M-2
4M-3
s1
e2
a2
a3
-M
1
-1
1
1
RHS
BV
Ratio
46M
z=46M
s1=4
16
36
a2=36
12
10
a3=10
10*
12
Big M Method
infeasibility
Optimal Tableau
z
x1
-2M+1
x2
e2
a2
-M
-2
1
s1
-1
1
a3
RHS
BV
-4M+3
6M+30
z=6M+30
-1/4
3/2
s1=3/2
-3
a2=6
10
x2=10
13
Example
Solve the following LP using Big M method:
max z = 2x1 + 3x2
s.t.
x1 + 2x2 4
x1 + x2 = 3
x1, x2 0
14
x1
1 -M-2
x2
s1
-M-3
1
1
Z
a1
RHS
-3M
Ratio
4
3
2
3
x1
x2 s1
a1
RHS Ratio
1 -0,5M-0,5
0 0,5M+1,5
0 -M+6
0
0,5
1
0,5
0
2
4
0
x1
1
0
0
0
0
1
0,5
x2
s1
0
1
0
-0,5
a1
rhs
1 M+0,5
7
1
-1
1
-1
2
2
15
Example
Use Big M method to folve following LP:
min z = -3x1 + x2
yle ki; x1 - 2x2 2
x1 - x2 - 3
x1, x2 0
16
Big M Method:
Initial Tableau
Z
1
x1
3
1
-1
x2
-M-1
-2
1
e1
-M
-1
a1
e2
-M
a2
-1
RHS
5M
2
3
e2
-M
0
-1
a2
0
0
1
RHS
5M-6
2
5
Ratio
2
-
17
Example
Use Big M method to solve following LP:
min z = 4x1 + x2
Subject to; 3x1 + x2 = 3
4x1 + 3x2 6
x1 + 2x2 4
x1, x2 0
18
Example
Use Big M method to solve following LP:
max z = x1 - x2 + 3x3
S.t.
x1 + x2 20
x1 + x3
=5
x2 + x3 10
x1, x2, x3 0
19
Example
Use Big M method to solve following LP:
20