|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opttek.optquest.COptQuestObjective
com.opttek.optquest.COptQuestStringObjective
The COptQuestStringObjective class is used to define an objective function
using a mathematical expression. The expression may be linear or non-linear.
For example, the objective may be to minimize "2*Var1 + 3*Var2 + 1.5*Var3".
"Var1", "Var2" and "Var3" must be names that were assigned to COptQuestVariable
objects. If a variable name contains non-alphanumeric characters such as blanks,
the names should be enclosed in square brackets in the equation string. For
example, "2*[Var 1] + 3*[Var 2] + 1.5*[Var 3] <= 100"
The following mathematical functions are supported and can be used in the
mathematical expression:
| Constructor Summary | |
COptQuestStringObjective()
Default constructor |
|
COptQuestStringObjective(java.lang.String expression)
|
|
| Method Summary | |
boolean |
GetCheckLinear()
Returns true if the objective equation should be checked for linearity. |
boolean |
IsLinear()
Returns true if the expression is linear. |
void |
SetCheckLinear(boolean Value)
If true, the objective should be checked for linearity. |
void |
SetEquation(java.lang.String equation)
Sets the mathematical expression that defines the objective. |
| Methods inherited from class com.opttek.optquest.COptQuestObjective |
GetBestFeasible, GetBestValue, GetCurrentFeasible, GetCurrentFeasible, GetCurrentValue, GetCurrentValue, GetNthBestFeasible, GetNthBestValue, IsMaximize, IsMinimize, SetCurrentValue, SetCurrentValue, SetMaximize, SetMinimize |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public COptQuestStringObjective()
public COptQuestStringObjective(java.lang.String expression)
| Method Detail |
public boolean IsLinear()
IsLinear in class COptQuestObjective
public void SetEquation(java.lang.String equation)
throws COptQuestException
equation - - mathematical expression that defines the objective of
the optimization
COptQuestExceptionpublic void SetCheckLinear(boolean Value)
Value - - true if the mathematical expression should be checked for
linearity. False if it should not be checked.public boolean GetCheckLinear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||