7.07a–7.07d - Using a simplex tableau
Set up a simplex tableau, choose a pivot and carry out an iteration using exact row operations. You will identify basic and non-basic variables, read the current feasible solution, recognise an optimum and investigate how a changed coefficient affects it.
Setting up the standard tableau
Can a table find the maximum of , subject to , and , without drawing the feasible region? The simplex algorithm does exactly that. Its table records equations; each iteration rewrites the same equations around a better feasible solution.
You already know
A slack variable records unused capacity: becomes , with . A linear objective on a non-empty bounded feasible polygon attains a maximum at a vertex.
For the opening problem, introduce and . The equations are
with . Put their coefficients into a tableau. OCR's standard layout puts the objective row first. Its columns are the objective variable, the decision variables, the slack variables and finally the right-hand side, labelled RHS.
Simplex tableau
A simplex tableau is a coefficient table for the objective equation and the constraint equations. Every row represents an equation, so a blank coefficient must be written as . For example, gives the row under .
The sign change in the objective comes from moving its variable terms to the left; it is not a change from maximising to minimising.
Worked example 1: a standard initial tableau
Question. Set up the initial simplex tableau for maximising , subject to , and .
Plan. Introduce one non-negative slack variable per constraint, move the objective terms to the left and enter all coefficients in standard order.
Why this step? The slack columns form an identity pattern, giving a starting solution with the decision variables zero.
Answer.
Check. Setting gives , and , all satisfying the equations and non-negativity restrictions.
The second example changes only the way the second inequality is written. A negative right-hand side must be dealt with before adding its slack.
Worked example 2: an equivalent reversed inequality
Question. Set up the initial simplex tableau for maximising , subject to , and .
Plan. Multiply the second inequality by , reversing its sign, then use the same slack-variable construction.
Why this step? Adding a positive slack to the unreversed inequality would give the wrong feasible set.
Answer.
Check. The model is identical to the first one: is non-negative exactly when .
This construction starts from a feasible slack basis when the constraints have been written with non-negative right-hand sides and the starting point satisfies them. A different-looking inequality must not be forced into that form by changing its meaning.
Watch out
Wrong: . Right: , because the objective is . Keep the objective first and the RHS last.
The tableau layout and the most-negative-column convention must be learnt; the pivot algorithm itself is in the formula booklet.
Basic and non-basic variables
A tableau contains more variables than constraint equations; a basis specifies which variables will be solved for and which will be set to zero.
In the initial tableau, the columns for , and each contain one and otherwise zeroes. Those columns let you read the solution , , after setting . The objective variable is included when checking the tableau's unit columns, but it is not a production quantity.
Basic and non-basic variables
A basic variable corresponds to a chosen column consisting of zeroes and a single ; the basic columns occupy different rows. The remaining variables are non-basic and are set to zero to read the current solution. For example, the initial basis contains the slack variables , with non-basic.
After one iteration of the opening problem, the tableau will be
Now has replaced in the constraint basis. Set the non-basic variables . Then , and . Notice that is non-basic even though its constraint entries look simple: its whole column is not a unit column.
Basic feasible solution
A basic feasible solution is obtained by setting the non-basic variables to zero and solving for the basic variables, with every decision and slack variable non-negative. For example, , , , is feasible. A basic solution with a negative slack is not feasible.
A basic variable is allowed to have value zero. Such a basic feasible solution is called degenerate: “basic” describes the chosen column, not whether the current value is positive. At a degenerate vertex, more than one basis may describe the same point. These definitions are not in the formula booklet: learn them.
Key idea
Set non-basic variables to zero first, then read each basic variable from the RHS in the row containing its .
The following error comes from checking only the constraint rows and forgetting the objective row.
Choosing the pivot
Choose a direction that improves the objective, then find how far the current feasible solution can move in that direction.
In the initial objective equation , increasing either or from zero increases . OCR requires the column with the most negative objective entry, unless the question specifically instructs you otherwise. Here that is the column, with entry . This rule does not promise the largest total improvement: the constraints also limit how far you can move. For example, maximising with and chooses first, giving ; choosing instead would give in one step. Follow the specified rule even when a different first move would gain more.
The simplex ratio rule
In the selected entering column of a feasible maximisation tableau, consider only positive constraint entries . Choose a row minimising the non-negative ratio
where is its RHS. The selected positive entry is the pivot element. A zero ratio is allowed; a zero or negative pivot entry is not.
In the formula booklet.
The most-negative-entry requirement is not in the formula booklet: learn it. The ratio is an upper bound on the entering variable when the other non-basic variables remain zero. Take the smallest bound, so that no slack becomes negative.
Worked example 3: the first limiting constraint
Question. Choose the first pivot for the initial tableau in Worked example 1.
Plan. Choose the most negative objective entry, then calculate RHS divided by each positive entry in that column.
Why this step? At , the second slack first reaches zero; taking would make that slack negative.
Answer. Pivot on the in row , column . The entering variable is ; leaves the basis.
Check. With , , the slacks are and .
The next example changes only the coefficient of in the objective. The feasible region is unchanged, but a different variable enters first.
Worked example 4: a changed entering column
Question. Choose the first pivot when the objective is , with the same constraints , and .
Plan. Compare the new objective coefficients and repeat the ratio test in the selected column.
Why this step? The ratio test must use the chosen column; the old -column ratios no longer answer the question.
Answer. Pivot on the in row , column . The variable enters and leaves.
Check. At , , the remaining slack is .
A coefficient imposes no bound in that direction. A negative coefficient also gives no upper bound: increasing the entering variable increases, rather than consumes, the corresponding basic variable. Do not divide by either in the ratio test. If positive pivot entries tie for the minimum ratio, either tied row may be chosen unless instructed otherwise.
Watch out
Wrong: choose the largest ratio, or use a negative ratio because its numerical value is smallest. Right: use only positive pivot entries and choose the smallest non-negative RHS-to-entry ratio.
Show the ratios when asked to show the pivot calculations. Merely circling the correct entry omits the requested working.
Performing an iteration
A pivot replaces one basic variable with the entering variable by turning the entering column into a unit column.
First divide the entire pivot row by the pivot element. Then eliminate the other entries in that column using multiples of the new pivot row. Include the objective row and the RHS in every operation.
Pivot row operations
If contains pivot element , set
where is the old entry in the pivot column of row . The pivot entry must be positive and chosen by the ratio rule.
In the formula booklet.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account