|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface implemented by a class that creates and returns common search goals that can be used to build a search for locating specific solutions in a CSP problem
| Method Summary | |
SearchGoal |
first()
Creates a goal that will direct the search to end after the first solution is found. |
SearchGoal |
maximize(CspNumExpr expr)
Creates a goal that will maximize a numeric expression |
SearchGoal |
maximize(CspNumExpr expr,
boolean useCurrentState)
Creates a goal that will maximize a numeric expression |
SearchGoal |
minimize(CspNumExpr expr)
Creates a goal that will minimize a numeric expression |
SearchGoal |
minimize(CspNumExpr expr,
boolean useCurrentState)
Creates a goal that will minimize a numeric expression |
SearchGoal |
strictlyMaximize(CspNumExpr expr,
double stepSize)
Creates a goal that will maximize a numeric expression It will only obtain a solution if it is better than the previous. |
SearchGoal |
strictlyMaximize(CspNumExpr expr,
double stepSize,
boolean useCurrentState)
Creates a goal that will maximize a numeric expression It will only obtain a solution if it is better than the previous. |
SearchGoal |
strictlyMinimize(CspNumExpr expr,
double stepSize)
Creates a goal that will minimize a numeric expression. |
SearchGoal |
strictlyMinimize(CspNumExpr expr,
double stepSize,
boolean useCurrentState)
Creates a goal that will minimize a numeric expression. |
| Method Detail |
public SearchGoal minimize(CspNumExpr expr)
expr - Expression that should be minimizedpublic SearchGoal maximize(CspNumExpr expr)
expr - Expression that should be maximized
public SearchGoal strictlyMinimize(CspNumExpr expr,
double stepSize)
expr - Expression that should be minimizedstepSize - - the size of the step to take when enforcing a new max or minimum
public SearchGoal strictlyMaximize(CspNumExpr expr,
double stepSize)
expr - Expression that should be maximizedstepSize - - the size of the step to take when enforcing a new max or minimum
public SearchGoal minimize(CspNumExpr expr,
boolean useCurrentState)
expr - Expression that should be minimizeduseCurrentState - - if true, uses the current state of the problem as a bound
public SearchGoal maximize(CspNumExpr expr,
boolean useCurrentState)
expr - Expression that should be maximizeduseCurrentState - - if true, uses the current state of the problem as a bound
public SearchGoal strictlyMinimize(CspNumExpr expr,
double stepSize,
boolean useCurrentState)
expr - Expression that should be minimizedstepSize - - the size of the step to take when enforcing a new max or minimumuseCurrentState - - if true, uses the current state of the problem as a bound
public SearchGoal strictlyMaximize(CspNumExpr expr,
double stepSize,
boolean useCurrentState)
expr - Expression that should be maximizedstepSize - - the size of the step to take when enforcing a new max or minimumuseCurrentState - - if true, uses the current state of the problem as a boundpublic SearchGoal first()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||