public class SolutionUtils extends Object
| Constructor and Description |
|---|
SolutionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
distanceBetweenSolutions(DoubleSolution solutionI,
DoubleSolution solutionJ)
Returns the distance between two solutions in the search space.
|
static double |
distanceToSolutionListInSolutionSpace(DoubleSolution solution,
List<DoubleSolution> solutionList)
Returns the minimum distance from a
Solution to a
SolutionSet according to the encodings.variable values. |
static <S extends Solution<?>> |
getBestSolution(S solution1,
S solution2,
Comparator<S> comparator)
Return the best solution between those passed as arguments.
|
static <S extends Solution<?>> |
getBestSolution(S solution1,
S solution2,
Comparator<S> comparator,
java.util.function.BinaryOperator<S> equalityPolicy)
Return the best solution between those passed as arguments.
|
static <S extends Solution<?>> |
getBestSolution(S solution1,
S solution2,
Comparator<S> comparator,
RandomGenerator<Double> randomGenerator)
Return the best solution between those passed as arguments.
|
public static <S extends Solution<?>> S getBestSolution(S solution1, S solution2, Comparator<S> comparator)
solution1 - solution2 - public static <S extends Solution<?>> S getBestSolution(S solution1, S solution2, Comparator<S> comparator, RandomGenerator<Double> randomGenerator)
solution1 - solution2 - randomGenerator - RandomGenerator for the equality casepublic static <S extends Solution<?>> S getBestSolution(S solution1, S solution2, Comparator<S> comparator, java.util.function.BinaryOperator<S> equalityPolicy)
solution1 - solution2 - equalityPolicy - public static double distanceToSolutionListInSolutionSpace(DoubleSolution solution, List<DoubleSolution> solutionList)
Solution to a
SolutionSet according to the encodings.variable values.solution - The Solution.solutionList - The List> .public static double distanceBetweenSolutions(DoubleSolution solutionI, DoubleSolution solutionJ)
solutionI - The first Solution.solutionJ - The second Solution.Copyright © 2017. All rights reserved.