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
ConstructorDescriptionDefault constructorConstructor that assigns a name to the variable. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the lower bounddouble
Get the upper boundvoid
SetExclusiveRange
(double low, double high) Illegal method for permutation variablesvoid
SetLowerBound
(double value) Illegal method for permutation variablesvoid
SetUpperBound
(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:
SetLowerBound
in 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:
SetUpperBound
in 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:
SetExclusiveRange
in 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:COptQuestVariable
Get the lower bound- Overrides:
GetLowerBound
in classCOptQuestVariable
- Returns:
- lower bound
-
GetUpperBound
public double GetUpperBound()Description copied from class:COptQuestVariable
Get the upper bound- Overrides:
GetUpperBound
in classCOptQuestVariable
- Returns:
- upper bound
-