|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contains a set of neighboring solutions that are related to an initial solution. The neighbor can define solutions to variables that should not be updated from the original solution as well as values to assign to variables not in the scope of the original solution. Each neighbor will be applied as an alternative solution to produce a set of choices.
Method Summary | |
SolverSolution |
getNeighbor(int i)
Returns the neighboring solution at index i |
Neighborhood |
getSelectedNeighborhood()
Returns the Neighborhood represented by the latest selected Neighborhood |
int |
getSelectedNeighborhoodOffset()
Returns the offset into Neighborhood represented by the latest selected Neighborhood |
void |
neighborSelected(int i)
Indicates that a neighbor has been selected from this neighborhood and is about to be used to update the initial solution. |
void |
setInitialSolution(SolverSolution initial)
Sets the initial solution to which this neighborhood is related |
int |
size()
Returns the number of potential solutions contained in the neighborhood |
Method Detail |
public void setInitialSolution(SolverSolution initial)
public int size()
public SolverSolution getNeighbor(int i)
i
i
- Index of neighbor within neighborhood
public void neighborSelected(int i)
public Neighborhood getSelectedNeighborhood()
public int getSelectedNeighborhoodOffset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |