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 Solution |
getBestSolution(Solution solution1,
Solution solution2,
Comparator comparator)
Return the best solution between those passed as arguments.
|
public static Solution getBestSolution(Solution solution1, Solution solution2, Comparator comparator)
solution1 - solution2 - 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 © 2015. All rights reserved.