Class COptQuestPermutationGroup

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

public class COptQuestPermutationGroup extends Object
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 Details

    • COptQuestPermutationGroup

      public COptQuestPermutationGroup()
  • Method Details

    • AddVariable

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

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

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

      public COptQuestPermutationVariable getVariableAt(int index)
    • getVariables

      public List<COptQuestPermutationVariable> getVariables()