com.opttek.optquest
Class COptQuestIntegerVariable

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

public class COptQuestIntegerVariable
extends COptQuestDiscreteVariable

The COptQuestIntegerVariable class defines a decision variable whose values begin at the lower bound and increment by a 1 to the upper bound.


Constructor Summary
COptQuestIntegerVariable()
          Default constructor
COptQuestIntegerVariable(double lowerBound, double upperBound)
          Constructor that sets the lower bound and upper bound.
COptQuestIntegerVariable(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
 void SetStepSize(double stepSize)
          Illegal method for integer variables
 
Methods inherited from class com.opttek.optquest.COptQuestDiscreteVariable
GetStepSize, GetType
 
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, SetExclusiveRange, SetLowerBound, SetName, SetNumberOfPeriods, SetObservations, SetPeriodObservations, SetSuggestedValue, SetUpperBound
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COptQuestIntegerVariable

public COptQuestIntegerVariable(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

COptQuestIntegerVariable

public COptQuestIntegerVariable(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

COptQuestIntegerVariable

public COptQuestIntegerVariable()
Default constructor

Method Detail

SetStepSize

public void SetStepSize(double stepSize)
                 throws COptQuestException
Illegal method for integer variables

Overrides:
SetStepSize in class COptQuestDiscreteVariable
Parameters:
stepSize - the step size which can be any value that is less than or equal to the difference between the upper bound and the lower bound.
Throws:
COptQuestException