The Dual Simplex Method
Introduction and Overview
The Dual Simplex Method is a variant of the simplex algorithm used to solve linear programming problems that begin with a dual-feasible but primal-infeasible basic solution. While the standard simplex method maintains primal feasibility throughout iterations and seeks dual feasibility (optimality), the dual simplex method operates in reverse: it maintains dual feasibility while seeking primal feasibility.
The method is particularly useful in several contexts: solving problems that naturally arise in dual-feasible form, implementing cutting plane algorithms, performing sensitivity analysis, and handling problems with upper bounds on variables. It's especially valuable in integer programming branch-and-bound algorithms where cutting planes may destroy primal feasibility but preserve dual feasibility.
Mathematical Foundation
Consider the standard form linear programming problem:
Primal Problem (P):
minimize c^T x
subject to Ax = b
x ≥ 0
where A ∈ ℝ^(m×n), b ∈ ℝ^m, c ∈ ℝ^n, and x ∈ ℝ^n.
Dual Problem (D):
maximize b^T y
subject to A^T y ≤ c
y ∈ ℝ^m
where y ∈ ℝ^m represents the dual variables.
Feasibility Conditions
For a basic solution with basis B and basic variables x_B:
Primal Feasibility: x_B = B^(-1)b ≥ 0
Dual Feasibility: For nonbasic variables x_j, the reduced costs must satisfy:
c̄_j = c_j - c_B^T B^(-1) A_j ≥ 0 (for minimization problems)
where c_B represents the costs of basic variables and A_j represents the j-th column of A.
Fundamental Insight
The dual simplex method exploits the fact that if we have a basic solution that is dual feasible but primal infeasible, we can restore primal feasibility by pivoting operations while maintaining dual feasibility. The key insight is that we can identify a leaving variable from the primal infeasible basic variables and find an entering variable that maintains dual feasibility.
The Dual Simplex Algorithm
Optimality and Termination Conditions
A basic solution is optimal if and only if it satisfies both primal and dual feasibility conditions. The dual simplex method terminates when:
- Primal feasibility is achieved (optimal solution found), or
- The problem is determined to be infeasible
Unboundedness Detection
The dual problem is unbounded (equivalently, the primal is infeasible) if during the leaving variable selection, we find a basic variable x_r with x_r < 0, but all coefficients in the corresponding row of the simplex tableau are non-negative.
Step-by-Step Procedure
Step 1: Initialize
Start with a basic solution that is dual feasible but may be primal infeasible. Set up the initial simplex tableau:
| x_B | x_N | RHS |
----|----|----|----|
y_B | I | B^(-1)N | B^(-1)b |
----|----|----|----|
z | 0^T | c̄_N^T | -c_B^T B^(-1)b |
where:
- I is the m×m identity matrix
- N represents the nonbasic columns
- c̄_N^T are the reduced costs of nonbasic variables
- The RHS column shows the basic variable values
Step 2: Check Optimality
If B^(-1)b ≥ 0, the current solution is primal feasible. Since we maintain dual feasibility throughout, this solution is optimal. STOP.
Step 3: Select Leaving Variable
Choose the leaving variable using the most negative rule or Bland's rule to prevent cycling:
Most Negative Rule: Select r such that:
(B^(-1)b)_r = min{(B^(-1)b)_i : (B^(-1)b)_i < 0, i = 1,...,m}
Bland's Rule: Select the smallest index r such that (B^(-1)b)_r < 0.
Step 4: Check for Infeasibility
Let ā_rj = (B^(-1)A_j)_r be the r-th component of the transformed column A_j.
If ā_rj ≥ 0 for all nonbasic variables j, then the primal problem is infeasible. STOP.
Step 5: Select Entering Variable
Choose the entering variable to maintain dual feasibility. For minimization problems, select s such that:
c̄_s / |ā_rs| = min{c̄_j / |ā_rj| : ā_rj < 0, j ∈ nonbasic indices}
This ratio test ensures that dual feasibility is maintained after pivoting.
Step 6: Pivot Operation
Perform the pivot operation with pivot element ā_rs:
- Normalize pivot row: Divide row r by ā_rs
- Eliminate pivot column: For each row i ≠ r, replace row i with:
row_i - ā_is × (new row r)
- Update basis: Replace the r-th basic variable with variable s
- Update reduced costs: Update the objective row using the same elimination operations
Step 7: Iterate
Return to Step 2 with the new basic solution.
Detailed Example
Consider the linear program:
minimize -3x₁ - 2x₂
subject to x₁ + x₂ ≤ 4
2x₁ + x₂ ≤ 6
-x₁ + x₂ ≤ 1
x₁, x₂ ≥ 0
Converting to standard form by adding slack variables:
minimize -3x₁ - 2x₂ + 0s₁ + 0s₂ + 0s₃
subject to x₁ + x₂ + s₁ = 4
2x₁ + x₂ + s₂ = 6
-x₁ + x₂ + s₃ = 1
x₁, x₂, s₁, s₂, s₃ ≥ 0
Suppose we start with a basic solution that is dual feasible but primal infeasible (this might arise in practice from adding a cut or changing the right-hand side). The dual simplex method would then systematically restore primal feasibility while maintaining dual feasibility through the pivoting process described above.
Theoretical Properties
Convergence: Under non-degeneracy assumptions or with appropriate pivot rules (such as Bland's rule), the dual simplex method converges in a finite number of iterations.
Duality: The method maintains the complementary slackness conditions throughout the iterations, ensuring that when primal feasibility is restored, the solution is optimal.
Relationship to Sensitivity Analysis: The dual simplex method is particularly valuable for post-optimality analysis, as it efficiently handles changes to the right-hand side vector b that may destroy primal feasibility.
The dual simplex method represents a powerful computational tool that complements the standard simplex method, providing flexibility in solving linear programming problems from different starting points and handling various practical scenarios in optimization.