|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opttek.optquest.COptQuestObjective
The COptQuestObjective class is a pure virtual class that defines the objective of the optimization. Objective values can be calculated in one of four ways: - the user supplies an objective value in the Evaluate() method of COptQuestOptimization - the user can provide an objective equation that is evaluated by the OptQuest Engine - the user can provide a COptQuestObjectiveFunction which defines a linear objective expressed as COptQuestVariables and coefficients. - the user defines a statistic and measure which is used for portfolio analysis. Evalution is performed by the OptQuest Engine.
| Constructor Summary | |
COptQuestObjective()
|
|
| Method Summary | |
boolean |
GetBestFeasible()
Returns true if the best solution did not violate any linear or non-linear constraints. |
double |
GetBestValue()
Returns the objective value for the best solution. |
boolean |
GetCurrentFeasible()
Returns true if the current solution did not violate any linear or non-linear constraints. |
boolean |
GetCurrentFeasible(int pID)
Returns true if the current solution associated with the pID did not violate any linear or non-linear constraints. |
double |
GetCurrentValue()
Returns the objective value for the current solution. |
double |
GetCurrentValue(int pID)
Returns the objective value for the current solution when using parallel optimization. |
boolean |
GetNthBestFeasible()
Returns true if the Nth best solution did not violate any linear or non-linear constraints. |
double |
GetNthBestValue()
Returns the objective value for the Nth best solution where the Nth best is identified by the COptQuestOptimization.SetNthBest() method. |
boolean |
IsLinear()
Returns true if the objective is a linear function. |
boolean |
IsMaximize()
Returns true if the goal of the optimization is to maximize the objective value. |
boolean |
IsMinimize()
Returns true if the goal of the optimization is to minimize the objective value. |
void |
SetCurrentValue(double val)
Used to set the value of the objective for the current solution. |
void |
SetCurrentValue(int pID,
double val)
Used to set the objective value for the current solution when using parallel optimzation. |
void |
SetMaximize()
Sets the goal of the optimization to maximize the objective value. |
void |
SetMinimize()
Sets the goal of the optimization to minimize the objective value. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public COptQuestObjective()
| Method Detail |
public void SetMaximize()
public boolean IsMaximize()
public void SetMinimize()
public boolean IsMinimize()
public boolean IsLinear()
public double GetBestValue()
public double GetNthBestValue()
public boolean GetBestFeasible()
public boolean GetNthBestFeasible()
public boolean GetCurrentFeasible()
public double GetCurrentValue()
throws COptQuestException
COptQuestException
public void SetCurrentValue(double val)
throws COptQuestException
val - value of the objective
COptQuestException
public void SetCurrentValue(int pID,
double val)
throws COptQuestException
pID - parallel ID from the COptQuestOptimization.Evaluate() method
COptQuestException
public double GetCurrentValue(int pID)
throws COptQuestException
pID -
COptQuestException
public boolean GetCurrentFeasible(int pID)
throws COptQuestException
pID -
COptQuestException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||