public class SingleSwapNeighbourhood extends Object implements org.jamesframework.core.search.neigh.Neighbourhood<PermutationSolution>
Constructor and Description |
---|
SingleSwapNeighbourhood() |
Modifier and Type | Method and Description |
---|---|
List<SingleSwapMove> |
getAllMoves(PermutationSolution solution)
Create a list of all possible single swap moves.
|
SingleSwapMove |
getRandomMove(PermutationSolution solution)
Create a random single swap move.
|
public SingleSwapMove getRandomMove(PermutationSolution solution)
getRandomMove
in interface org.jamesframework.core.search.neigh.Neighbourhood<PermutationSolution>
solution
- permutation solution to which the move is to be appliedpublic List<SingleSwapMove> getAllMoves(PermutationSolution solution)
getAllMoves
in interface org.jamesframework.core.search.neigh.Neighbourhood<PermutationSolution>
solution
- permutation solution to which the move is to be appliedCopyright © 2015. All rights reserved.