Class COptQuestPermutationVariable

java.lang.Object
com.opttek.optquest.COptQuestVariable
com.opttek.optquest.COptQuestPermutationVariable

@Deprecated public class COptQuestPermutationVariable extends COptQuestVariable
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.
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 Details

    • COptQuestPermutationVariable

      public COptQuestPermutationVariable(String name)
      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