The standard simplex method needs an obvious starting basic feasible solution (BFS) — typically the slack variables. But for LPPs with = or ≥ constraints, there is no immediate identity submatrix to use as the basis. To create one, we add artificial variables with a large penalty in the objective.
Two popular approaches use this idea:
Big-M (penalty) method — assign artificial variables a coefficient of \(+M\) (where \(M\) is a very large positive number) in a minimisation problem, or \(-M\) in a maximisation problem.
Two-Phase method — minimise the sum of artificials first; once they leave the basis, solve the actual LPP.
2. Big-M (Charnes Penalty) Method
Steps
Convert all \(\ge\) and = constraints to equalities; add a non-negative surplus for ≥ and an artificial for both.
In the objective function, give each artificial variable a coefficient of \(+M\) (for Min) or \(-M\) (for Max), where \(M\) is so large that no optimal solution will keep an artificial positive.
Set up the initial simplex tableau with artificials as the starting basis.
Apply the regular simplex algorithm.
Interpretation of final tableau:
If no artificial appears in the basis (or all artificial basic variables = 0): optimal solution found.
If any artificial remains positive at optimality: the original LPP is infeasible.
For Min, we want all \(c_j - Z_j \ge 0\). Both \(x_1\,(5 - 3M)\) and \(x_2\,(4 - 3M)\) are strongly negative for large \(M\), so either may enter; we bring in \(x_1\) (both choices reach the same optimum). Smallest θ ratio = 6 ⇒ row 1 leaves; pivot at (1, x₁) with element 2.
Step 3 — Iteration 2
Normalise row 1 (divide by 2), then eliminate x₁ from row 2 (subtract row 1).
cB
Basis
xB
x₁ (5)
x₂ (4)
s₁ (0)
s₂ (0)
A₂ (M)
θ
5
x₁
6
1
1/2
−1/2
0
0
6/(1/2) = 12
M
A₂
6
0
3/2
1/2
−1
1
6/(3/2) = 4
Zj
30+6M
5
5/2 + 3M/2
−5/2 + M/2
−M
M
cj−Zj
0
3/2 − 3M/2
5/2 − M/2
M
0
Most negative is \(3/2 - 3M/2\) ⇒ x₂ enters; smallest ratio = 4 ⇒ A₂ leaves; pivot = 3/2.
Step 4 — Iteration 3 (Final)
After pivoting, the basis becomes \(\{x_1, x_2\}\) with values \(x_1 = 4, x_2 = 4\), Z = 5(4) + 4(4) = 36.
All artificials have left the basis ⇒ feasible. Check optimality: all \(c_j - z_j \ge 0\) ⇒ optimum.
An alternative to Big-M that avoids the algebraic awkwardness of a large symbolic \(M\). It proceeds in two phases:
Phase 1 — Minimise the sum of artificial variables (\(W = \sum A_i\)). If \(W = 0\) at the end of Phase 1, a feasible BFS to the original LPP has been found; otherwise the original LPP is infeasible.
Phase 2 — Use the BFS from Phase 1 (with artificials dropped) and the original objective function. Apply standard simplex.
After two iterations the artificials are eliminated and \(W = 0\), giving BFS \((x_1, x_2) = (4, 4)\). Phase 1 successful.
Phase 2
Use the BFS \((x_1 = 4, x_2 = 4)\) with the original objective Min \(Z = 5 x_1 + 4 x_2\). Compute \(c_j - z_j\) ⇒ already all ≥ 0 ⇒ optimal.
Solution: Same as Big-M: \(x_1 = 4, x_2 = 4, Z_{\min} = 36\).
Big-M vs Two-Phase — Comparison
Aspect
Big-M
Two-Phase
How handles artificials
Large penalty M in objective
Auxiliary objective W in Phase 1
Numerical stability
Sensitive to choice of M
More stable; avoids large numbers
Pen-and-paper feel
One pass
Two passes
Used in software
Rare
More common
4. Degeneracy in LPP
DEFINITION
A basic feasible solution is degenerate if one or more basic variables take the value zero. In the simplex method, degeneracy is detected by a tie in the minimum-ratio test.
Why is degeneracy a problem?
Multiple BFSs may correspond to the same vertex.
It can cause cycling — the algorithm could (theoretically) loop forever among degenerate BFSs without improving \(Z\). In practice cycling is rare but possible.
Methods to Resolve Degeneracy
Perturbation method (Charnes) — add small perturbations \(\epsilon, \epsilon^2, \ldots\) to the right-hand sides, breaking ties in the ratio test.
Bland's rule — always choose as entering variable the lowest-indexed variable that would improve \(Z\), and break ties in the ratio test by the lowest index. Guarantees no cycling but can slow convergence.
Lexicographic rule — compare entire rows lexicographically to choose the leaving variable.
EXAMPLE 1
Consider an LPP whose simplex tableau gives, at some iteration, two rows with identical ratios. Pick any one of them as the pivot row (or apply Bland's rule). The iteration may produce a BFS with one basic variable = 0 — that's degeneracy. Proceed with the next iteration; the algorithm should still terminate.
5. Special Cases via the Simplex Method
5.1 Alternative (Multiple) Optimal Solutions
Detection: In the final simplex tableau, a non-basic variable has \(c_j - z_j = 0\). It can enter the basis without changing \(Z\), giving another optimal BFS.
The set of optimal solutions is the convex combination of these alternative BFSs.
5.2 Unbounded Solution
Detection: The entering column has all non-positive entries. No row gives a positive ratio ⇒ the entering variable can be increased indefinitely without violating any constraint. \(Z\) is unbounded.
5.3 Infeasible Solution
Detection: At optimality of the Big-M (or Phase 1 of Two-Phase), an artificial variable remains in the basis with a positive value. There is no feasible solution.
5.4 Degenerate Solution
Detection: A basic variable in the optimum BFS equals zero, or a tie occurs in a minimum-ratio test.
Indication in tableau
Meaning
Non-basic variable has \(c_j - z_j = 0\) at optimum
Alternative optima
Entering column has all ≤ 0 entries
Unbounded
Artificial variable basic at positive value at end
Infeasible
Tie in min-ratio test / basic variable = 0
Degenerate
6. Solving Simultaneous Equations via Simplex
The simplex method's pivoting machinery can solve a system of linear equations \(A\mathbf{x} = \mathbf{b}\) — treat the system as the equality constraints of an LPP with a dummy objective.
Procedure
Make every right-hand side non-negative (multiply an equation by \(-1\) if needed). The simplex keeps every variable \(\ge 0\), so a variable that may be negative is written as \(x_j = x_j' - x_j''\) first. Then add an artificial variable to each equation (since they are equalities).
Minimise \(W = \sum A_i\) (Phase 1 only — no real objective needed).
If \(W = 0\) at the end, the values of \(x_j\) form the unique solution (if the system has one).
If \(W > 0\), the system has no solution with the variables as restricted: it is inconsistent if every variable was allowed both signs; otherwise it may still have a solution with some \(x_j < 0\).