|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.search.goal.MinMaxSearchGoal
Base class for maximization and minimization goals.
Constructor Summary | |
MinMaxSearchGoal()
Initializes internal goal variables |
|
MinMaxSearchGoal(jopt.csp.variable.CspVariableFactory varFact,
ConstraintStore store,
jopt.csp.variable.CspNumExpr expr,
boolean isCurrentASolution)
Initializes internal goal variables |
Method Summary | |
double |
bestObjectiveValue()
|
abstract java.lang.Object |
clone()
|
jopt.csp.search.SearchNodeReference |
getSolutionReference(int n)
|
int |
getSolutionReferenceCount()
|
boolean |
isOkToActivate(jopt.csp.search.SearchNode node)
|
void |
returnBoundToObjectiveValue(double objective)
|
boolean |
solutionFound(jopt.csp.search.SearchNodeReference treeLocationRef)
Called when searches encounter a solution to determine the proper course of action. |
void |
updateBoundForOpenNode()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MinMaxSearchGoal(jopt.csp.variable.CspVariableFactory varFact, ConstraintStore store, jopt.csp.variable.CspNumExpr expr, boolean isCurrentASolution)
varFact
- The variable factory used in variable creationstore
- The constraint store associated with the problemexpr
- The expression to be maximized or minimizedpublic MinMaxSearchGoal()
Method Detail |
public boolean isOkToActivate(jopt.csp.search.SearchNode node)
isOkToActivate
in interface jopt.csp.search.SearchGoal
public boolean solutionFound(jopt.csp.search.SearchNodeReference treeLocationRef)
solutionFound
in interface jopt.csp.search.SearchGoal
treeLocationRef
- Reference to a node in the search tree where solution was located
public double bestObjectiveValue()
bestObjectiveValue
in interface jopt.csp.search.SearchGoal
public void returnBoundToObjectiveValue(double objective)
returnBoundToObjectiveValue
in interface jopt.csp.search.SearchGoal
public void updateBoundForOpenNode() throws jopt.csp.variable.PropagationFailureException
updateBoundForOpenNode
in interface jopt.csp.search.SearchGoal
jopt.csp.variable.PropagationFailureException
public int getSolutionReferenceCount()
getSolutionReferenceCount
in interface jopt.csp.search.SearchGoal
public jopt.csp.search.SearchNodeReference getSolutionReference(int n)
getSolutionReference
in interface jopt.csp.search.SearchGoal
public abstract java.lang.Object clone()
clone
in interface jopt.csp.search.SearchGoal
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |