public class Distance
extends java.lang.Object
Constructor and Description |
---|
Distance()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
crowdingDistanceAssignment(SolutionSet solutionSet,
int nObjs)
Assigns crowding distances to all solutions in a
SolutionSet . |
double |
distanceBetweenObjectives(Solution solutionI,
Solution solutionJ)
Returns the distance between two solutions in objective space.
|
double |
distanceBetweenSolutions(Solution solutionI,
Solution solutionJ)
Returns the distance between two solutions in the search space.
|
double[][] |
distanceMatrix(SolutionSet solutionSet)
Returns a matrix with distances between solutions in a
SolutionSet . |
double |
distanceToSolutionSetInObjectiveSpace(Solution solution,
SolutionSet solutionSet)
Returns the minimum distance from a
Solution to a
SolutionSet according to the objective values . |
double |
distanceToSolutionSetInSolutionSpace(Solution solution,
SolutionSet solutionSet)
Returns the minimum distance from a
Solution to a
SolutionSet according to the variable values . |
public double[][] distanceMatrix(SolutionSet solutionSet)
SolutionSet
.solutionSet
- The SolutionSet
.public double distanceToSolutionSetInObjectiveSpace(Solution solution, SolutionSet solutionSet) throws JMException
Solution
to a
SolutionSet according to the objective values
.solution
- The Solution
.solutionSet
- The SolutionSet
.JMException
public double distanceToSolutionSetInSolutionSpace(Solution solution, SolutionSet solutionSet) throws JMException
Solution
to a
SolutionSet according to the variable values
.solution
- The Solution
.solutionSet
- The SolutionSet
.JMException
public double distanceBetweenSolutions(Solution solutionI, Solution solutionJ) throws JMException
solutionI
- The first Solution
.solutionJ
- The second Solution
.JMException
public double distanceBetweenObjectives(Solution solutionI, Solution solutionJ)
solutionI
- The first Solution
.solutionJ
- The second Solution
.public void crowdingDistanceAssignment(SolutionSet solutionSet, int nObjs)
SolutionSet
.solutionSet
- The SolutionSet
.nObjs
- Number of objectives.