Package com.opttek.optquest
Class COptQuestSelectionGroup
java.lang.Object
com.opttek.optquest.COptQuestSelectionGroup
COptQuestSelectionGroup allows the user to have a binary variable who value indicates an on/off state,
where the off state indicates that other variables are not used in the evaluation. The OptQuest Engine maps
the dependent variables to their lower bounds when the variable indicating the state is set to the off state.
-
Constructor Summary
ConstructorDescriptionCOptQuestSelectionGroup
(COptQuestVariable selectionVariable) The constructor includes the variable that indicates the selection of an item (on/off) -
Method Summary
Modifier and TypeMethodDescriptionvoid
AddVariable
(COptQuestVariable variable) Add a dependent variable that is set to the lower bound when the selection variable is offdouble
Get the value that indicates the off settingvoid
setValueIndicatingSelectionIsOff
(double valueIndicatingSelection) Set the value that indicates the off setting.
-
Constructor Details
-
COptQuestSelectionGroup
The constructor includes the variable that indicates the selection of an item (on/off)- Parameters:
selectionVariable
- - the variable that has an on/off state to indicate the use of dependent variables in the evaluation.
-
-
Method Details
-
AddVariable
Add a dependent variable that is set to the lower bound when the selection variable is off -
getValueIndicatingSelectionIsOff
public double getValueIndicatingSelectionIsOff()Get the value that indicates the off setting -
setValueIndicatingSelectionIsOff
public void setValueIndicatingSelectionIsOff(double valueIndicatingSelection) Set the value that indicates the off setting. The default value is 0.
-