Package com.opttek.optquest
Class COptQuestEnumerationVariable
java.lang.Object
com.opttek.optquest.COptQuestVariable
com.opttek.optquest.COptQuestContinuousVariable
com.opttek.optquest.COptQuestEnumerationVariable
The COptQuestEnumerationVariable class defines a decision variable that
has an enumerated set of values such as 5,7 and 25.
-
Constructor Summary
ConstructorDescriptionDefault constructor.Constructor that assigns a name to the variable. -
Method Summary
Modifier and TypeMethodDescriptionvoid
AddEnumerationValue
(double val) Adds the input value to the enumerated values for this decision variable.void
AddEnumerationValues
(int num, double[] vals) The enumerated values are in the input array.void
AddEnumerationValues
(String valueString) Add enumerated values from a string where each value is separated by a blank or a comma.double[]
Get enumeration valuesMethods inherited from class com.opttek.optquest.COptQuestVariable
equals, GetDOELowerBound, GetDOEUpperBound, GetExclusiveLowerBoundAt, GetExclusiveUpperBoundAt, getID, GetLowerBound, GetName, GetNumberOfExclusiveRanges, GetStepSize, GetSuggestedValue, GetUpperBound, getVarRange, hashCode, isZeroOne, SetExclusiveRange, SetLowerBound, SetName, SetUpperBound
-
Constructor Details
-
COptQuestEnumerationVariable
public COptQuestEnumerationVariable()Default constructor. -
COptQuestEnumerationVariable
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 valuesvals
- array of values
-
AddEnumerationValues
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
-