|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.opttek.optquest.COptQuestSolutionSet
public class COptQuestSolutionSet
The COptQuestSolutionSet class allows you to select a set of solutions and perform statistical analysis or sensitivity analysis on the set. Solutions are selected using a filter that you implement via the ISolutionFilter interface. A COptQuestSolutionSet object is created by calling COptQuestOptimization.CreateSolutionSet(). A filter is added by the COptQuestSolutionSet.SetSolutionFilter() method. The solution set is loaded by the COptQuestSolutionSet.LoadSolutionSet() method where you specify the number of solutions you want in the set and how you want the solutions to be ordered. If not ISolutionFilter is defined, solutions are included in the set until the count requested is satisfied.
| Field Summary | |
|---|---|
static int |
ORDER_DONTCARE
|
static int |
ORDER_ITERATION
|
static int |
ORDER_NTHBEST
Identifies how the solutions should be ordered in the set. |
| Method Summary | |
|---|---|
double |
CalculateSensitivity(COptQuestObjective obj)
Returns the sensitivity score for the objective. |
double |
CalculateSensitivity(COptQuestVariable var)
Calculate a sensitivity score for the input variable. |
double |
CalculateStatistic(COptQuestObjective obj,
int statistic,
double statisticValue)
Using the solution set values for the objective, calculate the specified statistic |
double |
CalculateStatistic(COptQuestVariable var,
int statistic,
double statisticValue)
Using the solution set values of the specified variable, calculate the specified statistic. |
int |
GetNumberOfSolutions()
Returns the actual number of solutions in the solution set. |
java.util.ArrayList<COptQuestSolution> |
GetSolutionsInSet()
Returns the list of COptQuestSolution objects that satisfied the filter. |
void |
LoadSolutionSet(int numSolutions,
int orderBy)
Loads the solution set with the specified number of solutions, ordered by the orderBy parameter. |
void |
SetSolutionFilter(ISolutionFilter userFilter)
Defines a ISoluitonFilter interface that will be used to select solutions. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ORDER_NTHBEST
public static final int ORDER_ITERATION
public static final int ORDER_DONTCARE
| Method Detail |
|---|
public void SetSolutionFilter(ISolutionFilter userFilter)
userFilter - public int GetNumberOfSolutions()
public void LoadSolutionSet(int numSolutions,
int orderBy)
throws COptQuestException
numSolutions - - if -1, all solutions are examined. Otherwise the number
of solutions you want in the set.orderBy - specifies how the solutions should be sorted.
COptQuestSolutionSet.ORDER_NTHBEST - solutions are sorted by their objective value.
COptQuestSolutionSet.ORDER_ITERATION - solutions are sorted by their iteration
COptQuestSolutionSet.ORDER_DONTCARE - user doesn't care about ordering solutions
COptQuestExceptionpublic java.util.ArrayList<COptQuestSolution> GetSolutionsInSet()
public double CalculateStatistic(COptQuestVariable var,
int statistic,
double statisticValue)
throws COptQuestException
var - COptQuestVariable to be evaluated.statistic - statisticValue - target values for OCLP_PERCENTILE, OCLP_SEMI1STDDEV,
OCLP_SEMI2STDDEV, OCLP_PROBABILITY
COptQuestException
public double CalculateStatistic(COptQuestObjective obj,
int statistic,
double statisticValue)
throws COptQuestException
obj - COptQuestObjective to be evaluated.statistic - statisticValue - target values for OCLP_PERCENTILE, OCLP_SEMI1STDDEV,
OCLP_SEMI2STDDEV, OCLP_PROBABILITY
COptQuestException
public double CalculateSensitivity(COptQuestVariable var)
throws COptQuestException
var -
COptQuestException
public double CalculateSensitivity(COptQuestObjective obj)
throws COptQuestException
obj -
COptQuestException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||