Class COptQuestStringVariable


public class COptQuestStringVariable extends COptQuestUserControlledVariable
Use COptQuestStringVariable to add a variable that is defined by an expression. The expression is a mathematical formula that can reference input variables, or output variables by their names. The expression can contain any supported mathematical function.
  • Constructor Details

    • COptQuestStringVariable

      public COptQuestStringVariable(String name, String expression)
  • Method Details

    • setDefinition

      public void setDefinition(com.opttek.optquest.OptQuestDefinition def) throws COptQuestException
      Throws:
      COptQuestException
    • CheckExpression

      public void CheckExpression() throws COptQuestException
      Checks the objective expression for syntax errors. If the expression contains errors, a COptQuestException is thrown.
      Throws:
      COptQuestException - if a problem is encountered