com.opttek.optquest
Class COptQuestDesignVariable

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

public class COptQuestDesignVariable
extends COptQuestDiscreteVariable

Design variables are used when value of the decision variable represents an alternative, and not a quantity. Design variables are useful in optimization problems where the decision variables consist of choosing the best alternative from a catalog, and a larger number may not imply the commitment of more resources. Therefore, choice #10 may not be a more costly or a better choice than choice #1. These variables are defined by a lower bound, an upper bound, and a step size that controls the number of choices available within the specified range.


Constructor Summary
COptQuestDesignVariable()
          Default constructor
COptQuestDesignVariable(double lowerBound, double upperBound, double step)
          Constructor that sets the lower bound and upper bound.
COptQuestDesignVariable(java.lang.String name, double lowerBound, double upperBound, double step)
          Constructor that assigns a name to the variable and sets the lower bound and upper bound.
 
Method Summary
 java.lang.String GetType()
           
 void SetExclusiveRange(double low, double high)
          Illegal method for design variables.
 
Methods inherited from class com.opttek.optquest.COptQuestDiscreteVariable
GetStepSize, 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, 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

COptQuestDesignVariable

public COptQuestDesignVariable(java.lang.String name,
                               double lowerBound,
                               double upperBound,
                               double step)
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

COptQuestDesignVariable

public COptQuestDesignVariable(double lowerBound,
                               double upperBound,
                               double step)
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

COptQuestDesignVariable

public COptQuestDesignVariable()
Default constructor

Method Detail

SetExclusiveRange

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

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

GetType

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