Package org.drip.optimization.simplex
Class PivotRun
java.lang.Object
org.drip.optimization.simplex.PivotRun
- Direct Known Subclasses:
PivotRunDiagnostics
public class PivotRun
extends java.lang.Object
PivotRun holds the Run Sequence of a Set of Pivoting Operations. 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 PivotRun()
Empty PivotRun Constructor -
Method Summary
Modifier and Type Method Description boolean
addTableauRowForColumn(int rowIndex, int columnIndex)
Add the Pivot Row Index corresponding to the Tableau Columnboolean
finiteOptimumReached()
Retrieve the Optimum Value attained Indicatorboolean
finiteOptimumReached(double[][] tableau)
Indicate if the Objective Function Coefficients indicate that the Finite Optimum has been reacheddouble
optimumValue()
Retrieve the Optimum Simplex Valuedouble[]
relativeCostCoefficientArray()
Retrieve the Array of Objective Function (i.e., Relative Cost) Coefficientsboolean
setRelativeCostCoefficientArray(double[] objectiveFunctionTableauRow)
Set the Array of Objective Function (i.e., Relative Cost) Coefficients from the Tableau Rowjava.util.Map<java.lang.Integer,java.lang.Integer>
tableauColumnToRowMap()
Retrieve the Pivot Tableau Column to Row Mapjava.lang.String
toString()
Convert the State to a JSON-like StringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
PivotRun
public PivotRun()Empty PivotRun Constructor
-
-
Method Details
-
tableauColumnToRowMap
public java.util.Map<java.lang.Integer,java.lang.Integer> tableauColumnToRowMap()Retrieve the Pivot Tableau Column to Row Map- Returns:
- Pivot Tableau Column to Row Map
-
optimumValue
public double optimumValue()Retrieve the Optimum Simplex Value- Returns:
- Optimum Simplex Value
-
finiteOptimumReached
public boolean finiteOptimumReached()Retrieve the Optimum Value attained Indicator- Returns:
- Optimum Value attained Indicator
-
relativeCostCoefficientArray
public double[] relativeCostCoefficientArray()Retrieve the Array of Objective Function (i.e., Relative Cost) Coefficients- Returns:
- Array of Objective Function (i.e., Relative Cost) Coefficients
-
addTableauRowForColumn
public boolean addTableauRowForColumn(int rowIndex, int columnIndex)Add the Pivot Row Index corresponding to the Tableau Column- Parameters:
rowIndex
- Pivot Row IndexcolumnIndex
- Tableau Column Index- Returns:
- TRUE - Pivot Row Index corresponding to the Tableau Column successfully added
-
finiteOptimumReached
public boolean finiteOptimumReached(double[][] tableau)Indicate if the Objective Function Coefficients indicate that the Finite Optimum has been reached- Parameters:
tableau
- Tableau- Returns:
- TRUE - Finite Objective Function Optimum has been reached
-
setRelativeCostCoefficientArray
public boolean setRelativeCostCoefficientArray(double[] objectiveFunctionTableauRow)Set the Array of Objective Function (i.e., Relative Cost) Coefficients from the Tableau Row- Parameters:
objectiveFunctionTableauRow
- Objective Function Tableau Row- Returns:
- TRUE - Array of Objective Function (i.e., Relative Cost) Coefficients Set
-
toString
public java.lang.String toString()Convert the State to a JSON-like String- Overrides:
toString
in classjava.lang.Object
- Returns:
- State to a JSON-like String
-