Chapter08 BigM and TwoPhases Methods
Chapter08 BigM and TwoPhases Methods
1 Introduction
All linear programs that were previously discussed are of the type:
Maximize a linear function under constraints of type lower or
equal (and with a second member positive).
In many real problems, we can find constraints textbftype superior or
equal and/or of equal type, as well as problems where we have to
textbf minimize instead of maximize.
In this chapter, we will consider the changes to be made to the
simplex method so that it can solve all these types of programmes.
Notes
1 Rewrite the objective function in its standard form by adding, to the
terms associated with the decision, slack variables and surplus
variables. artificial variables by imposing a penalty either:
(-M), in the case of a maximisation.
(+M), in the case of a miniimisation.
Max
Z = 4x1 + 5x2
2x1 + 2x2 ≥ 8
S.C: x2 = 3
9x1 + 3x2 ≤ 27
x1 ≥ 0; x2 ≥ 0.
Standard form
Max Z = 4x1 + 5x2 + 0s1 + 0.s2 − M.A1 − MA2
2x1 + 2x2 − s1 + A1 = 8
S.C: x2 + A2 = 3
9x1 + 3x2 + s2 = 27
x1 ≥ 0; x2 ≥ 0;s1 ≥ 0; s2 ≥ 0;A1 ≥ 0; A2 ≥ 0.
Where:
s2 is a slack variable.
s1 is a surplus variable.
A1 et A2 sont des artificial variables.
Pres: Abdelhamid LEBAL Linear programming Month-Year 15 / 39
initial table
In the same way as before; try to find the incoming variable and the
outgoing variable
In the same way as before we try to find the incoming variable and
the outgoing variable
The incoming variable is: x2 ((5 + 3M) > (4 + 2M) with M big
enough) and the output variable is: A2 .
In the same way as before we try to find the incoming variable and
the outgoing variable
The simplex array after the second iteration indicates that the output
variable is: A1 .
The first two iterations are made to remove the artificial variables
from the base A1 and A2 . So we can remove the column related to
A1 and A2 .
In the same way as before we try to find the incoming variable and
the outgoing variable
Example 2:
Consider the following LP:
Min: (Z = x + 3y
x + 2y ≥ 30
S.C:
x + 4y ≥ 40
x ≥ 0; y ≥ 0
Example 2:
Write down the model in its standard form:
Min: (Z = x + 3y + 0.e1 + 0.e2 + M.t1 + M.t2
x + 2y − e1 + t1 = 30
S.C:
x + 4y − e2 + t2 = 40
x ≥ 0; y ≥ 0;e1 ≥ 0; e2 ≥ 0;t1 ≥ 0; t2 ≥ 0
Ou:
x1 , x2 : are the decision variables,
e1 : is the slack variable,
e2 , e3 : are the surplus variables,
t1 , t2 : are the artificial variables.
The objective function to minimize is the sum of the artificial variables and
that is:
Min: W = t1 + t2