Package org.drip.optimization.simplex
Class StandardFormBuilder
java.lang.Object
org.drip.optimization.simplex.StandardFormBuilder
public class StandardFormBuilder
extends java.lang.Object
StandardFormBuilder builds the Standard Form 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 StandardFormBuilder(int unrestrictedVariableCount, LinearExpression objectiveFunction)
StandardFormBuilder Constructor -
Method Summary
Modifier and Type Method Description boolean
addStandardConstraint(StandardConstraint standardConstraint)
Convert the Constraint to its Standard Form and add it to the Constraint ListStandardForm
build()
Construct an Instance of Simplex CanonicalForm from the EQ/LT/GT Constraints and the Objectivejava.util.List<StandardConstraint>
eqStandardConstraintList()
Retrieve the List of Equality Constraintsjava.util.List<StandardConstraint>
gtStandardConstraintList()
Retrieve the List of Greater-Than Constraintsjava.util.List<StandardConstraint>
ltStandardConstraintList()
Retrieve the List of Less-Than ConstraintsLinearExpression
objectiveFunction()
Retrieve the Objective Functionjava.lang.String
toString()
Convert the Standard Form Builder 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
-
StandardFormBuilder
public StandardFormBuilder(int unrestrictedVariableCount, LinearExpression objectiveFunction) throws java.lang.ExceptionStandardFormBuilder Constructor- Parameters:
unrestrictedVariableCount
- Number of Unrestricted VariablesobjectiveFunction
- Objective Function- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
objectiveFunction
Retrieve the Objective Function- Returns:
- Objective Function
-
unrestrictedVariableCount
public int unrestrictedVariableCount()Retrieve the Number of Unrestricted Variables- Returns:
- Number of Unrestricted Variables
-
eqStandardConstraintList
Retrieve the List of Equality Constraints- Returns:
- List of Equality Constraints
-
gtStandardConstraintList
Retrieve the List of Greater-Than Constraints- Returns:
- List of Greater-Than Constraints
-
ltStandardConstraintList
Retrieve the List of Less-Than Constraints- Returns:
- List of Less-Than Constraints
-
addStandardConstraint
Convert the Constraint to its Standard Form and add it to the Constraint List- Parameters:
standardConstraint
- Standard Constraint- Returns:
- TRUE - Constraint converted to its Standard Form and added to the Constraint List
-
build
Construct an Instance of Simplex CanonicalForm from the EQ/LT/GT Constraints and the Objective- Returns:
- CanonicalForm Instance
-
toString
public java.lang.String toString()Convert the Standard Form Builder into a String- Overrides:
toString
in classjava.lang.Object
- Returns:
- The Standard Form Builder into a String
-