Package com.opttek.optquest
Class COptQuestEquationSolver
java.lang.Object
com.opttek.optquest.COptQuestEquationSolver
The COptQuestEquationSolver class provides methods to parse strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMakes the decision variable available to the parsing methods.voidMakes the input array of decision variables available to the parsing methods.GetLHSString(String equation) Returns everything before the ≤, =, or ≥ operator.GetOperatorString(String equation) Returns the operator ≤, =, or ≥GetRHSString(String equation) Returns everything after the operator where the operator is ≤, =, ≥.
-
Constructor Details
-
COptQuestEquationSolver
public COptQuestEquationSolver()Default constructor
-
-
Method Details
-
AddVariable
Makes the decision variable available to the parsing methods. -
AddVariables
Makes the input array of decision variables available to the parsing methods. -
GetRHSString
Returns everything after the operator where the operator is ≤, =, ≥.- Returns:
- the right hand side string.
-
GetLHSString
Returns everything before the ≤, =, or ≥ operator.- Returns:
- the left hand side string
-
GetOperatorString
Returns the operator ≤, =, or ≥
-