Linear programming practice
Original practice questions (PDF)
These exercises use the standard form , where has rank . A basis has indices and an invertible . It gives a basic feasible solution (BFS) when and .
1. Slack variables and free variables
Rewrite subject to , , and in standard form. Introduce a slack variable, split the free variable, and specify the decision vector and data.
Solution to exercise 1
Set and use slack . For , take The equality is .
2. Active constraints
Let and .
- List the active constraints at .
- Write the slack form of and give the slack at .
Solution to exercise 2
The active constraints are and . The inequality has strict slack. The slack equation is , with . At , .
3. Feasibility and the column cone
Let with , , and . For , decide whether is feasible by checking membership in the column cone. If feasible, give a nonnegative combination.
Solution to exercise 3
Since , it belongs to the column cone. The combination gives the feasible vector .
4. Fewer cone generators
Use the same columns as in Exercise 3. The vector equals . Find a nonnegative representation using at most two generators, as guaranteed by the conic version of Carathéodory’s theorem.
Solution to exercise 4
Use to combine terms. Then .
5. Enumerating bases
For , , and , list every basis that gives a BFS, and give the corresponding .
Solution to exercise 5
All three pairs of columns are linearly independent. The pair gives . Each of and gives . There are three feasible bases and two distinct basic feasible points.
6. Exposing a basic feasible point
Let be a BFS of with basis . Construct so that is the unique minimizer of over , and use that fact to show is a vertex.
Solution to exercise 6
Set for and otherwise. Every feasible cost is nonnegative, and has cost zero. Any feasible point of cost zero has , which forces . If were a strict convex combination of distinct feasible points, both would have cost zero by linearity, contradicting uniqueness.
7. One simplex pivot
Consider , , and . Start at the BFS with basis .
- Give the basic direction for entering index 3.
- Compute and decide whether the direction improves the objective.
- Find the largest with and give a new basis.
Solution to exercise 7
Here . The basic coordinates of the direction solve , so . Its reduced cost is , so a positive step lowers the objective. The ratio test gives . Index 1 leaves, giving with basis .
8. The reduced-cost optimality test
Define the reduced cost for . Prove that a BFS with for all is optimal. Does the proof require a nondegenerate BFS?
Solution to exercise 8
For , set . For any feasible , The proof also holds at a degenerate BFS. Degeneracy can instead cause a zero-length pivot when an entering index has negative reduced cost. The PDF asks why the sufficient optimality proof fails, but that premise is false.
9. Vertices and reduced costs
Minimize subject to , , and .
- List the BFS by choosing pairs of active constraints.
- Compute each objective value and identify the optimal BFS.
- Verify its optimality with reduced costs.
Solution to exercise 9
The vertices have respective objective values . At the last vertex, introduce slacks and take as the basic variables. The row multipliers solving are . The nonbasic reduced costs are for and for , so the vertex is optimal.
10. Feasible directions at a BFS
For , start from a nondegenerate BFS with . What must satisfy for to be feasible for some ? Give generators for the cone of such directions. Consider setting one nonbasic component to 1 and the others to 0.
Solution to exercise 10
Feasibility for a positive step requires and . These conditions suffice because leaves room for a sufficiently small step in the basic coordinates. For each , set the nonbasic coordinates of to the corresponding unit vector and . Every feasible direction is with .
11. An initial basis for the auxiliary LP
Minimize subject to and , where is diagonal with for and otherwise.
- What conditions must a BFS satisfy?
- Give a BFS for the auxiliary problem.
- If the original LP with and is feasible, what is the optimal value of the auxiliary problem?
Solution to exercise 11
A BFS satisfies the constraints and has an invertible set of columns of with all other variables zero. Use the columns of as the basis, with and entrywise. When is feasible for the original LP, is feasible for the auxiliary LP and has objective zero. The objective is always nonnegative, so zero is optimal.