MOEA Framework 2.12
API Specification

org.moeaframework.core.indicator
Class IndicatorUtils

java.lang.Object
  extended by org.moeaframework.core.indicator.IndicatorUtils

public class IndicatorUtils
extends Object

Collection of methods shared by indicators.


Method Summary
static double distanceToNearestSolution(Problem problem, Solution solution, NondominatedPopulation population)
          Returns the Euclidean distance in objective space between the specified solution and the nearest solution in the population.
static double euclideanDistance(Problem problem, Solution a, Solution b)
          Returns the Euclidean distance in objective space between the two solutions.
static double manhattanDistance(Problem problem, Solution a, Solution b)
          Returns the Manhattan distance in objective space between the two solutions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

manhattanDistance

public static double manhattanDistance(Problem problem,
                                       Solution a,
                                       Solution b)
Returns the Manhattan distance in objective space between the two solutions.

Parameters:
problem - the problem
a - the first solution
b - the second solution
Returns:
the Manhattan distance in objective space between the two solutions

euclideanDistance

public static double euclideanDistance(Problem problem,
                                       Solution a,
                                       Solution b)
Returns the Euclidean distance in objective space between the two solutions.

Parameters:
problem - the problem
a - the first solution
b - the second solution
Returns:
the Euclidean distance in objective space between the two solutions

distanceToNearestSolution

public static double distanceToNearestSolution(Problem problem,
                                               Solution solution,
                                               NondominatedPopulation population)
Returns the Euclidean distance in objective space between the specified solution and the nearest solution in the population.

Parameters:
problem - the problem
solution - the solution
population - the population
Returns:
the Euclidean distance in objective space between the specified solution and the nearest solution in the population

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!