Professional Documents
Culture Documents
3 3
The Simplex Method
Principles
The simplex method is an iterative process for solving LPP’s expressed in
standard form . In addition to that, the constraint equations are expressed
in a canonical system.
Steps:
1. Start with an initial basic feasible solution in canonical form.
2. Improve the initial solution (if possible) by finding another bfs with a
better objective function value. The SM implicitly eliminates from
consideration all those bfs’s whose objective function values are worse
than the present (current) solution.
3. Continue until a particular bfs cannot be improved further. It becomes an
optimal solution, and the method terminates.
Definition: A bfs that differs from the present bfs by exactly one basic variable
is called an adjacent bfs.
Definition: The relative profit of a variable is the change in the value of the
objective function that results from increasing the value of this variable
4 4
by 1.
Example 1
Maximize Z 5 x1 2 x 2 3x3 x 4 x5
S.T : x 2 x 2 x x 8
1 2 3 4
3x1 4 x2 x3 x5 7
Iteration # 1
Step 1: The system is in canonical form with respect tox 4 , x.5Take
x1 x 2 x3 0, and take x 4 8, x5 7
Notice that the current value of z= -1. (basic: x 4 , x 5 , nonbasic: x1 , x 2 , x3 . )
Step 2: Compute relative profits of the nonbasic variables, as follows:
1)
x1 1 x x 8
x4 7, x5 4
1 4
1
3 x x 5 7
Z=5-7+4=2, relative profit=2-(-1)=3.
2)
x2 1 2 x2 x4 8
x4 6, x5 3
2
4 x x 5 7
Z=2-6+3=-1, relative profit=-1-(-1)=0.
5 5 3) x3 1 2 x3 x4 8
x4 6, x5 6
3
x x 5 7
Example 1
7 7
Example 1
3) x 4 1
1
x
3 2 4 x 4 7 7
x 3 , x 5
1 2 2
x 4 x 5 3
2
21 7
Z 1 13
2 2
rel . profit 13 - 15 -2 0.
x1 is the new basic variable. x1 = min{8,6/5} = 6/5.
3 17
x3 4
5 5
51 81
Z 6
5 5
8
basic : x1 , x3 , nonbasic : x 2 x4 x5 0
Example 1
Iteration # 3
Step 1: Rewrite the system in canonical form with respect to x1 and x3 , to get :
6 1 2 6
x1 x2 - x4 - x 5
5 5 5 5
2 3 1 17
x 2 x 3 x 4 x5
5 5 5 5
x2 1
1)
6 6
x1 5 x 2 5
x1 0, x3 3
2
x x 17
5 2 3
5
81 15
Z 2 9 11, rel. profit 11 3 0
5 5
2) x4 1
1 6
x x
5
1 4
5 7 14
x1 , x3
x 3 x 17 5 5
3
5
4
5
42 72 72 81 9
9 Z 7 1 , rel . profit 3 0
5 5 5 5 5
Example 1
3) x5 1
2 6
x x
5
1 5
5 4 18
x1 , x3
x 1 x 17 5 5
3 5 5 5
54 79 79 81 2
Z 4 1 , rel . profit 0
5 5 5 5 5
DONE
10
Example 2
Maximize Z 3x1 2 x 2
S .T : x1 2 x2 6
2x1 x2 8
- x 1 x2 1
x2 2
x 1 , x2 0
I. Write the LPP in standard form, to get:
Maximize Z 3x1 2 x 2
S .T : x1 2 x 2 x3 6
2x1 x 2 x4 8
- x 1 x2 x5 1
x2 x6 2
x1 , x 2 ,...,x6 0
11
Example 2
12
13
14
15
16
17
Summary