|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Neighbourhood
This interface must be implemented by all resources whose proposal consists of generating and evaluating neighbourhoods from an individual.
HillClimbing
Method Summary | |
---|---|
Individual[] |
getAllNeighbours(Individual individual)
Returns all neighbours of one individual ordered decreasing . |
Individual[] |
getBestNeighbours(Individual individual,
int numNeighbours)
Returns the best neighbours of one individual ordered decrently. |
Individual |
getRandomNeighbour(Individual individual)
Returns the a random neighbour of one individual. |
Methods inherited from interface lio.core.LiOResource |
---|
getDefinition |
Method Detail |
---|
Individual[] getBestNeighbours(Individual individual, int numNeighbours)
individual
- Individual whose neighbourhood is being returned.numNeighbours
- Number of individuals returned.
Individual[] getAllNeighbours(Individual individual)
individual
- Individual whose neighbourhood is being returned.
Individual getRandomNeighbour(Individual individual)
individual
- Individual whose neighbour is being returned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |