|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opttek.optquest.COptQuestVariable
com.opttek.optquest.COptQuestDiscountRateVariable
The COptQuestDiscountRateVariable class defines a discount rate for portfolio
optimizations. Only one COptQuestDiscountRateVariable can be defined per optmization.
The discount rate is used to calculate the Net Present Value (NPV)
or Payback Period(PBP) from the cash flow per period observations. The discount
rate can be set as a constant discount rate for all periods/observations or it can
be set per period/observation. Setting the discount rate per period/observation
allows the user to use simulation to simulate the discount rate when it is unknown.
If the discount rate does not change per observation, but does change per period,
set all of the observations for that period to the same discount rate.
The SetCurrentValue() method is used to define the fixed rate discount rate.
If you are using observations you must call the SetNumberOfPeriods() method to set
the number of periods in the portfolio and then call the SetPeriodObservations()
method is used to set the observations by period.
| Constructor Summary | |
COptQuestDiscountRateVariable()
Default constructor |
|
COptQuestDiscountRateVariable(java.lang.String name)
Constructor that assigns a name to the discount rate variable. |
|
| Method Summary | |
java.lang.String |
GetType()
|
void |
SetExclusiveRange(double low,
double high)
Invalid method for COptQuestDiscountRateVariable |
void |
SetLowerBound(double val)
Invalid method for COptQuestDiscountRateVariable |
void |
SetStepSize(double val)
Invalid method for COptQuestDiscountRateVariable |
void |
SetUpperBound(double val)
Invalid method for COptQuestDiscountRateVariable |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public COptQuestDiscountRateVariable(java.lang.String name)
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.public COptQuestDiscountRateVariable()
| Method Detail |
public void SetStepSize(double val)
throws COptQuestException
SetStepSize in class COptQuestVariableCOptQuestException
public void SetLowerBound(double val)
throws COptQuestException
SetLowerBound in class COptQuestVariableval - a value between -pow(2,31) and +pow(2,31)-1
COptQuestException
public void SetUpperBound(double val)
throws COptQuestException
SetUpperBound in class COptQuestVariableval - a value between -pow(2,31) and +pow(2,31)-1
COptQuestException
public void SetExclusiveRange(double low,
double high)
throws COptQuestException
SetExclusiveRange in class COptQuestVariablelow - - any value > low will be excludedhigh - - any value < high will be exluded
COptQuestExceptionpublic java.lang.String GetType()
GetType in class COptQuestVariable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||