|
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
org.moeaframework.core.fitness.FitnessBasedArchive
public class FitnessBasedArchive
Maintains a non-dominated archive of solutions with a maximum capacity.
If the size exceeds the capacity, one or more solutions are pruned based on
the fitness calculation. The fitness calculation only occurs when the
addition of a solution exceeds the capacity. The fitness can be manually
calculated by calling update().
| Constructor Summary | |
|---|---|
FitnessBasedArchive(FitnessEvaluator evaluator,
int capacity)
Constructs an empty fitness-based archive. |
|
FitnessBasedArchive(FitnessEvaluator evaluator,
int capacity,
DominanceComparator comparator)
Constructs an empty fitness-based archive. |
|
FitnessBasedArchive(FitnessEvaluator evaluator,
int capacity,
DominanceComparator comparator,
Iterable<? extends Solution> iterable)
Constructs a fitness-based archive initialized with the specified solutions. |
|
FitnessBasedArchive(FitnessEvaluator evaluator,
int capacity,
Iterable<? extends Solution> iterable)
Constructs a fitness-based archive initialized with the specified solutions. |
|
| Method Summary | |
|---|---|
boolean |
add(Solution solution)
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. |
void |
update()
Updates the fitness of all solutions in this population. |
| Methods inherited from class org.moeaframework.core.NondominatedPopulation |
|---|
distance, forceAddWithoutCheck, getComparator |
| 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 FitnessBasedArchive(FitnessEvaluator evaluator,
int capacity)
evaluator - the fitness evaluator for computing the fitness of
solutionscapacity - the maximum capacity of this archive
public FitnessBasedArchive(FitnessEvaluator evaluator,
int capacity,
DominanceComparator comparator)
evaluator - the fitness evaluator for computing the fitness of
solutionscapacity - the maximum capacity of this archivecomparator - the dominance comparator
public FitnessBasedArchive(FitnessEvaluator evaluator,
int capacity,
DominanceComparator comparator,
Iterable<? extends Solution> iterable)
evaluator - the fitness evaluator for computing the fitness of
solutionscapacity - the maximum capacity of this archivecomparator - the dominance comparatoriterable - the solutions used to initialize this population
public FitnessBasedArchive(FitnessEvaluator evaluator,
int capacity,
Iterable<? extends Solution> iterable)
evaluator - the fitness evaluator for computing the fitness of
solutionscapacity - the maximum capacity of this archiveiterable - the solutions used to initialize this population| Method Detail |
|---|
public boolean add(Solution solution)
NondominatedPopulationnewSolution 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 NondominatedPopulationsolution - the solution to be added
true if the population was modified as a result of this
method; false otherwise.public void update()
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||