Class COptQuestEnumerationVariable


public class COptQuestEnumerationVariable extends COptQuestContinuousVariable
The COptQuestEnumerationVariable class defines a decision variable that has an enumerated set of values such as 5,7 and 25.
  • Constructor Details

    • COptQuestEnumerationVariable

      public COptQuestEnumerationVariable()
      Default constructor.
    • COptQuestEnumerationVariable

      public COptQuestEnumerationVariable(String name)
      Constructor that assigns a name to the variable.
  • Method Details

    • AddEnumerationValue

      public void AddEnumerationValue(double val)
      Adds the input value to the enumerated values for this decision variable.
    • AddEnumerationValues

      public void AddEnumerationValues(int num, double[] vals)
      The enumerated values are in the input array.
      Parameters:
      num - number of values
      vals - array of values
    • AddEnumerationValues

      public void AddEnumerationValues(String valueString)
      Add enumerated values from a string where each value is separated by a blank or a comma.
    • GetEnumerationValues

      public double[] GetEnumerationValues()
      Get enumeration values
      Returns:
      enumeration values