Class LinearSystem
java.lang.Object
org.clafer.math.LinearSystem
- Author:
- jimmy
-
Constructor Summary
ConstructorsConstructorDescriptionLinearSystem(Collection<LinearEquation> equations) LinearSystem(LinearEquation... equations) -
Method Summary
Modifier and TypeMethodDescriptionaddEquations(Collection<LinearEquation> equations) addEquations(LinearEquation[] equations) Remove some redundant constraints that are never useful.Create redundant constraints based on Fourier-Motzkin elimination.Create redundant constraints based on Gauss-Jordan elimination.If a ≤ b and -b ≤ a, then replace with a = b.toString()
-
Constructor Details
-
LinearSystem
-
LinearSystem
-
-
Method Details
-
getEquations
-
addEquations
-
addEquations
-
gaussJordanElimination
Create redundant constraints based on Gauss-Jordan elimination. "Propagating systems of dense linear integer constraints" by Thibaut Feydy and Peter J. Stuckey.- Returns:
- a linear system with redundant constraints
-
equalityElimination
-
fourierMotzkinElimination
Create redundant constraints based on Fourier-Motzkin elimination. "Propagating systems of dense linear integer constraints" by Thibaut Feydy and Peter J. Stuckey.- Returns:
- a linear system with redundant constraints
-
strengthenInequalities
If a ≤ b and -b ≤ a, then replace with a = b.- Returns:
- a linear system with fewer inequalities
-
dominantElimination
Remove some redundant constraints that are never useful.- Returns:
- a linear system with less redundant constraints
-
toString
-