Package org.drip.optimization.simplex
Class StandardPolytope
java.lang.Object
org.drip.optimization.simplex.StandardPolytope
public class StandardPolytope
extends java.lang.Object
StandardPolytope implements the Standard Constraint Polytope of the Simplex Scheme. The References
are:
- Dadush, D., and S. Huiberts (2020): A Friendly Smoothed Analysis of the Simplex Method SIAM Journal on Computing 49 (5) 449-499
- Dantzig, G. B., and M. N. Thapa (1997): Linear Programming 1: Introduction Springer-Verlag New York NY
- Murty, K. G. (1983): Linear Programming John Wiley and Sons New York NY
- Nering, E. D., and A. W. Tucker (1993): Linear Programs and Related Problems Academic Press Cambridge MA
- Padberg, M. (1999): Linear Optimization and Extensions 2nd Edition Springer-Verlag New York NY
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description StandardPolytope(int unrestrictedVariableCount, StandardConstraint[] standardConstraintArray)
StandardPolytope Constructor -
Method Summary
Modifier and Type Method Description int
constraintCount()
Retrieve the Constraint Countint
dimension()
Retrieve the Constraint Dimensionint
slackVariableCount()
Retrieve the Slack Variable CountStandardConstraint[]
standardConstraintArray()
Retrieve the Array of StandardConstraint'sdouble[][]
tableauA()
Construct the Tableau Adouble[]
tableauB()
Construct the Tableau Bint
tableauRowSize()
Compute the Size of a Tableau Rowjava.lang.String
toString()
Convert the Standard Polytope into a Stringint
unrestrictedVariableCount()
Retrieve the Number of Unrestricted VariablesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
StandardPolytope
public StandardPolytope(int unrestrictedVariableCount, StandardConstraint[] standardConstraintArray) throws java.lang.ExceptionStandardPolytope Constructor- Parameters:
unrestrictedVariableCount
- Number of Unrestricted VariablesstandardConstraintArray
- Array of StandardConstraint's- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
unrestrictedVariableCount
public int unrestrictedVariableCount()Retrieve the Number of Unrestricted Variables- Returns:
- Number of Unrestricted Variables
-
standardConstraintArray
Retrieve the Array of StandardConstraint's- Returns:
- Array of StandardConstraint's
-
dimension
public int dimension()Retrieve the Constraint Dimension- Returns:
- Constraint Dimension
-
constraintCount
public int constraintCount()Retrieve the Constraint Count- Returns:
- Constraint Count
-
tableauRowSize
public int tableauRowSize()Compute the Size of a Tableau Row- Returns:
- Size of a Tableau Row
-
tableauA
public double[][] tableauA()Construct the Tableau A- Returns:
- Tableau A
-
tableauB
public double[] tableauB()Construct the Tableau B- Returns:
- Tableau B
-
slackVariableCount
public int slackVariableCount()Retrieve the Slack Variable Count- Returns:
- Slack Variable Count
-
toString
public java.lang.String toString()Convert the Standard Polytope into a String- Overrides:
toString
in classjava.lang.Object
- Returns:
- The Standard Polytope into a String
-