Simplex Method: Example (All Constraints Are )
Simplex Method: Example (All Constraints Are )
Simplex Method: Example (All Constraints Are )
Simplex method
Example (All constraints are )
Z = 3X1+ 5X2
Subject to
X1 4
2 X2 12
3X1 +2X2 18
X1 , X2 0
6s-2 Linear Programming
Simplex method
Solution
Initialization
1. Standard form
Sometimes it is called the
Maximize Z,
augmented form of the
Subject to
problem because the original
Z -3X1- 5X2 =0
form has been augmented by
X1 + S1 =4 some supplementary
Initial tableau
Entering
2. Initial tableau variable
Basic X1 X2 S1 S2 S3 RHS
variable
S1 1 0 1 0 0 4
S2 0 2 0 1 0 12
S3 3 2 0 0 1 18
Z -3 -5 0 0 0 0
Simplex tableau
Notes:
The basic feasible solution at the initial tableau is (0, 0, 4,
12, 18) where:
Optimality test
Iteration
Iteration
Step 2: Determining the leaving variable by using the minimum ratio test as
following:
Iteration
Step 3: solving for the new BF solution by using the
eliminatory row operations as following:
1. New pivot row = old pivot row pivot number
Basic X1 X2 S1 S2 S3 RHS
variable
S1
X2 0 1 0 1/2 0 6
S3
Z
Note that X2 becomes in the basic variables
list instead of S2
6s-9 Linear Programming
iteration
2. For the other row apply this rule:
New row = old row – the coefficient of this row in the pivot column (new pivot row).
For S1
1 0 1 0 0 4
-
0 (0 1 0 1/2 0 6)
1 0 1 0 0 4
For S3
3 2 0 0 1 18
-
2 (0 1 0 1/2 0 6)
3 0 0 -1 1 6
for Z
-3 -5 0 0 0 0
- Substitute this
-5(0 1 0 1/2 0 6) values in the table
-3 0 0 5/2 0 30
6s-10 Linear Programming
Iteration
This solution is not optimal, since there is a negative numbers in the last row
Basic X1 X2 S1 S2 S3 RHS
variable
S1 1 0 1 0 0 4
X2 0 1 0 1/2 0 6
S3 3 0 0 -1 1 6
Z -3 0 0 5/2 0 30
Iteration
Apply the same rules we will obtain this solution:
Basic X1 X2 S1 S2 S3 RHS
variable
S1 0 0 1 1/3 -1/3 2
X2 0 1 0 1/2 0 6
X1 1 0 0 -1/3 1/3 2
Z 0 0 0 3/2 1 36
This solution is optimal; since there is no negative solution in the last row:
basic variables are X1 = 2, X2 = 6 and S1 = 2; the nonbasic variables are S2 =
S3 = 0
Z = 36
6s-12 Linear Programming
Infeasible solution
Unbounded solution
Degenerated solution
6s-13 Linear Programming
1. In any Simplex tableau, the intersection of any basic variable with itself is always
one and the rest of the column is zeroes.
2. In any simplex tableau, the objective function row (Z row) is always in terms of
the nonbasic variables. This means that under any basic variable (in any tableau)
there is a zero in the Z row. For the non basic there is no condition ( it can take
any value in this row).
3. If there is a zero under one or more nonbasic variables in the last tableau (optimal
solution tableau), then there is a multiple optimal solution.
4. When determining the leaving variable of any tableau, if there is no positive ratio
(all the entries in the pivot column are negative and zeroes), then the solution is
unbounded.
6s-14 Linear Programming
5. If there is a tie (more than one variables have the same most negative or positive)
in determining the entering variable, choose any variable to be the entering one.
6. If there is a tie in determining the leaving variable, choose any one to be the
leaving variable. In this case a zero will appear in RHS column; therefore, a
“cycle” will occur, this means that the value of the objective function will be the
same for several iterations.
7. A Solution that has a basic variable with zero value is called a “degenerate
solution”.