Class COptQuestExchangeableGroup

java.lang.Object
com.opttek.optquest.COptQuestExchangeableGroup

public class COptQuestExchangeableGroup extends Object
COptQuestExchangeableGroup allows the user to create groups of variables that are identical under exchange. A common use case would be to have multiple identical machines in a factory. Putting different machines in the same location would have the same result. By putting them in an exchange group, OptQuest can avoid suggesting identical solutions.
  • Constructor Details

    • COptQuestExchangeableGroup

      public COptQuestExchangeableGroup()
  • Method Details

    • AddVariable

      public void AddVariable(COptQuestVariable variable) throws COptQuestException
      Add a variable to the ExchangeableGroup. All of the variables added to the group will be considered identical if their value are identical. If this function is used, do not use AddVariableGroup it will throw an exception
      Throws:
      COptQuestException
    • AddVariableGroup

      public void AddVariableGroup(COptQuestVariable[] variableGroup) throws COptQuestException
      Add an array of variable to the ExchangeableGroup. All of the variables added to the group will be considered identical if all of their values are the same. The primary use of this function is to add tuples of variables that when taken together are identical. If this funciton is used, do not use AddVariable, it will throw an exception. Additionally, all groups added, need to be the size. An exception will be thrown if the sizes don't match.
      Throws:
      COptQuestException