Professional Documents
Culture Documents
53416647-Revised Simplex
53416647-Revised Simplex
Z = cx
Ax b
x 0
x
xs
xs
= slack variables
B11 . . . . . . . . . . B1m
.. .
.
. ..
.. .
.
. ..
.
.
.
. .
Bm1 . . . . . . . . . . Bmm
(Initially B = I )
Basic variable values:
xB =
xB1
..
..
..
xBm
B xB = b
xB = B-1b
- compute Y = cBB-1
- compute zj cj = Y Pj - cj for all non-basic
variables.
Choose largest negative value (maximisation).
If none, stop.
2. Determine leaving variable, Xr , with associated
vector Pr .
Go to step 1.
Example:
Max Z = 3X1 + 5X2
4
2X2 12
3X1 + 2X2 18
X1 , X2 0
s.t.
X1
xB = B-1b
cB =
Z =
= 1 0 0
0 1 0
0 0 1
0
0
4
12
18
4
= 12
18
0
0
4
12
18
= 0
First iteration
Step 1
Determine entering variable, Xj , with associated
vector Pj .
- compute Y = cBB-1
- compute zj cj = Y Pj - cj for all non-basic
variables.
Y =
z1 c 1 = 0 0 0
1
0
0
0 0
1 0
0 1
1
0
3
- 3
0 0
= -3
Step 2
Determine leaving variable, Xr , with associated
vector Pr .
- compute xB = B-1b (current R.H.S.)
- compute current constraint coefficients of
entering variable:
j = B-1Pj
Xr is associated with
= Min { (xB )k / jk , jk > 0}
k
xB =
4
12
18
2 =
1 0 0
0 1 0
0 0 1
0
0
2 = 2
2
2
Step 3
Determine new B-1
B =
B-1 = 1 0 0
0 0
0 -1 1
1 0 0
0 2 0
0 2 1
4
4
12 = 6
18
6
1
0
0
-1
0
0
1
5/2
1
0
3
- 3
= -3
S2: z4 c4 = 0 5/2 0
0
1
0
- 0
= 5/2
4
6
6
1 =
1 0 0
0 0
0 -1 1
1
1
0 = 0
3
3
Step 3
Determine new B-1
B =
1 0 1
0 2 0
0 2 3
B-1 = 1
0
0
1/3 -1/3
1/2
0
-1/3
1/3
-1/3
0
1/3
4
12
18
2
= 6
2
Step 1
- compute Y = cBB-1
Y =
B-1
0 3/2 1
3/2
0
1
0
- 0
= 3/2
S3: z5 c5 = 0
3/2
0
0
1
- 0
0 5 3
2
6
2
= 36