Simplex Method
Simplex Method
□ The Simplex Method is a method of finding the corner points for a linear programming problem with n
variables algebraically.
□ all variables and P are on the same side of the equal sign.
(c) Place the constraints and the objective function in the initial simplex tableau.
2. Determine whether or not the optimal solution has been reached:
(a) The optimal solution has been reached if all entries in the last row to the left of the vertical line
are non-negative.
(b) If an optimal solution has been reached, skip to step 4.
(c) If an optimal solution has not been reached, go to step 3.
3. Perform pivot operations:
(a) Locate pivot element:
□ pivot column:
(a) Are there negatives in the constants column (above the horizontal line)? If no, skip to b. If
yes, pick any negative in that row. The column for that entry is the pivot column.
(b) The column with the most negative entry in the last row to the left of the vertical line.
□ pivot row: Divide each entry in the pivot column into the corresponding entry in the constants
column. The pivot row is the row with the smallest NON-NEGATIVE such ratio. (Cannot
divide by 0)
□ pivot element: The element in both the pivot column and pivot row.
©Melanie Yosko This page may not be scanned, copied, or redistributed without Page 1
permission.
Math 1324 Section 6.4 Continued
1. Solve the linear programming problem using the Simplex Method.
©Melanie Yosko This page may not be scanned, copied, or redistributed without Page 2
permission.
ii. P = −x + y + 2z becomes x − y − 2z + P = 0
Maximize P = −x + y + Put this at the bottom
Subject to: 2z # →→→→→→ 3x + 4y − 3z +s1 = 23
3x + 4y − 3z ≤ 23 These become → → 5x − 4y − 3z +s2 = 10
5x − 4y −
7 ≤ 1030 →→→→→→ 7x + 4y + +s3 = 30
x + 4y +
3z # 11z
11z x ≥ 0 x − y − 2z + P =
0
y≥0 ← Not in simplex tableau
z≥0
iii. Now take these new equations and put them in a matrix, which we call our Initial
Simplex Tableau
x y z s1 s2 s3 P constant
3 4 −3 1 0 0 0 23
5 −4 −3 0 1 0 0 10
7 4 11 0 0 1 0 30
1 −1 −2 0 0 0 1 0
(d) Now let’s find our pivot element!
i. Look at the bottom row of the initial simplex tableau, to the left of the vertical line. Put an
arrow under the most negative entry. Hint: Look at all numbers with a negative sign. If they
were all positive, which is the largest?
ii. Did you put an arrow under the negative 2 in the z column? If so, you are correct! That means
the z column is the pivot column.
Initial Simplex Tableau
x y z s1 s2 s3 P constant
3 4 −3 1 0 0 0 23
5 −4 −3 0 1 0 0 10
7 4 11 0 0 1 0 30
1 −1 −2 0 0 0 1 0
↑
PC
constant entry
We will look at the z column and the constant column. We will divide like this: to
PC entry
find the smallest non-negative ratio.
©Melanie Yosko This page may not be scanned, copied, or redistributed without Page 3
permission.
Initial Simplex Tableau
x y z s1 s2 s3 P constant Ratio
23
3 4 −3 1 0 0 0 23 = −# z z negative ratio so throw this one
out
−3
10
5 −4 −3 0 1 0 0 10 = −# z z negative ratio so throw this one
out
−3
30
7 4 11 0 0 1 0 30 ← PR (smallest non-negative ratio)
11
1 −1 −2 0 0 0 1 0
↑
PC
Initial Simplex Tableau
x y z s1 s2 s3 P constant
3 4 −3 1 0 0 0 23
5 −4 −3 0 1 0 0 10
7 4 11 0 0 1 0 30 ← PR
1 −1 −2 0 0 0 1 0
↑
PC
Initial Simplex Tableau
x y z s1 s2 s3 P constant
3 4 −3 1 0 0 0 23
5 −4 −3 0 1 0 0 10
7 4 11 0 0 1 0 30
1 −1 −2 0 0 0 1 0
2. Now we pivot on the circled element. Remember what pivot means? This makes a unit column, with
the circled entry 1 and all other entries in that column 0. We will use this calculator:
http://simplex.tode.cz/en/
56 3 343
54
11 11 0 1 0 11 0 11
200
76
11
−32
11 0 0 1 3
11 0 11 Successful pivot on 3, 3 entry (made unit column).
30
4 1
11
7 11 1 0 0 11 0 11
−3 2 60
11
25 11 0 0 0 11 1 11
©Melanie Yosko This page may not be scanned, copied, or redistributed without Page 4
permission.
3. Has an optimal solution been reached?
x y z s1 s2 s3 P constant Ratio
54 56
34
11 11 0 1 0 3
3
343
← PR
5
0 1
11 6
76
1
20 z z
−32
11 11 0 0 1 1
3 0
11 15
0 1
2
7 4
30
11 11
11
1 0 0 1
1
25 −3
11 11 0 1 60
11
↑
PC 0 0 0 1
2
1 1
http://simplex.tode.cz/en/ Here is the next tableau after making that unit column:
x y z s1 s2 s3 P constant
11 3 49
27
28 1 0 56 0 56 0 8
68
7 0 0 4
7 1 3
7 0 36
1
13 −1 1
−22 0 1 14 0 14 0 2
3 11 57
88
281 0 0 56 0 56 1 8
©Melanie Yosko This page may not be scanned, copied, or redistributed without Page 5
permission.
6. Draw a line through the columns that are not unit columns. Those variables are assigned a value of 0.
x y z s1 s2 s3 P constant
27 11 3 49 Thus, we know:
28 1 0 56 0 56 0 8 x=0
68 4 3
7 0 0 7 1 7 0 36 s1 = 0
−13 −1 1 1
22 0 1 14 0 14 0 2 s3 = 0
281 3 11 57
88 0 0 56 0 56 1 8
Pretend the non-unit columns are not there (like Now look at the columns remaining in the table.
this):
Read off the answers like we did with matrices:
y z s2 P constant
49
49
y=
1 0 0 0 8 8
s2 = 36
0 0 1 0 36 1
z=
2
1
0 1 0 0 2 57
P=
8
0 0 0 1 57 8
Here are all the variables:
49 1 57
x=0 y= z= s1 = 0 s2 = 36 s3 = 0 P =
8 2 8
Now that you’ve gotten the hang of it, let’s try some more!
©Melanie Yosko This page may not be scanned, copied, or redistributed without Page 6
permission.
2. Put the linear programming problem into an initial simplex
tableau: Maximize P = 8x + 3y + 4z
Subject to: 2x + 4y + 3z ≤ 14
2x − y + 5z ≤ 50
4x + 9y + 11z ≤
81 x ≥ 0
y≥0
z≥0
©Melanie Yosko This page may not be scanned, copied, or redistributed without Page 7
permission.
4. Given the following simplex tableau, select the next pivot element.
x y z s1 s2 P constant
3 3 −2 1 0 0 100
5 5 3 0 1 0 150
−2 −3 4 0 0 1 0
5. Given the following simplex tableau, select the next pivot element.
x y z s1 s2 s3 P constant
4 8 9 1 0 0 0 260
−4 −6 9 0 1 0 0 80
2 1 4 0 0 1 0 390
−18 −13 −3 0 0 0 1 0
1 0 3 0 1 1 0 45
5 5
0 1 — 14 0 —3 4 0 26
5 5
0 0 — 19 1 —3 2 0 11
11 2
0 0 5 0 5 0 1 600
x=
y=
z=
s1
= s2
= s3
©Melanie Yosko This page may not be scanned, copied, or redistributed without Page 8
permission.
=P
=
©Melanie Yosko This page may not be scanned, copied, or redistributed without Page 9
permission.