|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jmetal.util.Distance
public class Distance
This class implements some utilities for calculating distances
Constructor Summary | |
---|---|
Distance()
Constructor. |
Method Summary | |
---|---|
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 encodings.variable values . |
int |
indexToNearestSolutionInSolutionSpace(Solution solution,
SolutionSet solutionSet)
Return the index of the nearest solution in the solution set to a given solution |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Distance()
Method Detail |
---|
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 encodings.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 int indexToNearestSolutionInSolutionSpace(Solution solution, SolutionSet solutionSet)
solution
- solutionSet
-
public void crowdingDistanceAssignment(SolutionSet solutionSet, int nObjs)
SolutionSet
.
solutionSet
- The SolutionSet
.nObjs
- Number of objectives.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |