|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opttek.optquest.COptQuestCompoundConstraint
com.opttek.optquest.COptQuestResourceConstraint
The COptQuestResourceConstraint class is used in portfolio optimizations to define a budget or resource constraint for each period of the portfolio.
| Constructor Summary | |
COptQuestResourceConstraint()
Default constructor |
|
COptQuestResourceConstraint(java.lang.String name)
Constructor that assigns a name to the COptQuestResourceConstraint |
|
| Method Summary | |
void |
SetAvailableAmount(int periodNum,
double amt)
Sets the resource limit for each period. |
void |
SetNumberOfPeriods(int numPeriods)
Defines the number of periods associated with the resource |
void |
SetUsageAmount(int periodNum,
COptQuestVariable var,
double amt)
Sets a usage amount for a variable in a given period. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public COptQuestResourceConstraint(java.lang.String name)
name - alphanumeric namepublic COptQuestResourceConstraint()
| Method Detail |
public void SetNumberOfPeriods(int numPeriods)
throws COptQuestException
numPeriods - number of periods associated with the resource
COptQuestException
public void SetAvailableAmount(int periodNum,
double amt)
throws COptQuestException
periodNum - period number which is a value between 1 and the
number of periods defined by the SetNumberOfPeriods() method.amt - the resource limit for the period
COptQuestException
public void SetUsageAmount(int periodNum,
COptQuestVariable var,
double amt)
throws COptQuestException
periodNum - period number which is a value between 1 and the
number of periods defined by the SetNumberOfPeriods() method.var - a COptQuestProjectVariable objectamt - a value representing the usage amount for the period
COptQuestException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||