Package com.opttek.optquest
Class COptQuestPermutationGroup
java.lang.Object
com.opttek.optquest.COptQuestPermutationGroup
This class allows users to add groups of permutation variables to an
optimization problem. Permutation variables within each group are sequenced.
Values of variables added to the permutation group will range from 1 to the
value returned by
GetNumberOfVariables
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddVariable
(COptQuestPermutationVariable variable) Adds a permutation variable to the group.boolean
ContainsVariable
(COptQuestPermutationVariable variable) Checks if the permutation group contains this variable.int
Get number of permutation variablesgetVariableAt
(int index)
-
Constructor Details
-
COptQuestPermutationGroup
public COptQuestPermutationGroup()
-
-
Method Details
-
AddVariable
Adds a permutation variable to the group. -
GetNumberOfVariables
public int GetNumberOfVariables()Get number of permutation variables- Returns:
- number of permutation variables
-
ContainsVariable
Checks if the permutation group contains this variable.- Returns:
- variable is in group
-
getVariableAt
-
getVariables
-