|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.opttek.optquest.COptQuestSolution
public class COptQuestSolution
A COptQuestSolution object contains the values for one solution and provides methods to access information on the solution. Before a solution is evaluated, it contains the values for all decision variables. After the solution has been evaluated, the solution will have the value for the objective, constraints and requirements. It will also be marked as a feasible solution or an infeasible solutions. A feasible solution satisfies all constraints and requirements. An infeasible solution viloates one or more constraints or requirements.
| Method Summary | |
|---|---|
boolean |
AreConstraintsValid()
Returns whether or not the solution is valid with respect to all constraints. |
boolean |
AreVariablesValid()
Returns whether or not the solution is valid with respect to all variables. |
double[] |
CalculateObservationsOnMeasure(int measure)
|
double |
CalculateStatisticOnMeasure(int measure,
int statistic,
double statisticValue)
Using this solution, calculate the requested statistic on the specified measure |
int |
compareTo(COptQuestSolution sol)
|
double |
GetConstraintLHS(COptQuestStringConstraint con)
Returns the value of the left hand side of the string constraint using this solution. |
double |
GetConstraintLHS(COptQuestStringConstraint con,
int clause)
Returns the value of the left hand side of the string constraint using this solution. |
double |
GetConstraintRHS(COptQuestStringConstraint con)
Returns the value of the right hand side of the constraint using this solution. |
double |
GetConstraintRHS(COptQuestStringConstraint con,
int clause)
Returns the value of the right hand side of the string constraint using this solution. |
java.lang.String |
GetGeneratorString()
|
int |
GetIteration()
Returns the iteration number that generated this solution. |
double |
GetObjectiveValue()
Returns the value of the objective for this solution. |
double |
GetObjectiveValue(COptQuestObjective obj)
Returns the objective value for a specified objective. |
int |
GetPID()
During evaluation, returns the pID associated with this solution. |
boolean |
GetRejectSolution()
Returns true if you have marked the solution as rejected. |
int |
GetReplication()
Returns the replication number for this solution. |
double |
GetReplicationStandardDeviation()
Returns the standard of deviation for the replications of this solution. |
int |
GetReplicationTerminationReason()
Returns the reason replications were terminated for this solution. |
java.lang.String |
GetReplicationTerminationReasonString()
Returns a text string which describes the reason replications were terminated for this solution. |
double |
GetRequirementValue(COptQuestRequirement req)
Returns the value of the requirement for this solution |
double |
GetVariableValue(COptQuestVariable var)
Returns the value of the decision variable for this solution |
boolean |
IsConstraintFeasible(COptQuestCompoundConstraint con)
Returns whether or not the solution is valid with respect to a single constraint. |
boolean |
IsConstraintFeasible(COptQuestConstraint con)
Returns whether or not the solution is valid with respect to a single constraint. |
boolean |
IsConstraintFeasible(COptQuestStringConstraint con)
Returns whether or not the solution is valid with respect to a single constraint. |
boolean |
IsEvaluated()
Returns true if the solution has completed evaluation. |
boolean |
IsFeasible()
Returns true if the solution satisfies all constraints and requirements. |
boolean |
IsFeasible(COptQuestRequirement req)
Returns true if this solution is feasible (satisfies) for the input requirement. |
boolean |
IsFeasible(COptQuestStringConstraint constraint)
Returns true if this solution is feasible (satisifies) for the input constraint. |
boolean |
IsLastReplication()
Return true if we have run the last replication for the this solution. |
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 mimimize the objective value. |
boolean |
IsRequirementFeasible(COptQuestOrRequirement req)
Returns whether or not the solution is valid with respect to a single requirement. |
boolean |
IsRequirementFeasible(COptQuestRequirement req)
Returns whether or not the solution is valid with respect to a single requirement. |
boolean |
IsValidSolution()
Returns whether or not the solution is valid with respect to all variables and constraints. |
boolean |
IsVariableFeasible(COptQuestVariable var)
Returns whether or not the solution is valid with respect to a single variable. |
void |
RejectSolution()
Marks this solution as rejected which means it may not be complete and it will not be considered as a candidate for the best solution. |
void |
SetObjectiveValue(COptQuestObjective obj,
double objValue)
Sets the objective value for the specified objective. |
void |
SetObjectiveValue(double objValue)
Sets the objective value for this solution |
void |
SetRequirementValue(COptQuestRequirement req,
double reqValue)
Sets the value of the requirement for this solution. |
void |
SetVariableValue(COptQuestVariable var,
double varValue)
Sets the value of the decision variable for this solution. |
boolean |
SolutionMetConfidence()
Returns true if this solution met confidence level checks for replications. |
double |
SolveExpression(java.lang.String str)
Solves the input expression using this solution and returns the value of the expression. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int compareTo(COptQuestSolution sol)
compareTo in interface java.lang.Comparable<COptQuestSolution>public int GetPID()
public double GetVariableValue(COptQuestVariable var)
throws COptQuestException
var -
COptQuestException
public void SetVariableValue(COptQuestVariable var,
double varValue)
throws COptQuestException
var - varValue -
COptQuestException
public double GetObjectiveValue()
throws COptQuestException
COptQuestExceptionpublic void SetObjectiveValue(double objValue)
objValue -
public void SetObjectiveValue(COptQuestObjective obj,
double objValue)
obj - objValue -
public double GetObjectiveValue(COptQuestObjective obj)
throws COptQuestException
obj -
COptQuestException
public double GetRequirementValue(COptQuestRequirement req)
throws COptQuestException
req -
COptQuestException
public void SetRequirementValue(COptQuestRequirement req,
double reqValue)
throws COptQuestException
req - reqValue -
COptQuestException
public double GetConstraintLHS(COptQuestStringConstraint con)
throws COptQuestException
con - - The constraint to be evaluated
COptQuestException
public double GetConstraintLHS(COptQuestStringConstraint con,
int clause)
throws COptQuestException
con - - the constraint to be evaluatedclause - - One based value identifying the or clause to evaluate
COptQuestException
public double GetConstraintRHS(COptQuestStringConstraint con)
throws COptQuestException
con - - The constraint to be evaluated
COptQuestException
public double GetConstraintRHS(COptQuestStringConstraint con,
int clause)
throws COptQuestException
con - - the constraint to be evaluatedclause - - One based value identifying the or clause to evaluate
COptQuestException
public double SolveExpression(java.lang.String str)
throws COptQuestException
str - - mathematical expression to be evaluated
COptQuestException - if there is an error in the
expression that prevents it from being evaluated.public int GetIteration()
public boolean IsFeasible()
throws COptQuestException
COptQuestExceptionpublic boolean IsMinimize()
public boolean IsMaximize()
public boolean IsFeasible(COptQuestStringConstraint constraint)
throws COptQuestException
constraint -
COptQuestException
public boolean IsFeasible(COptQuestRequirement req)
throws COptQuestException
req - requirement
COptQuestException
public boolean SolutionMetConfidence()
throws COptQuestException
COptQuestException
public boolean GetRejectSolution()
throws COptQuestException
COptQuestException
public void RejectSolution()
throws COptQuestException
COptQuestException
public double CalculateStatisticOnMeasure(int measure,
int statistic,
double statisticValue)
throws COptQuestException
measure - statistic - statisticValue - target values for OCLP_PERCENTILE, OCLP_SEMI1STDDEV,
OCLP_SEMI2STDDEV, OCLP_PROBABILITY
COptQuestException
public double[] CalculateObservationsOnMeasure(int measure)
throws COptQuestException
COptQuestException
public int GetReplication()
throws COptQuestException
COptQuestException
public boolean IsLastReplication()
throws COptQuestException
COptQuestException
public double GetReplicationStandardDeviation()
throws COptQuestException
COptQuestException
public int GetReplicationTerminationReason()
throws COptQuestException
COptQuestException
public java.lang.String GetReplicationTerminationReasonString()
throws COptQuestException
COptQuestException
public boolean IsValidSolution()
throws COptQuestException
COptQuestException
public boolean IsConstraintFeasible(COptQuestConstraint con)
throws COptQuestException
COptQuestException
public boolean IsConstraintFeasible(COptQuestCompoundConstraint con)
throws COptQuestException
COptQuestException
public boolean IsConstraintFeasible(COptQuestStringConstraint con)
throws COptQuestException
COptQuestException
public boolean IsRequirementFeasible(COptQuestRequirement req)
throws COptQuestException
COptQuestException
public boolean IsRequirementFeasible(COptQuestOrRequirement req)
throws COptQuestException
COptQuestException
public boolean AreConstraintsValid()
throws COptQuestException
COptQuestException
public boolean IsVariableFeasible(COptQuestVariable var)
throws COptQuestException
COptQuestException
public boolean AreVariablesValid()
throws COptQuestException
COptQuestExceptionpublic boolean IsEvaluated()
public java.lang.String GetGeneratorString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||