Package com.opttek.optquest
Class COptQuestContinuousVariable
java.lang.Object
com.opttek.optquest.COptQuestVariable
com.opttek.optquest.COptQuestContinuousVariable
- Direct Known Subclasses:
COptQuestEnumerationVariable
,COptQuestProjectVariable
The COptQuestContinuousVariable class defines a decision variable that can have
any value between the lower bound and upper bound.
-
Constructor Summary
ConstructorDescriptionDefault constructorCOptQuestContinuousVariable
(double lowerBound, double upperBound) Constructor that sets the lower bound and upper bound.Constructor that assigns a name to the variable.COptQuestContinuousVariable
(String name, double lowerBound, double upperBound) Constructor that assigns a name to the variable and sets the lower bound and upper bound. -
Method Summary
Methods 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
-
COptQuestContinuousVariable
Constructor that assigns a name to the variable and sets the lower bound and upper bound.- Parameters:
name
- alphanumeric name. Note: the name can contain blanks or special characters. If the variable name is used in a COptQuestStringConstraint equation, the name should be enclosed in square brackets [] in the COptQuestStringConstraint string equation.lowerBound
- a value between -pow(2,31) and +pow(2,31)-1upperBound
- a value between -pow(2,31) and +pow(2,31)-1
-
COptQuestContinuousVariable
public COptQuestContinuousVariable(double lowerBound, double upperBound) Constructor that sets the lower bound and upper bound.- Parameters:
lowerBound
- a value between -pow(2,31) and +pow(2,31)-1upperBound
- a value between -pow(2,31) and +pow(2,31)-1
-
COptQuestContinuousVariable
Constructor that assigns a name to the variable.- Parameters:
name
- alphanumeric name. Note: the name can contain blanks or special characters. If the variable name is used in a COptQuestStringConstraint equation, the name should be enclosed in square brackets [] in the COptQuestStringConstraint string equation.
-
COptQuestContinuousVariable
public COptQuestContinuousVariable()Default constructor
-