|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.core.Population
org.moeaframework.core.NondominatedPopulation
public class NondominatedPopulation
A population that maintains the property of pair-wise non-dominance between
all solutions. When the add method is invoked with a new solution,
all solutions currently in the population that are dominated by the new
solution are removed. If the new solution is dominated by any member of the
population, the new solution is not added.
| Constructor Summary | |
|---|---|
NondominatedPopulation()
Constructs an empty non-dominated population using the Pareto dominance relation. |
|
NondominatedPopulation(DominanceComparator comparator)
Constructs an empty non-dominated population using the specified dominance relation. |
|
NondominatedPopulation(DominanceComparator comparator,
Iterable<? extends Solution> iterable)
Constructs a non-dominated population using the specified dominance comparator and initialized with the specified solutions. |
|
NondominatedPopulation(Iterable<? extends Solution> iterable)
Constructs a non-dominated population using the Pareto dominance relation and initialized with the specified solutions. |
|
| Method Summary | |
|---|---|
boolean |
add(Solution newSolution)
If newSolution is dominates any solution or is non-dominated with
all solutions in this population, the dominated solutions are removed and
newSolution is added to this population. |
protected double |
distance(Solution s1,
Solution s2)
Returns the Euclidean distance between two solutions in objective space. |
protected boolean |
forceAddWithoutCheck(Solution newSolution)
Adds the specified solution to the population, bypassing the non-domination check. |
DominanceComparator |
getComparator()
Returns the dominance comparator used by this non-dominated population. |
| Methods inherited from class org.moeaframework.core.Population |
|---|
addAll, addAll, clear, contains, containsAll, containsAll, get, indexOf, isEmpty, iterator, remove, remove, removeAll, removeAll, size, sort, truncate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NondominatedPopulation()
public NondominatedPopulation(DominanceComparator comparator)
comparator - the dominance relation used by this non-dominated
populationpublic NondominatedPopulation(Iterable<? extends Solution> iterable)
iterable - the solutions used to initialize this non-dominated
population
public NondominatedPopulation(DominanceComparator comparator,
Iterable<? extends Solution> iterable)
comparator - the dominance relation used by this non-dominated
populationiterable - the solutions used to initialize this non-dominated
population| Method Detail |
|---|
public boolean add(Solution newSolution)
newSolution is dominates any solution or is non-dominated with
all solutions in this population, the dominated solutions are removed and
newSolution is added to this population. Otherwise,
newSolution is dominated and is not added to this population.
add in class PopulationnewSolution - the solution to be added
true if the population was modified as a result of this
method; false otherwise.protected boolean forceAddWithoutCheck(Solution newSolution)
This method should only be used internally, and should never be made public by any subclasses.
newSolution - the solution to be added
protected double distance(Solution s1,
Solution s2)
s1 - the first solutions2 - the second solution
public DominanceComparator getComparator()
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||