Simplex Method
Simplex Method
Simplex Method
Knowledge Concept 1
Solution Concept 2
If No If Yes
Stop
Perform an iteration to find a
Iteration better CPF solution
Solution Concept 3
Whenever possible, the initialization of the
simplex method chooses the origin to be the
initial CPF solution.
Solution Concept 4
Given a CPF solution, it is much quicker
computationally to gather information
about its adjacent CPF solution than other
CPF solutions.
Therefore, each time the simplex method
performs an iteration to move from the current
CPF solution to a better one, it always chooses a
CPF solution that is adjacent to the current one.
No other CPF solutions are considered.
Consequently, the entire path followed to
eventually reach an optimal solution is along the
edges of he feasible region.
Solution Concept 5
After the current CPF solution is identified, the
Simplex Method examines each of the edges of
the feasible region that emanate from this CPF
solution. Each of these edges leads to an
adjacent CPF solution at the other end. The
Simplex Method does not examine all these
points. It identifies the rate of improvement in Z
that would be obtained by moving along the
edge. Among the edges with a positive rate of
improvement in Z, it then chooses to move
along the one with the largest rate of
improvement in Z. The iteration is completed
by first solving for the adjacent CPF solution at
the other end of the edge and then relabeling this
adjacent CPF solution as the current CPF
solution for the optimality test and the next
iteration.
Solution Concept 6
The optimality test consists of simply
checking whether any of he edges give a
positive rate of improvement in Z. If none
do then the current CPF solution is
optimal.
Setting up the Simplex Method
S. T.
x1 + x3 = 4
2x2 + x4 = 12
xj 0
X1 + x3 =4 (1)
2x2 + x4 = 12 (2)
3x1 + 2x2 + x5 = 18 (3)
Tabular Form – Table1
Basic EQ Z X1 X2 X3 X4 X5 Right
Variable Side
Z 0 1 -3 -5 0 0 0 0
X3 1 0 1 0 1 0 0 4
X4 2 0 0 2 0 1 0 12
X5 3 0 3 2 0 0 1 18
Iteration 1
Initialization: introduce slack variables. Select the
decision variables to be the initial non-basic
variables (set equal to zero) and the slack variables
to be the initial basic variables this selection yields
the initial simplex tableau shown in table1.
The initial BF solution is (0, 0, 4, 12, 18).
Optimality Test
The current BF solution is optimal if and
only if every coefficient in row 0’s
nonnegative. If it is STOP, otherwise go to
an iteration to obtain the next BF solution.
This involves changing one non-basic
variable to a basic variable (Step1) and
vice versa. (Step2) and then solving for the
new solution. (Step3)
For the example:
Z = 3x1 + 5x2 indicate that increasing either
x1, or x2 will increase Z, so the current BF
solution is not optimal.
Iteration
Step 1:
Determine the entering basic variable by
selecting the variable with the negative
coefficient having the largest absolute value
(“ the most negative” coefficient) in EQ (0).
Put a box around the column below this
coefficient and call this the pivot column.
Basic EQ Z X1 X2 X3 X4 X5 Right Ratio
Variable Side
Z 0 1 -3 -5 0 0 0 0
X3 1 0 1 0 1 0 0 4
X4 2 0 0 2 0 1 0 12 12/2 = 6
X5 3 0 3 2 0 0 1 18 18/2 = 9
X3 1 0 1 0 1 0 0 4
1
X2 2 0 0 1 0 1/2 0 6
X5 3 0 3 0 0 -1 1 6 6/3=2
For step3 we start by dividing the pivot row in
table5 by the pivot number. Next, we add to row o
the product, 3 times the new row 3. then we
subtract the new row 3 from row 1.
We now have tableaux shown in table6. the new
BF solution is (2, 6, 2, 0, 0 ) with Z = 36.
The solution is optimal because none of the
coefficient in row 0 is negative.
Table 6
Iter Basic EQ Z X1 X2 X3 X4 X5 Right
Variable Side
Z 0 1 -3 -5 0 0 0 0
X3 1 0 1 0 1 0 0 4
0
X4 2 0 0 2 0 1 0 12
X5 3 0 3 2 0 0 1 18
Z 0 1 -3 0 0 5/2 0 30
X3 1 0 1 0 1 0 0 4
1
X2 2 0 0 1 0 1/2 0 6
X5 3 0 3 0 0 -1 1 6
Z 0 1 0 0 0 3/2 1 36
X3 1 0 0 0 1 1/3 -1/3 2
2
X2 2 0 0 1 0 1/2 0 6
Class work
1. Maximize Z = 2x1 + x2
Subject to:
x1 + x2 40
4x1 + x2 100
x1, x2 0.
2. Maximize Z = 2x1 + 3x2
Subject to:
x1 + 2x2 30
x1 + x2 20
x1, x2 0
3. Maximize Z = 2x1 + 4x2 + 3x3
Subject to:
3x1 + 4x2 + 2x3 60
2x1 + x2 + 2x3 40
x + 3x + 2x 80
Big M Method
Real Problem
Maximize Z = 3x1 + 5x2
Subject to:
x1 4
2x2 12
3x1 + 2x2 = 18
x1, x2 0
The Artificial Problem
Maximize Z = 3x1 + 5x2 – Mx5
Subject to:
x1 4
2x2 12
x x,x 0
In Proper Form
Maximize Z = 3x1 + 5x2 – Mx5
x1 + x3 = 4
2x2 + x4 = 12
3x1 + 2x2 + x5 = 18
x1, x2, x5 0
x3, x4 0
4.
(0) – Z + 0.4 x1 + 0.5x2 + M X4 + M X6 = 0
(1) 0.3 x1 + 0.1 x2 + X3 = 2.7
(2) 0.5 x1 + 0.5 x2 + X4 = 6
(3) 0.6 x1 + 0.4 x2 - X5 + X6 = 6
ROW 0
0.4 0.5 0 M 0 M 0
- (0)
-M[0.50.5 0 1 0 0 6
- (2)
-M[0.60.5 0 0 -1 1 6
- 3
---------------------------------------------------------------
- 1.1M+0.4 – 0.9M + 0.5 0 0 M 0 - 12M
NEW ROW 0