Package com.opttek.optquest
Class COptQuestPermutationVariable
java.lang.Object
com.opttek.optquest.COptQuestVariable
com.opttek.optquest.COptQuestPermutationVariable
Deprecated.
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 is its 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
ConstructorsConstructorDescriptionDeprecated.Default constructorDeprecated.Constructor that assigns a name to the variable. -
Method Summary
Modifier and TypeMethodDescriptiondoubleDeprecated.Get the lower bounddoubleDeprecated.Get the upper boundvoidSetExclusiveRange(double low, double high) Deprecated.Illegal method for permutation variablesvoidSetLowerBound(double value) Deprecated.Illegal method for permutation variablesvoidSetUpperBound(double value) Deprecated.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
Deprecated.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()Deprecated.Default constructor
-
-
Method Details
-
SetLowerBound
Deprecated.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
Deprecated.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
Deprecated.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()Deprecated.Description copied from class:COptQuestVariableGet the lower bound- Overrides:
GetLowerBoundin classCOptQuestVariable- Returns:
- lower bound
-
GetUpperBound
public double GetUpperBound()Deprecated.Description copied from class:COptQuestVariableGet the upper bound- Overrides:
GetUpperBoundin classCOptQuestVariable- Returns:
- upper bound
-
COptQuestSequenceVariable) instead. Add it withOptQuestModel.AddSequenceVariable(String, String[], Integer). A sequence variable gives the same ranks, from 1 to n, and it also has a top-k mode.