Package | Description |
---|---|
org.jamesframework.core.subset.neigh |
Subset selection neighbourhoods.
|
org.jamesframework.core.subset.neigh.adv |
Advanced subset selection neighbourhoods.
|
org.jamesframework.core.subset.neigh.moves |
Subset moves generated by the provided subset neighbourhoods.
|
Modifier and Type | Method and Description |
---|---|
SubsetMove |
SingleSwapNeighbourhood.getRandomMove(SubsetSolution solution,
Random rnd)
Generates a random swap move for the given subset solution that removes a single ID from the set of currently selected IDs,
and replaces it with a random ID taken from the set of currently unselected IDs.
|
SubsetMove |
SinglePerturbationNeighbourhood.getRandomMove(SubsetSolution solution,
Random rnd)
Generates a random swap, deletion or addition move that transforms the given subset solution into
a neighbour within the minimum and maximum allowed subset size.
|
SubsetMove |
SingleDeletionNeighbourhood.getRandomMove(SubsetSolution solution,
Random rnd)
Generates a random deletion move for the given subset solution that removes a single ID from the selection.
|
SubsetMove |
SingleAdditionNeighbourhood.getRandomMove(SubsetSolution solution,
Random rnd)
Generates a random addition move for the given subset solution that adds a single ID to the selection.
|
Modifier and Type | Method and Description |
---|---|
List<SubsetMove> |
SingleSwapNeighbourhood.getAllMoves(SubsetSolution solution)
Generates a list of all possible swap moves that transform the given subset solution by removing a single ID from
the current selection and replacing it with a new ID which is currently not selected.
|
List<SubsetMove> |
SinglePerturbationNeighbourhood.getAllMoves(SubsetSolution solution)
Generate all valid swap, deletion and addition moves that transform the given subset solution into
a neighbour within the minimum and maximum allowed subset size.
|
List<SubsetMove> |
SingleDeletionNeighbourhood.getAllMoves(SubsetSolution solution)
Generates a list of all possible deletion moves that remove a single ID from the selection of a given
subset solution.
|
List<SubsetMove> |
SingleAdditionNeighbourhood.getAllMoves(SubsetSolution solution)
Generates a list of all possible addition moves that add a single ID to the selection of a given
subset solution.
|
Modifier and Type | Method and Description |
---|---|
SubsetMove |
MultiSwapNeighbourhood.getRandomMove(SubsetSolution solution,
Random rnd)
Generates a move for the given subset solution that removes a random subset of IDs from the current selection
and replaces them with an equally large random subset of the currently unselected IDs.
|
SubsetMove |
MultiDeletionNeighbourhood.getRandomMove(SubsetSolution solution,
Random rnd)
Generates a move for the given subset solution that deselects a random subset of currently selected IDs.
|
SubsetMove |
MultiAdditionNeighbourhood.getRandomMove(SubsetSolution solution,
Random rnd)
Generates a move for the given subset solution that adds a random subset of currently unselected IDs to the
selection.
|
SubsetMove |
DisjointMultiSwapNeighbourhood.getRandomMove(SubsetSolution solution,
Random rnd)
Generates a move for the given subset solution that removes a random subset of \(k\) IDs from the current
selection and replaces them with an equally large random subset of the currently unselected IDs, where
\(k\) is the number of swaps specified at construction.
|
SubsetMove |
DisjointMultiDeletionNeighbourhood.getRandomMove(SubsetSolution solution,
Random rnd)
Generates a move for the given subset solution that deselects a random subset of currently selected IDs.
|
SubsetMove |
DisjointMultiAdditionNeighbourhood.getRandomMove(SubsetSolution solution,
Random rnd)
Generates a move for the given subset solution that selects a random subset of currently unselected IDs.
|
Modifier and Type | Method and Description |
---|---|
List<SubsetMove> |
MultiSwapNeighbourhood.getAllMoves(SubsetSolution solution)
Generates the list of all possible moves that perform 1 up to \(k\) swaps, where \(k\) is the maximum number
of swaps specified at construction.
|
List<SubsetMove> |
MultiDeletionNeighbourhood.getAllMoves(SubsetSolution solution)
Generates the list of all possible moves that perform 1 up to \(k\) deletions, where \(k\) is the maximum number
of deletions specified at construction.
|
List<SubsetMove> |
MultiAdditionNeighbourhood.getAllMoves(SubsetSolution solution)
Generates the list of all possible moves that perform 1 up to \(k\) additions, where \(k\) is the maximum number
of additions specified at construction.
|
List<SubsetMove> |
DisjointMultiSwapNeighbourhood.getAllMoves(SubsetSolution solution)
Generates the list of all possible moves that perform exactly \(k\) swaps, where \(k\) is the desired number
of swaps specified at construction.
|
List<SubsetMove> |
DisjointMultiDeletionNeighbourhood.getAllMoves(SubsetSolution solution)
Generates the list of all possible moves that perform \(k\) deletions, where \(k\) is the fixed number
specified at construction.
|
List<SubsetMove> |
DisjointMultiAdditionNeighbourhood.getAllMoves(SubsetSolution solution)
Generates the list of all possible moves that perform \(k\) additions, where \(k\) is the fixed number
specified at construction.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSubsetMove
Abstract subset move that contains general behaviour such as
AbstractSubsetMove.equals(Object) and AbstractSubsetMove.hashCode() . |
class |
AdditionMove
Simple subset move that adds a single ID to the current selection.
|
class |
DeletionMove
Simple subset move that removes a single ID from the current selection.
|
class |
GeneralSubsetMove
A general subset move may simultaneously add and/or remove
several IDs to/from the current selection of a subset solution.
|
class |
SwapMove
Simple subset move that removes a single ID from the current selection
and replaces it with a new ID which was previously not selected.
|
Copyright © 2016. All rights reserved.