Package com.opttek.optquest
Class COptQuestPermutationVariable
java.lang.Object
com.opttek.optquest.COptQuestVariable
com.opttek.optquest.COptQuestPermutationVariable
Permutation variables are used to solve sequencing problems.
For example, you could use permutation variables to determine the order in
which paint should be mixed to minimize cleanup time between color changes.
The value of a permutation variable represents it's position within the sequence.
Permutation variables to be sequenced together should be added to a
COptQuestPermutationGroup.
Permutation variables not added to a Permutation group will be treated
as if they were added to a common global permutation group.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorConstructor that assigns a name to the variable. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the lower bounddoubleGet the upper boundvoidSetExclusiveRange(double low, double high) Illegal method for permutation variablesvoidSetLowerBound(double value) Illegal method for permutation variablesvoidSetUpperBound(double value) Illegal method for permutation variablesMethods inherited from class com.opttek.optquest.COptQuestVariable
equals, GetDOELowerBound, GetDOEUpperBound, GetExclusiveLowerBoundAt, GetExclusiveUpperBoundAt, getID, GetName, GetNumberOfExclusiveRanges, GetStepSize, GetSuggestedValue, getVarRange, hashCode, isZeroOne, SetName
-
Constructor Details
-
COptQuestPermutationVariable
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.
-
COptQuestPermutationVariable
public COptQuestPermutationVariable()Default constructor
-
-
Method Details
-
SetLowerBound
Illegal method for permutation variables- Overrides:
SetLowerBoundin classCOptQuestVariable- Parameters:
value- a value between -pow(2,31) and +pow(2,31)-1- Throws:
COptQuestException- if invalid bounds provided
-
SetUpperBound
Illegal method for permutation variables- Overrides:
SetUpperBoundin classCOptQuestVariable- Parameters:
value- a value between -pow(2,31) and +pow(2,31)-1- Throws:
COptQuestException- if invalid bounds provided
-
SetExclusiveRange
Illegal method for permutation variables- Overrides:
SetExclusiveRangein classCOptQuestVariable- Parameters:
low- - any value > low will be excludedhigh- - any value < high will be excluded- Throws:
COptQuestException- if invalid range provided
-
GetLowerBound
public double GetLowerBound()Description copied from class:COptQuestVariableGet the lower bound- Overrides:
GetLowerBoundin classCOptQuestVariable- Returns:
- lower bound
-
GetUpperBound
public double GetUpperBound()Description copied from class:COptQuestVariableGet the upper bound- Overrides:
GetUpperBoundin classCOptQuestVariable- Returns:
- upper bound
-