com.opttek.optquest
Class COptQuestUpperRequirement

java.lang.Object
  extended bycom.opttek.optquest.COptQuestRequirement
      extended bycom.opttek.optquest.COptQuestUpperRequirement
Direct Known Subclasses:
COptQuestPortfolioUpperRequirement

public class COptQuestUpperRequirement
extends COptQuestRequirement

The COptQuestUpperRequirement defines a requirement that has an upper bound but no lower bound. The OptQuest Engine considers the COptQuestUpperRequirement to be feasible if requirement value <= upper bound.


Constructor Summary
COptQuestUpperRequirement()
          Default constructor
COptQuestUpperRequirement(double upper)
          Constructor that sets the upper bound of the requirement.
COptQuestUpperRequirement(java.lang.String name, double upper)
          Constructor that assigns a name to the requirement and sets the upper bound
 
Method Summary
 java.lang.String GetType()
           
 
Methods inherited from class com.opttek.optquest.COptQuestRequirement
GetBestValue, GetCurrentValue, GetCurrentValue, GetLowerBound, GetName, GetNthBestValue, GetPortfolioMeasure, GetPortfolioStatistic, GetPortfolioStatisticValue, GetUpperBound, SetCurrentValue, SetCurrentValue, SetLowerBound, SetName, SetPortfolioMeasure, SetPortfolioStatistic, SetUpperBound
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COptQuestUpperRequirement

public COptQuestUpperRequirement(double upper)
Constructor that sets the upper bound of the requirement.

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

COptQuestUpperRequirement

public COptQuestUpperRequirement(java.lang.String name,
                                 double upper)
Constructor that assigns a name to the requirement and sets the upper bound

Parameters:
name - alphanumeric name
upper - a value between -pow(2,31) and +pow(2,31)-1

COptQuestUpperRequirement

public COptQuestUpperRequirement()
Default constructor

Method Detail

GetType

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