|
|||||||||
| 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.COptQuestDiscreteVariable
com.opttek.optquest.COptQuestDesignVariable
public class COptQuestDesignVariable
Design variables are used when value of the decision variable represents an alternative, and not a quantity. For example, the variable may take on the values red, green or blue. 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 java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public COptQuestDesignVariable(java.lang.String name,
double lowerBound,
double upperBound,
double step)
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)-1upperBound - a value between -pow(2,31) and +pow(2,31)-1
public COptQuestDesignVariable(double lowerBound,
double upperBound,
double step)
lowerBound - a value between -pow(2,31) and +pow(2,31)-1upperBound - a value between -pow(2,31) and +pow(2,31)-1public COptQuestDesignVariable()
| Method Detail |
|---|
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 COptQuestDiscreteVariable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||