The simplex method with Dantzig's rule #
This module defines the simplex method with Dantzig's largest-coefficient rule
([Chv83], Chapter 4) on the dictionaries of
CslibFrontier.Algorithms.Lean.Simplex.Dictionary,
and proves that it is sound: when it stops, its answer is correct.
Algorithm #
In a dictionary D (dantzigStep):
- if no nonbasic variable has a positive reduced cost,
Dis optimal; - otherwise the entering variable
sis a nonbasic variable of largest reduced cost, the smallest one in case of ties (dantzigEntering); - the leaving variable is chosen by the ratio test as in Bland's rule (
blandLeaving): the smallest basic variable among those withcoeff i s < 0minimizingrhs i / -coeff i s; if there is none, the objective is unbounded along the edge ofs.
dantzigRun D fuel iterates at most fuel pivots: it is runWith with Dantzig's rule, so its
soundness is that of runWith, applied to the step lemmas of this module.
Main definitions #
Cslib.Algorithms.Lean.Simplex.Dictionary.dantzigEntering: Dantzig's entering rule.Cslib.Algorithms.Lean.Simplex.Dictionary.dantzigStep: one step with Dantzig's rule.Cslib.Algorithms.Lean.Simplex.Dictionary.dantzigRun: the simplex method with Dantzig's rule and at mostfuelpivots.
Main results #
Dictionary.dantzigRun_eq_optimal,Dictionary.dantzigRun_eq_unbounded: soundness. A run that stops returns an equivalent feasible dictionary that is optimal, or certifies that the objective is unbounded.
Limitations #
Dantzig's rule can cycle on degenerate programs (Chvátal's cycling example, [Chv83],
Chapter 3, is among the worked examples of the test suite), so no termination theorem holds in
general. On the Klee–Minty programs it takes 2 ^ n - 1 pivots
(CslibFrontier.Algorithms.Lean.Simplex.KleeMinty).
References #
Dantzig's entering rule ([Chv83], Chapter 4): a nonbasic variable with the largest positive reduced cost, the smallest one in case of ties.
One step of the simplex method with Dantzig's entering rule and the smallest-index ratio test.
A pivot of Dantzig's rule preserves feasibility, equivalence and does not decrease the objective.
The simplex method with Dantzig's rule #
The simplex method with Dantzig's rule and at most fuel pivots.
Soundness of Dantzig's rule, optimal case: a run that stops at an optimal dictionary
D' returns an equivalent feasible dictionary with no positive reduced cost, so its basic
solution attains the maximum D'.objConst (Dictionary.isGreatest_value).
Soundness of Dantzig's rule, unbounded case: a run that stops with an unbounded entering
variable s returns an equivalent feasible dictionary in which s is nonbasic with a positive
reduced cost and no row bounds its increase, so the objective is unbounded
(Dictionary.not_bddAbove_value).