public class AdaptiveRandomNeighborhood<S> extends Object implements Neighborhood<S>
| Constructor and Description |
|---|
AdaptiveRandomNeighborhood(int solutionListSize,
int numberOfRandomNeighbours)
Constructor
|
AdaptiveRandomNeighborhood(int solutionListSize,
int numberOfRandomNeighbours,
BoundedRandomGenerator<Integer> randomGenerator)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<S> |
getNeighbors(List<S> solutionList,
int solutionIndex) |
void |
recompute()
Recomputes the neighbors
|
public AdaptiveRandomNeighborhood(int solutionListSize,
int numberOfRandomNeighbours)
solutionListSize - The expected size of the list of solutionsnumberOfRandomNeighbours - The number of neighbors per solutionpublic AdaptiveRandomNeighborhood(int solutionListSize,
int numberOfRandomNeighbours,
BoundedRandomGenerator<Integer> randomGenerator)
solutionListSize - The expected size of the list of solutionsnumberOfRandomNeighbours - The number of neighbors per solutionrandomGenerator - the BoundedRandomGenerator to use for the randomisationpublic void recompute()
public List<S> getNeighbors(List<S> solutionList, int solutionIndex)
getNeighbors in interface Neighborhood<S>Copyright © 2018. All rights reserved.