Class COptQuestEquationSolver

java.lang.Object
com.opttek.optquest.COptQuestEquationSolver

public class COptQuestEquationSolver extends Object
The COptQuestEquationSolver class provides methods to parse strings.
  • Constructor Details

    • COptQuestEquationSolver

      public COptQuestEquationSolver()
      Default constructor
  • Method Details

    • AddVariable

      public void AddVariable(COptQuestVariable var)
      Makes the decision variable available to the parsing methods.
    • AddVariables

      public void AddVariables(ArrayList<COptQuestVariable> vars)
      Makes the input array of decision variables available to the parsing methods.
    • GetRHSString

      public String GetRHSString(String equation)
      Returns everything after the operator where the operator is ≤, =, ≥.
      Returns:
      the right hand side string.
    • GetLHSString

      public String GetLHSString(String equation)
      Returns everything before the ≤, =, or ≥ operator.
      Returns:
      the left hand side string
    • GetOperatorString

      public String GetOperatorString(String equation)
      Returns the operator ≤, =, or ≥