









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










The Simplex Method
1. Consider the following initial Simplex tableau (Phase 1 of the Two Phase method):
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 1 0 0 1 0 0 4 x5 2 0 2 0 0 1 0 12 x6 3 3 2 -1 0 0 1 18 W W 3 4 -1 0 0 0 0
observing that x5 and x6 are artificial variables, x4 is a slack variable and x3 is a surplus variable. Fill in the missing entries, represented by ?, in the following tableau obtained after a number of pivot operations (still in Phase 1):
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1???? 1/3 -1/3? x2 2???? 1/2 0? x1 3???? -1/3 1/3? W W???????
Briefly explain how the missing entries were computed.
Solution:
We use "common sense" and the tools that we used in the Revised Simplex Method.
Step 1. Knowing the basic variables we can fill in the missing entries in the associated columns (1,2, and 4):
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 0 0? 1 1/3 -1/3? x2 2 0 1? 0 1/2 0? x1 3 1 0? 0 -1/3 1/3? W W 0 0? 0???
Step 2. Since x3 is a surplus variable associated with the artificial variable x6 , the updated column of x3 will be the negative of the updated column of x6. Thus, we can fill in this column.
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 0 0 1/3 1 1/3 -1/3? x2 2 0 1 0 0 1/2 0? x1 3 1 0 -1/3 0 -1/3 1/3? W W 0 0? 0???
Step 3. Since Step 3 reconstructed B-1, we can compute the remaining missing entries. We then set
Step 4. For the RHS we have
Hence,
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 0 0 1/3 1 1/3 -1/3 2 x2 2 0 1 0 0 1/2 0 6 x1 3 1 0 -1/3 0 -1/3 1/3 2 W W 0 0? 0???
Step 5. For the remaining reduced costs we have
r (^) j = c (^) B B −^1 D. j − c (^) j
so for j=3,5,6 we have
r 3,5,6 = c (^) B B −^1 D .3,5,6 − c 3,5,6 = [0,0,0] B −^1 D .3,5,6 − [0,1,1] = [0,0,0] − [0,1,1] = [0,−1,−1]
Hence,
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 0 0 1/3 1 1/3 -1/3 2 x2 2 0 1 0 0 1/2 0 6 x1 3 1 0 -1/3 0 -1/3 1/3 2 W W 0 0 0 0 -1 -1?
Step 6. To compute the value of W we note that W=cBRHS, hence W=(0,0,0)(2,6,2)=0. Thus, the complete tableau is as follows:
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 0 0 1/3 1 1/3 -1/3 2 x2 2 0 1 0 0 1/2 0 6 x1 3 1 0 -1/3 0 -1/3 1/3 2 W W 0 0 0 0 -1 -1 0
2. Consider the following initial Simplex tableau (Phase 1 of the Two Phase method):
Thus,
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 0 0 -1 1 3 1 58 x2 2 0 1 -1/2 0 0 1/2 9 x1 3 1 0 0 0 1 0 12 z z 0 0 -1/2 0? 1/2 10
To determine the reduced cost of x5, we need the original costs of the x 1 and x 2. Since the value of z is known to be equal to 10, x 1 =4, and x 2 =6, we have
c 1 x 1 + c 2 x 2 = 10 ¼ 4 c 1 + 6 c 2 = 10
Also, the reduced cost of x 6 is known, ie. equal to 1/2, so we can use the relation
r 6 = c (^) B B −^1 D .6 − c 6 = [0, c 2 , c 1 ]
− 0 = [0, c 2 , c 1 ](1,1 / 2, 0) = 1 / 2 c 2
and conclude that c 2 =1, which in turn yields (from above ) that c 1 =1. Thus,
r 5 = c (^) B B −^1 D .5 − c 5 = [0, c 2 , c 1 ]
So the complete tableau is as follows:
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 0 0 -1 1 3 1 58 x2 2 0 1 -1/2 0 0 1/2 6 x1 3 1 0 0 0 1 0 18 Z z 0 0 -1/2 0 1 1/2 10
3. Consider the following initial Simplex tableau (Phase 1 of the Two Phase method):
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x4 1 2 1 0 0 1 0 0? x5 2 1 2 -1 0 0 1 0? x6 3 -1 1 0 -1 0 0 1? W W 2 4 -1 -1 0 0 0?
observing that x5 , x6 and x7 are artificial variables, whereas x3 and x4 are surplus variables. Also,? represents missing entries. The following is a simplex tableau obtained after a number of pivot operations.
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x3 1??? -1 1?? 7 x1 2??? 1/3 1/3?? 7/ x2 3??? -2/3 1/3?? 16/ ????? 1/3 7/3???
You are expected to compute the missing values (in both tables) without conducting explicit pivot operations. Observe that you have to determine whether the last tableau is obtained in Phase 1 or Phase 2 of the 2-Phase method.
Solution:
Observation 1: Since all the artificial variables are out of the basis, we are in Phase 2.
Observation 2: Since (x3, x1, x3) comprises the basis in canonical form. Thus, we can fill-in the respective columns:
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x3 1 0 0 1 -1 1?? 7 x1 2 1 0 0 1/3 1/3?? 7/ x2 3 0 1 0 -2/3 1/3?? 16/ z z 1 0 0 1/3 7/3???
Observation 3: x 3 is the surplus variable associated with x 6 , hence the x 6 columns is the negative of the x 3 column. The same is true with regard to x 4 and x 7. Hence we can fill-in the columns for x 6 and x 7.
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x3 1 0 0 1 -1 1 -1 1 7 x1 2 1 0 0 1/3 1/3 0 -1/3 7/ x2 3 0 1 0 -2/3 1/3 0 2/3 16/ z z 1 0 0 1/3 7/3 0 -1/3?
Observation 4: To compute the value of the objective function at Phase 2, we need the cost coefficients of the original variables. We can compute these from the reduced costs in Phase 2 using the formula
r (^) j = cB B −^1 D. j − c (^) j
Using j=4 we obtain
1/3 = (0,c1,c2)(-1,1/3,-2/3) - 0
hence 1 = c1 - 2c2.
Using j=5 we obtain
7/3 = (0,c1,c2)(1,1/3,1/3) - 0
hence 7 = c1 + c2.
This yields c1=5, c2=2. Thus z=5(7/3) + 2(16/3) = 67/3.
Thus, the complete second tableau is as follows:
B.V. Eq. # x 1 x 2 x 3 x 4 x 5 x 6 x 7 R.H.S x 2 1???? 1/6? -1/6 2/ x3 2???? 1/2? 1/2? x4 3???? 5/2? 1/2 19 ?????? 31? 11 460
Given that c1=80, c2=60 and c3=42, compute the missing values (in both tables) without conducting explicit pivot operations.
Solution:
a. Since all the artificial variables are out of the basis, we are in Phase 2. Thus,
B.V. Eq. # x1 x2 x 3 x4 x5 x6 x7 R.H.S x2 1???? 1/6? -1/6 2/ x3 2???? 1/2? 1/2? x4 3???? 5/2? 1/2 19 Z Z???? 31? 11 460
b. Using the information on the basic variables we can fill in the columns of the basic variables.
B.V. Eq. # x1 x2 x 3 x4 x5 x6 x7 R.H.S x2 1? 1 0 0 1/6? -1/6 2/ x3 2? 0 1 0 1/2? 1/2? x4 3? 0 0 1 5/2? 1/2 19 Z Z? 0 0 0 31? 11 460
c. x6 is an artificial variable associated with the surplus variable x4, hence the column of x is equal to - column of x4.
B.V. Eq. # x1 x2 x 3 x4 x5 x6 x7 R.H.S x2 1? 1 0 0 1/6 0 -1/6 2/ x3 2? 0 1 0 1/2 0 1/2? x4 3? 0 0 1 5/2 -1 1/2 19 Z Z? 0 0 0 31 0 11 460
d. We now have B-1:
The new x 1 column is thus:
new x1 column = B-1 old x1 column
Thus,
B.V. Eq. # x 1 x 2 x 3 x 4 x 5 x 6 x 7 R.H.S x 2 1 0 1 0 0 1/6 0 -1/6 2/ x3 2 2 0 1 0 1/2 0 1/2? x4 3 1 0 0 1 5/2 -1 1/2 19 Z Z? 0 0 0 31 0 11 460
e. The reduced cost of x1 can be computed also:
r1 = cBB-1D.1 - c1 = (60,42,0)(0,2,1) - 80 = 4. Thus,
B.V. Eq. # x1 x2 x 3 x4 x5 x6 x7 R.H.S x2 1 0 1 0 0 1/6 0 -1/6 2/ x3 2 2 0 1 0 1/2 0 1/2? x4 3 1 0 0 1 5/2 -1 1/2 19 Z Z 4 0 0 0 31 0 11 460
f. The value of Z is given by
z = cBx = (60,42,0)(2/3,RHS2,19) = 40 + 42RHS2 + 0 = 460
Hence RHS2 = 10.
B.V. Eq. # x1 x2 x 3 x4 x5 x6 x7 R.H.S x2 1 0 1 0 0 1/6 0 -1/6 2/ x3 2 2 0 1 0 1/2 0 1/2 10 x4 3 1 0 0 1 5/2 -1 1/2 19 Z Z 4 0 0 0 31 0 11 460
g. Given the RHS in the final tableau we can compute b:
b = B RHS Hence,
b =
Thus, performing a pivot operation to “fix” the W-row (noting that x 6 and x 7 are artificial variables) the initial tableau is:
B.V. Eq. # x1 x2 x 3 x4 x5 x6 x7 b x5 1 2 3 1 0 1 0 0 12 x6 2 5 6 3 -1 0 1 0 15 x7 3 2 -3 1 0 0 0 1 8 W W 7 3 4 -1 0 0 0 23
5. Consider the following initial Simplex tableau:
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x5 1 2 1 0 0 1 0 0? x6 2 1 2 -1 0 0 1 0? x7 3 -1 1 0 -1 0 0 1?
r5 = (0,c 1 ,c 2 )B-1D.5 - 0 7/3 = (0,c 1 ,c 2 )(1,1/3,1/3)
thus c 1 + c 2 = 1
Solving the two equations we obtain c 1 =5 and c 2 =2.
Observation 4: Given c 1 , c 2 and the value of the objective function (67/3) we can now compute the value of x 1 :
67/3 = CBRHS = (0,5,2)(7,?,16/3).
Solving for? we obtain ?=7/3. Thus, we complete the final tableau:
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x3 1 0 0 1 -1 1 -1 1 7 x1 2 1 0 0 1/3 1/3 0 -1/3 7/ x2 3 0 1 0 -2/3 1/3 0 2/3 16/ z z 0 0 0 1/3 7/3 0 -1/3 67/
Observation 5: Given the basis and the final RHS we can compute b using the recipe b = B RHS. In our case the basis is (x 3 , x 1 , x 2 ) hence B consists of the third, first and second column of the initial tableau. Thus,
Hence,
b = B ⋅ HHS =
Hence we can fill-in the RHS column in the original tableau. B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x5 1 2 1 0 0 1 0 0 10 x6 2 1 2 -1 0 0 1 0 6 x7 3 -1 1 0 -1 0 0 1 3 W W???? 0 0 0?
Observation 6: To compute the missing entries in the initial tableau, we can re-initialise Phase 1 and restore the columns of the artificial variables to the canonical form:
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x5 1 2 1 0 0 1 0 0 10 x6 2 1 2 -1 0 0 1 0 6
x 7 3 - 1 1 0 - 1 0 0 1 3 W W 0 0 0 0 - 1 - 1 - 1 0
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x5 1 2 1 0 0 1 0 0 10 x6 2 1 2 -1 0 0 1 0 6 x7 3 -1 1 0 -1 0 0 1 3 W W 2 4 -1 -1 0 0 0 19
6. Consider the following initial Simplex tableau (Phase 1 of the Two Phase method):
B.V. Eq. # x 1 x 2 x 3 x 4 x 5 x 6 R.H.S x 4 1 1 0 0 1 0 0 4 x 5 2 0 2 0 0 1 0 12 x 6 3 3 2 -1 0 0 1 18 W W 3 4 -1 0 0 0?
Note that x5 and x6 are artificial variables, x4 is a slack variable and x3 is a surplus variable. Fill in the missing entry represented by ?,in this tableau, as well as the missing values in the following tableau obtained after a number of pivot operations. Briefly explain how you computed the missing entries.
B.V. Eq. # x 1 x 2 x 3 x 4 x 5 x 6 R.H.S x 4 1????? -1/3 2 x 2 2???? 1/2 0? x 1 3???? -1/3 1/3? W W???????
Solution:
Fill-in the columns of the basic variables in the final tableau:
B.V. Eq. # x 1 x 2 x 3 x 4 x 5 x 6 R.H.S x 4 1 0 0? 1? -1/3 2 x 2 2 0 1? 0 1/2 0? x 1 3 1 0? 0 -1/3 1/3? W W 0 0? 0???
Fill-in the column of the surplus variable (x 3 ) which is equal to -column of the corresponding artificial variable.
B.V. Eq. # x 1 x 2 x 3 x 4 x 5 x 6 R.H.S x 4 1 0 0 1/3 1? -1/3 2 x 2 2 0 1 0 0 1/2 0? x 1 3 1 0 -1/3 0 -1/3 1/3? W W 0 0? 0???
Compute the missing entry in the column of x 5 using the RHS value in row 2 of the final tableau:
x 5 2 0 2 0 0 1 0 12 x 6 3 3 2 - 1 0 0 1 18 W W 3 4 - 1 0 0 0 30
7. (15%) Consider the following initial Simplex tableau (Phase 1 of the Two-Phase method):
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 3 2???? 18 x5 2 0 2???? 12 x6 3 1 0???? 4 W W??? 0 0 0?
Note that x4 and x5 are artificial variables, x6 is a slack variable and x3 is a surplus variable. Fill in the missing entry represented by "?" in this tableau, as well as the missing values in the following tableau obtained after a number of pivot operations. Briefly explain how you computed the missing entries.
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x1 1?? -1/3? -1/3?? x2 2?? 0? 1/2?? x6 3?? 1/3??? 2 W W???????
Solution:
Given the two bases, we can complete the columns of the identity matrices (as well as the column of the surplus variable x3):
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 3 2 -1 1 0 0 18 x5 2 0 2 0 0 1 0 12 x6 3 1 0 0 0 0 1 4 W W??? 0 0 0?
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x1 1 1 0 -1/3? -1/3 0? x2 2 0 1 0? 1/2 0? x6 3 0 0 1/3?? 1 2 W W 0 0??? 0?
Given the structure of the first tableau (Phase 1), we can complete the last row of the initial tableau (2 pivots to restore the canonical form):
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x4 1 3 2 -1 1 0 0 18 x5 2 0 2 0 0 1 0 12 x6 3 1 0 0 0 0 1 4 W W 3 4 -1 0 0 0 30
X4 is an artificial variable associated with the surplus variable x3. Thus, its column is the negative of the column of x3 in the final tableau:
B.V. Eq. # x 1 x 2 x 3 x 4 x 5 x 6 R.H.S x 1 1 1 0 - 1/3 1/3 - 1/3 0? x 2 2 0 1 0 0 1/2 0? x 6 3 0 0 1/3 - 1/3? 1 2 W W 0 0??? 0?
To compute the missing element in B-1, we can use the formula b'=B-1b, applying it to the last element of the RHS in the final tableau:
2 = B-1^ 3.b = (-1/3,?,1)(18,12,4) = -6 + 12? + 4
Hence 4 = 12?, so? = 1/3.
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x1 1 1 0 -1/3 1/3 -1/3 0? x2 2 0 1 0 0 1/2 0? x6 3 0 0 1/3 -1/3 1/3 1 2 W W 0 0??? 0?
For the missing reduced costs we use the beloved
rj = c (^) B B −^1 D. j − c (^) j
Observe that we are still in Phase 1 (W), hence the cost coefficients of all the regular variable are equal to zero. Thus, cB=(0,0,0) and c=(0,0,0,1,1,0).
This yields the following:
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x1 1 1 0 -1/3 1/3 -1/3 0 2 x2 2 0 1 0 0 1/2 0 6 x6 3 0 0 1/3 -1/3 1/3 1 2 W W 0 0 0 -1 -1 0?
The value of W must be equal to zero because we are in Phase 1 and all the artificial variables are out of the basis. Thus,
B.V. Eq. # x1 x2 x3 x4 x5 x6 R.H.S x1 1 1 0 -1/3 1/3 -1/3 0 2 x2 2 0 1 0 0 1/2 0 6 x6 3 0 0 1/3 -1/3 1/3 1 2 W W 0 0 0 -1 -1 0 0
r4 = (0,c 1 ,c 2 )B-1^ D.4 - 0 1/3 = (0,c 1 ,c 2 )(-1,1/3,-2/3) thus
c 1 - 2c 2 = 1
For j=5 we obtain
r 5 = (0,c 1 ,c2)B-1^ D.5 - 0 7/3 = (0,c 1 ,c 2 )(1,1/3,1/3) thus
c 1 +c 2 = 7
Solving the two equations we obtain c 1 =5 and c 2 =2.
Observation 4: Given c 1 , c 2 and the value of the objective function (67/3) we can now compute the value of x 1 :
67/3 = CBRHS = (0,5,2)(7,?,16/3).
Solving for? we obtain ?=7/3. Thus, we complete the final tableau:
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x3 1 0 0 1 -1 1 -1 1 7 x1 2 1 0 0 1/3 1/3 0 -1/3 7/ x2 3 0 1 0 -2/3 1/3 0 2/3 16/ z z 0 0 0 1/3 7/3 0 -1/3 67/
Observation 5: Since there are three artificial variables and three functional constraints, it follows that the initial basis consists of the three artificial variables. Thus,
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x5 1 2 1 0 0 1 0 0? x6 2 1 2 -1 0 0 1 0? x7 3 -1 1 0 -1 0 0 1? W W???? 0 0 0?
Observation 6. Given the final basis and the final RHS values, we can compute b using the recipe b = B RHS. In our case the basis is (x 3 ,x 1 ,x 2 ) hence B consists of the third, first and second column of the initial tableau. Thus,
Hence,
b = B ⋅ HHS =
Thus, we can fill-in the RHS column in the original tableau.
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x5 1 2 1 0 0 1 0 0 10 x6 2 1 2 -1 0 0 1 0 6 x7 3 -1 1 0 -1 0 0 1 3 W W???? 0 0 0?
Observation 7: To compute the missing entries in the initial tableau, we can reinitialise Phase 1, recalling that all the basic variables are artificial variables in our case. Thus, the initial tableau at the pre-canonical stage is as follows:
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x5 1 2 1 0 0 1 0 0 10 x6 2 1 2 -1 0 0 1 0 6 x7 3 -1 1 0 -1 0 0 1 3 W W 0 0 0 0 -1 -1 -1 0
Observation 8: Restoring the canonical form we thus obtain
B.V. Eq. # x1 x2 x3 x4 x5 x6 x7 R.H.S x5 1 2 1 0 0 1 0 0 10 x6 2 1 2 -1 0 0 1 0 6 x7 3 -1 1 0 -1 0 0 1 3 W W 2 4 -1 -1 0 0 0 19