|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used to guide a local search regarding which moves can be taken.
Method Summary | |
boolean |
continueSearch()
Called after the solver has failed to find a solution to determine if changes can be made by the metaheuristic to allow additional searching to be performed |
boolean |
isAcceptableNeighbor(SolverSolution neighbor)
Used to check the validity of the specified neighbor. |
boolean |
isRestoredNeighborValid(SolverSolution neighbor)
Notifies the metaheuristic that a neighboring solution has just been restored to the problem allowing the heuristic to determine if the move has produced an allowed result. |
void |
neighborSelected(SolverSolution neighbor)
Called when a current neighbor has been selected to allow metaheuristic to store data that will determine how future neighbors will be selected. |
boolean |
setInitialSolution(SolverSolution initial)
Sets the initial solution for this metaheuristic |
Method Detail |
public boolean setInitialSolution(SolverSolution initial) throws PropagationFailureException
initial
- Initial solution that will be used as new basis for the metaheuristic
PropagationFailureException
- When unable to post constraints improving the objectivepublic boolean isAcceptableNeighbor(SolverSolution neighbor)
neighbor
- Neighbor to check if acceptable
public boolean isRestoredNeighborValid(SolverSolution neighbor)
neighbor
- Neighbor that was restored to problem
public void neighborSelected(SolverSolution neighbor)
neighbor
- Neighbor that was selectedpublic boolean continueSearch()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |