Class COptQuestPermutationGroup

java.lang.Object
com.opttek.optquest.COptQuestPermutationGroup

@Deprecated public class COptQuestPermutationGroup extends Object
Deprecated.
Use a sequence variable (COptQuestSequenceVariable) instead. Add it with OptQuestModel.AddSequenceVariable(String, String[], Integer). A sequence variable gives the same ranks, from 1 to n, and it also has a top-k mode.
Use this class 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.
See Also:
  • Constructor Details

    • COptQuestPermutationGroup

      public COptQuestPermutationGroup()
      Deprecated.
  • Method Details

    • AddVariable

      public void AddVariable(COptQuestPermutationVariable variable)
      Deprecated.
      Adds a permutation variable to the group.
    • GetNumberOfVariables

      public int GetNumberOfVariables()
      Deprecated.
      Get number of permutation variables
      Returns:
      number of permutation variables
    • ContainsVariable

      public boolean ContainsVariable(COptQuestPermutationVariable variable)
      Deprecated.
      Checks if the permutation group contains this variable.
      Returns:
      variable is in group
    • getVariableAt

      public COptQuestPermutationVariable getVariableAt(int index)
      Deprecated.
    • getVariables

      public List<COptQuestPermutationVariable> getVariables()
      Deprecated.