|
|||||||||
| 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
public class 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 | |
|---|---|
void |
CheckExpression()
Checks the objective expression for syntax errors. |
boolean |
GetCheckLinear()
Returns true if the objective equation should be checked for linearity. |
java.lang.String |
GetEquation()
|
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, GetName, GetNthBestFeasible, GetNthBestValue, GetReplicationConfidenceLevel, GetReplicationConfidencePercent, GetReplicationConfidenceType, IsMaximize, IsMinimize, SetCurrentValue, SetCurrentValue, SetMaximize, SetMinimize, SetName, SetReplicationConfidence |
| 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 java.lang.String GetEquation()
public 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()
public void CheckExpression()
throws COptQuestException
COptQuestException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||