Professional Documents
Culture Documents
CA427 RSM
CA427 RSM
e not needed. Revised Simplex Method (more efficient for computing) Used in all commercially available packages. (e.g. IBM MPSX, CDC APEX III) Max subject to Z = cx Ax b x 0
x xs
xs
= slack variables
Basis matrix: columns relating to basic variables. B11 . . . . . . . . . . B1m .. . . . .. .. . . . .. . . . . . Bm1 . . . . . . . . . . Bmm
At any iteration, given the original b vector and the inverse matrix, xB (current R.H.S.) can be calculated. Z = cBxB where cB = objective coefficients of basic variables
- 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 .
- 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
Go to step 1.
cB =
Z =
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 = 0 0 0 1 0 0 0 0 1 0 0 1 1 0 3 - 3 = 0 0 0
z1 c 1 = 0 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
Solution after one iteration: xB = B-1b = 1 0 0 0 0 0 -1 1 Go to step 1 Step 1 (second iteration) Compute Y = cBB-1 Y = 0 5 0 1 0 0 0 -1 0 0 1 = 0 5/2 0 4 4 12 = 6 18 6
S2: z4 c4 = 0 5/2 0
- 0
= 5/2
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
Solution after two iterations: xB = B-1b = 1 1/3 0 1/2 0 -1/3 Go to step 1 -1/3 0 1/3 4 12 18 2 = 6 2
- compute zj cj = Y Pj - cj for all non-basic variables (S2 and S3):S2: z4 c4 = 0 3/2 1 0 1 0 0 0 1 - 0 = 3/2
S3: z5 c5 = 0
3/2
- 0
0 5 3
2 6 2
= 36