Artificial Variables: V O Thomas
Artificial Variables: V O Thomas
Artificial Variables
V O Thomas
Artificial Variables
There are two methods for solving LPP with artificial variables:
1 Two-phase method
2 Big-M method or Charnes’ M-method or Method of Penalties
We shall discuss here only the second method.
Big-M Method
Step 1
Write the LPP in the standard form and check whether it admits a
starting solution or not.
(a) If there is a starting feasible solution go to Step 3.
(b) If there does not exist a starting feasible solution go to Step 2.
Step 2
Add artificial variables to the LHS of each equation that has no
obvious starting basic variables. Assign a very high penalty (say M)
to these variables in the objective function.
Step 3
Apply simplex method to the modified LPP. The following cases may
arise in the last iteration.
(a) At least one artificial variable is present in the basis with zero
value and the optimality condition is reached, then the current
solution is an optimum basis feasible solution.
Example
Use Penalty ( Big-M ) method to M aximize z = 6x1 + 4x2 subject to
2x1 + 3x2 ≤ 30 , 3x1 + 2x2 ≤ 24 , x1 + x2 ≥ 3 and x1 , x2 ≥ 0. Is the
solution unique? If not give two different solutions
Solution
First we shall write the LPP in the standard form:
Subject to
2x1 + 3x2 + x3 = 30
3x1 + 2x2 + x4 = 24
x1 + x2 − x5 = 3
and
x1 , x2 , x3 , x4 , x5 ≥ 0
subject to
2x1 + 3x2 + x3 = 30
3x1 + 2x2 + x4 = 24
x1 + x2 + x5 + A = 3
and
x1 , x2 , x3 , x4 , x5 , A ≥ 0
6 4 0 0 0 −M
cB B.V. xB P1 P2 P3 P4 P5 P6 Min. Ratio
30
0 x3 30 2 3 1 0 0 0 2 = 15
24
0 x4 24 3 2 0 1 0 0 3 =8
3
−M A 3
1 1 0 0 −1 1 1 =3→
z = −3M −M − 6 ↑ −M − 4 0 0 M 0 ← ∆j
24
0 x3 24 0 1 1 0 2 − 2 = 12
15
0 x4 15 0 −1 0 1
3 − 3 =5
6 x1 3 1 1 0 0 −1 − −
z = 18 0 2 0 0 −6 ↑ − ← ∆j
5 −2 42
0 x3 14 0
3 1 3 0 − 5 = 8.4 →
−1 1
0 x5 5 0 3 0 3 1 − −
2 1 24
6 x1 8 1 3 0 3 0 − 2 = 12
z = 48 0 0↑ 0 2 0 − ← ∆j
6 4 0 0 0
cB B.V. xB P1 P2 P3 P4 P5 Min. Ratio
42 3 −2
4 x2 5 0 1 5 5 0
39 1 1
0 x5 5 0 0 5 5 1
12 −2 3
6 x1 5 1 0 5 5 0
z = 48 0 0 0 2 0
X = λX1 + (1 − λ)X2
is also a solution.
! !
12
8 5
X=λ + (1 − λ) 42
0 5
! !
8λ (1 − λ) 12
5
= +
0 (1 − λ) 42
5
!
12
+ 8λ − 12
5 5 λ
= 42 42
0+ 5 − 5 λ
!
12
5 + 285 λ
= 42 42
5 − 5 λ
! !
12
1 5 + 28
5 · 21 26
5
For λ = 2 , we get X3 = 42 42 1 = 21
5 − 5 · 2 5
! !
12 28 1 14
1 5 + 5 · 14 5
For λ = 14 , we get X4 = 42 42 1
= 39
5 − 5 · 14 5
Example
Solution
We shall rewrite the equation in standard form and then add artificial
variable to the second constraint.
subject to
2x1 + x2 + x3 =2
3x1 + 4x2 − x4 + A = 12
and
x1 , x2 , x3 , x4 ≥ 0.
V O Thomas Department of Mathematics, Faculty of Science 12
Artificial Variables
3 2 0 0 −M
cB B.V. xB P1 P2 P3 P4 P5 Min. Ratio
2
0 x3 2 2
1 1 0 0 1 =2
12
−M A 12 3 4 0 −1 1 4 =3
z = −12M −3M − 3 −4M − 2 ↑ 0 M 0
2 x2 2 2 1 1 0 0
−M A 4 −5 0 −4 −1 1
z = −4M + 4 5M + 1 0 4M + 2 M 0
Example
Use Big-M method to M aximize z = 8x2 Subject to 2x1 + 3x2 ≤ 6
and x1 , x2 unrestricted.
Solution
If we write the unrestricted variables x1 , x2 in the form x1 = x01 − x001
andx2 = x02 − x00 2 , we can rewrite the LPP as:
M ax z = 8(x02 − x00 2 )
subject to
x01 − x001 − x02 + x002 ≥ 0,
2x01 − 2x001 + 3x02 − 3x002 ≤ 6,
and
x01 , x02 , x001 , x002 ≥ 0
subject to
and
x01 , x001 , x02 , x002 , x3 , x4 , A ≥ 0
0 0 8 −8 0 0 −M
cB B.V. xB P1 P2 P3 P4 P5 P6 P7 Min. Ratio
−M A 0
1 −1 −1 1 −1 0 1 0→
6
0 x4 6 2 −2 3 −3 0 1 0 2 =3
z=0 −M ↑ M M − 8 −M + 8 M 0 0 ← ∆j
0 x002 0 1 −1 −1 1 −1 0 − −
6
0 x4 6 0 0
5 −5 2 1 − 5 →
z=0 0 0 −8 ↑ 8 0 0
−3
0 x01 6
5 1 −1 0 0 5
1
5 -
0 6 2 1
8 x2 5 0 0 1 −1 5 5 -
z = 485 0 0 0 3 16
5
5M−16
5 −
Exercise
1 Solve the following LPP by Big-M method: