Class COptQuestSelectionGroup

java.lang.Object
com.opttek.optquest.COptQuestSelectionGroup

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

    • COptQuestSelectionGroup

      public COptQuestSelectionGroup(COptQuestVariable selectionVariable)
      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

      public void AddVariable(COptQuestVariable variable)
      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.