com.opttek.optquest
Class COptQuestBinaryVariable

java.lang.Object
  extended bycom.opttek.optquest.COptQuestVariable
      extended bycom.opttek.optquest.COptQuestDiscreteVariable
          extended bycom.opttek.optquest.COptQuestBinaryVariable

public class COptQuestBinaryVariable
extends COptQuestDiscreteVariable

The COptQuestBinaryVariable class defines a binary decision variable which is a discrete variable that can have a value of 0 or 1.


Constructor Summary
COptQuestBinaryVariable()
          Default constructor.
COptQuestBinaryVariable(java.lang.String name)
          Constructor that assigns a name to the binary variable.
 
Method Summary
 void SetExclusiveRange(double low, double high)
          Illegal method for binary variables.
 void SetLowerBound(double val)
          Illegal method for binary variables.
 void SetUpperBound(double val)
          Illegal method for binary variables.
 
Methods inherited from class com.opttek.optquest.COptQuestDiscreteVariable
GetStepSize, GetType, SetStepSize
 
Methods inherited from class com.opttek.optquest.COptQuestVariable
GetBestValue, GetCurrentValue, GetCurrentValue, GetExclusiveLowerBoundAt, GetExclusiveUpperBoundAt, GetLowerBound, GetName, GetNthBestValue, GetNumberOfExclusiveRanges, GetNumberOfObservations, GetNumberOfPeriods, GetObservationAt, GetObservations, GetPeriodObservationAt, GetPeriodObservations, GetSuggestedValue, GetUpperBound, SetCurrentValue, SetCurrentValue, SetName, SetNumberOfPeriods, SetObservations, SetPeriodObservations, SetSuggestedValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COptQuestBinaryVariable

public COptQuestBinaryVariable(java.lang.String name)
Constructor that assigns a name to the binary variable.

Parameters:
name - alphanumeric name. Note: The name can contain blanks or special characters. If the variable name is used in a COptQuestConstraintString equation and it contains non-alphanumeric characters, the name should be enclosed in square brackets []

COptQuestBinaryVariable

public COptQuestBinaryVariable()
Default constructor.

Method Detail

SetLowerBound

public void SetLowerBound(double val)
                   throws COptQuestException
Illegal method for binary variables.

Overrides:
SetLowerBound in class COptQuestVariable
Parameters:
val - a value between -pow(2,31) and +pow(2,31)-1
Throws:
COptQuestException

SetUpperBound

public void SetUpperBound(double val)
                   throws COptQuestException
Illegal method for binary variables.

Overrides:
SetUpperBound in class COptQuestVariable
Parameters:
val - a value between -pow(2,31) and +pow(2,31)-1
Throws:
COptQuestException

SetExclusiveRange

public void SetExclusiveRange(double low,
                              double high)
                       throws COptQuestException
Illegal method for binary variables.

Overrides:
SetExclusiveRange in class COptQuestVariable
Parameters:
low - - any value > low will be excluded
high - - any value < high will be exluded
Throws:
COptQuestException