The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Linarith.Oracle.SimplexAlgorithm.SimplexAlgorithm
10 declarations. Mathlib docs · Source
def Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmException.ctorIdx E1 #
Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmException → ℕ
inductive Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmException E1 #
Type
An exception in the SimplexAlgorithmM monad.
ctor Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmException.infeasible E0 #
Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmException
The solution is infeasible.
abbrev Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmM E1 #
(matType : ℕ → ℕ → Type) → [Mathlib.Tactic.Linarith.SimplexAlgorithm.UsableInSimplexAlgorithm matType] → Type → Type
The monad for the Simplex Algorithm.
def Mathlib.Tactic.Linarith.SimplexAlgorithm.doPivotOperation E1 #
{matType : ℕ → ℕ → Type} →
[inst : Mathlib.Tactic.Linarith.SimplexAlgorithm.UsableInSimplexAlgorithm matType] →
ℕ → ℕ → Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmM matType Unit
Given indexes exitIdx and enterIdx of exiting and entering variables in the basic and free
arrays, performs pivot operation, i.e. expresses one through the other and makes the free one basic
and vice versa.
def Mathlib.Tactic.Linarith.SimplexAlgorithm.checkSuccess E1 #
{matType : ℕ → ℕ → Type} →
[inst : Mathlib.Tactic.Linarith.SimplexAlgorithm.UsableInSimplexAlgorithm matType] →
Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmM matType Bool
Check if the solution is found: the objective function is positive and all basic variables are nonnegative.
def Mathlib.Tactic.Linarith.SimplexAlgorithm.chooseEnteringVar E1 #
{matType : ℕ → ℕ → Type} →
[inst : Mathlib.Tactic.Linarith.SimplexAlgorithm.UsableInSimplexAlgorithm matType] →
Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmM matType ℕ
Chooses an entering variable: among the variables with a positive coefficient in the objective function, the one with the smallest index (in the initial indexing).
def Mathlib.Tactic.Linarith.SimplexAlgorithm.chooseExitingVar E1 #
{matType : ℕ → ℕ → Type} →
[inst : Mathlib.Tactic.Linarith.SimplexAlgorithm.UsableInSimplexAlgorithm matType] →
ℕ → Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmM matType ℕ
Chooses an exiting variable: the variable imposing the strictest limit on the increase of the entering variable, breaking ties by choosing the variable with smallest index.
def Mathlib.Tactic.Linarith.SimplexAlgorithm.choosePivots E1 #
{matType : ℕ → ℕ → Type} →
[inst : Mathlib.Tactic.Linarith.SimplexAlgorithm.UsableInSimplexAlgorithm matType] →
Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmM matType (ℕ × ℕ)
Chooses entering and exiting variables using Bland's rule that guarantees that the Simplex Algorithm terminates.
def Mathlib.Tactic.Linarith.SimplexAlgorithm.runSimplexAlgorithm E1 #
{matType : ℕ → ℕ → Type} →
[inst : Mathlib.Tactic.Linarith.SimplexAlgorithm.UsableInSimplexAlgorithm matType] →
Mathlib.Tactic.Linarith.SimplexAlgorithm.SimplexAlgorithmM matType Unit
Runs the Simplex Algorithm inside the SimplexAlgorithmM. It always terminates, finding solution if
such exists.