Definition · Simplex tableauFor a standard-form programme maximise cᵀx subject to Ax = b, x ≥ 0 with A of size m × n, the tableau at a basis B is the m constraint rows together with an objective row representing z - cᵀx = 0. It is held so that each basic column is an identity column and the objective row has a zero in every basic column.
“Standard Form, Slack and Surplus” already did the work of turning inequalities into equations. Take maximise 3x₁ + 5x₂ subject to x₁ ≤ 4, 2x₂ ≤ 12, 3x₁ + 2x₂ ≤ 18; add one slack per row and the three slacks are already an identity, so the first tableau needs no work beyond writing -3 and -5 in the objective row.
x1 x2 s1 s2 s3 | rhs
s1 1 0 1 0 0 | 4
s2 0 2 0 1 0 | 12
s3 3 2 0 0 1 | 18
z -3 -5 0 0 0 | 0
Read it. The basic columns are s₁, s₂, s₃, so s₁ = 4, s₂ = 12, s₃ = 18, the nonbasic x₁ and x₂ are zero, and z = 0. That is the origin, and the three slacks at their full values say that no plant hours have been used. Nothing was solved: the right-hand column was copied out.
Definition · PivotA pivot on row r and column j with a_rj ≠ 0 is the pair of row operations: replace row r by row r ÷ a_rj, then for every other row — including the objective row — replace it by row - (its entry in column j) × (the new row r). The entering variable is x_j and the leaving variable is the one row r was carrying.
Take the pivot on row 2, column x₂, whose entry is 2. Halving row 2 makes it 1. Row 1 has a zero in column x₂ so it does not change at all. Row 3 has a 2 there, so it loses twice the new row 2. The objective row has -5, so it gains five times the new row 2.
R2' = R2 ÷ 2 [ 0 1 0 1/2 0 | 6 ]
R1' = R1 - 0·R2' [ 1 0 1 0 0 | 4 ]
R3' = R3 - 2·R2' [ 3 0 0 -1 1 | 6 ]
z' = z + 5·R2' [-3 0 0 5/2 0 | 30 ]
x1 x2 s1 s2 s3 | rhs
s1 1 0 1 0 0 | 4
x2 0 1 0 1/2 0 | 6
s3 3 0 0 -1 1 | 6
z -3 0 0 5/2 0 | 30
The basis is now {s₁, x₂, s₃}. Reading again: x₂ = 6, s₁ = 4, s₃ = 6, x₁ = 0, z = 30. That is the corner (0, 6) and the objective value listed for it in “Adjacent Corners and the Simplex Idea”. One pivot, one edge, and the new reading is free for the same reason the old one was.
Why the objective row goes through the pivot
Because it is an equation. z - 3x₁ - 5x₂ = 0 is as true as the three constraint rows, and a row operation that keeps a system equivalent has to be applied to all of it. Carry the objective row along and the bottom-right entry is always the objective value at the current basis, with no separate arithmetic to get wrong.
Leave it out and the tableau still looks finished: the constraint rows are right, the reading of x is right, and only z and the objective row entries are stale. This is the same error as dropping the constant column part-way through an elimination, which “Gaussian Elimination” named on the Algebra path, and it fails the same way — silently, with a plausible answer at the end.
A pivot you are allowed to do and should not
Any non-zero entry is a legal row operation, and the arithmetic does not care whether the result is a corner. Pivot the same tableau on row 3 and column x₂ instead and you get x₂ = 9, s₂ = -6, a bottom-right entry of 45 — higher than the true optimum of 36 — and a point, (0, 9), that is outside the region because it uses 18 of plant B's 12 hours. The tableau is a correct system throughout; what it has stopped describing is a feasible point.
Choosing the row so that this cannot happen is “The Ratio Test”, and choosing the column so that the objective actually improves is “Reduced Costs and the Optimality Test”. Until then, pivot by hand and check the right-hand column for a negative entry every time.