Package | Description |
---|---|
org.jamesframework.ext.analysis |
Analysis tools to compare algorithm performance and assess parameter value influence.
|
org.jamesframework.ext.permutation |
Predefined permutation problem.
|
org.jamesframework.ext.permutation.neigh |
Predefined permutation neighbourhoods.
|
org.jamesframework.ext.permutation.neigh.moves |
Moves generated by provided permutation neighbourhoods.
|
Modifier and Type | Field and Description |
---|---|
static JsonConverter<PermutationSolution> |
JsonConverter.PERMUTATION_SOLUTION
Predefined converter for permutation solutions that creates a JSON array containing the ordered IDs.
|
Modifier and Type | Method and Description |
---|---|
PermutationSolution |
PermutationSolution.copy()
Creates a deep copy of this permutation solution with the same order of IDs.
|
Constructor and Description |
---|
PermutationProblem(DataType data,
Objective<? super PermutationSolution,? super DataType> objective)
Create a permutation problem with given objective and data.
|
Modifier and Type | Method and Description |
---|---|
List<SingleSwapMove> |
SingleSwapNeighbourhood.getAllMoves(PermutationSolution solution)
Create a list of all possible single swap moves.
|
List<ReverseSubsequenceMove> |
ReverseSubsequenceNeighbourhood.getAllMoves(PermutationSolution solution)
Create a list of all possible moves that reverse a subsequence of the permutation.
|
SingleSwapMove |
SingleSwapNeighbourhood.getRandomMove(PermutationSolution solution,
Random rnd)
Create a random single swap move.
|
ReverseSubsequenceMove |
ReverseSubsequenceNeighbourhood.getRandomMove(PermutationSolution solution,
Random rnd)
Create a random move that reverses a subsequence of the permutation.
|
Modifier and Type | Method and Description |
---|---|
void |
SingleSwapMove.apply(PermutationSolution solution)
Apply the move by swapping the items at the positions specified at construction.
|
void |
ReverseSubsequenceMove.apply(PermutationSolution solution)
Reverse the subsequence by performing a series of swaps in the given permutation solution.
|
void |
SingleSwapMove.undo(PermutationSolution solution)
Undo a previously applied swap move.
|
void |
ReverseSubsequenceMove.undo(PermutationSolution solution)
Undo move by reverting the order of the reversed subsequence.
|
Copyright © 2016. All rights reserved.