Package com.opttek.optquest
Class COptQuestExchangeableGroup
java.lang.Object
com.opttek.optquest.COptQuestExchangeableGroup
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAddVariable(COptQuestVariable variable) Add a variable to the ExchangeableGroup.voidAddVariableGroup(COptQuestVariable[] variableGroup) Add an array of variable to the ExchangeableGroup.
-
Constructor Details
-
COptQuestExchangeableGroup
public COptQuestExchangeableGroup()
-
-
Method Details
-
AddVariable
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
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
-