com.opttek.optquest
Class COptQuestContinuousVariable

java.lang.Object
  extended bycom.opttek.optquest.COptQuestVariable
      extended bycom.opttek.optquest.COptQuestContinuousVariable
Direct Known Subclasses:
COptQuestProjectVariable

public class COptQuestContinuousVariable
extends COptQuestVariable

The COptQuestContinuousVariable class defines a decision variable that can have any value between the lower bound and upper bound.


Constructor Summary
COptQuestContinuousVariable()
          Default constructor
COptQuestContinuousVariable(double lowerBound, double upperBound)
          Constructor that sets the lower bound and upper bound.
COptQuestContinuousVariable(java.lang.String name)
          Constructor that assigns a name to the variable.
COptQuestContinuousVariable(java.lang.String name, double lowerBound, double upperBound)
          Constructor that assigns a name to the variable and sets the lower bound and upper bound.
 
Method Summary
 java.lang.String GetType()
           
 
Methods inherited from class com.opttek.optquest.COptQuestVariable
GetBestValue, GetCurrentValue, GetCurrentValue, GetExclusiveLowerBoundAt, GetExclusiveUpperBoundAt, GetLowerBound, GetName, GetNthBestValue, GetNumberOfExclusiveRanges, GetNumberOfObservations, GetNumberOfPeriods, GetObservationAt, GetObservations, GetPeriodObservationAt, GetPeriodObservations, GetStepSize, GetSuggestedValue, GetUpperBound, SetCurrentValue, SetCurrentValue, SetExclusiveRange, SetLowerBound, SetName, SetNumberOfPeriods, SetObservations, SetPeriodObservations, SetStepSize, SetSuggestedValue, SetUpperBound
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COptQuestContinuousVariable

public COptQuestContinuousVariable(java.lang.String name,
                                   double lowerBound,
                                   double upperBound)
Constructor that assigns a name to the variable and sets the lower bound and upper bound.

Parameters:
name - alphanumeric name. Note: the name can contain blanks or special characters. If the variable name is used in a COptQuestStringConstraint equation, the name should be enclosed in square brackets [] in the COptQuestStringConstraint string equation.
lowerBound - a value between -pow(2,31) and +pow(2,31)-1
upperBound - a value between -pow(2,31) and +pow(2,31)-1

COptQuestContinuousVariable

public COptQuestContinuousVariable(double lowerBound,
                                   double upperBound)
Constructor that sets the lower bound and upper bound.

Parameters:
lowerBound - a value between -pow(2,31) and +pow(2,31)-1
upperBound - a value between -pow(2,31) and +pow(2,31)-1

COptQuestContinuousVariable

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

Parameters:
name - alphanumeric name. Note: the name can contain blanks or special characters. If the variable name is used in a COptQuestStringConstraint equation, the name should be enclosed in square brackets [] in the COptQuestStringConstraint string equation.

COptQuestContinuousVariable

public COptQuestContinuousVariable()
Default constructor

Method Detail

GetType

public java.lang.String GetType()
Overrides:
GetType in class COptQuestVariable