|
||||||||||
| 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.COptQuestUserControlledVariable
The COptQuestUserControlledVariable class allows you to define a variable where
you set the value of the variable. Unlike a COptQuestVariable whose possible
value is determined by the OptQuest Engine, you provide the values for
COptQuestUserControlledVariable objects.
COptQuestUserControlledVariable objects can be used in the mathematical expression
of COptQuestStringConstraint objects or a COptQuestStringObjective object.
For example, you may define a COptQuestUserControlledVariable that represents
a risk calculation and use the risk value in a COptQuestStringConstraint that says
risk must be less than or equal to n. In the COptQuestOptimization::Evaluate()
method, you would compute the risk value and use the
COptQuestUserControlledVariable::SetCurrentValue() method to give the value to
the OptQuest Engine. The OptQuestEngine would use this value when checking the
constraint for feasiblity.
| Constructor Summary | |
COptQuestUserControlledVariable()
Default constructor |
|
COptQuestUserControlledVariable(java.lang.String name)
Constructor that assigns a name to the variable. |
|
| Method Summary | |
java.lang.String |
GetType()
|
void |
SetExclusiveRange(double low,
double high)
Not valid for COptQuestUserControlledVariables |
void |
SetLowerBound(double lowerBound)
Not valid for COptQuestUserControlledVariables |
void |
SetStepSize(double stepSize)
Not valid for COptQuestUserControlledVariables |
void |
SetUpperBound(double upperBound)
Not valid for COptQuestUserControlledVariables |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public COptQuestUserControlledVariable(java.lang.String name)
name - alphanumeric name. Note: the name can contain blanks or special
characters. If the variable name is used in a COptQuestConstraintString
equation and it contains non-alphnumeric characters, the name should be
enclosed in square brackets []public COptQuestUserControlledVariable()
| Method Detail |
public void SetStepSize(double stepSize)
throws COptQuestException
SetStepSize in class COptQuestVariableCOptQuestException
public void SetLowerBound(double lowerBound)
throws COptQuestException
SetLowerBound in class COptQuestVariablelowerBound - a value between -pow(2,31) and +pow(2,31)-1
COptQuestException
public void SetUpperBound(double upperBound)
throws COptQuestException
SetUpperBound in class COptQuestVariableupperBound - 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 | |||||||||