jmetal.util
Class NonDominatedSolutionList

java.lang.Object
  extended by jmetal.core.SolutionSet
      extended by jmetal.util.NonDominatedSolutionList
All Implemented Interfaces:
java.io.Serializable

public class NonDominatedSolutionList
extends SolutionSet

This class implements an unbound list of non-dominated solutions

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmetal.core.SolutionSet
solutionsList_
 
Constructor Summary
NonDominatedSolutionList()
          Constructor.
NonDominatedSolutionList(java.util.Comparator dominance)
          Constructor.
 
Method Summary
 boolean add(Solution solution)
          Inserts a solution in the list
 
Methods inherited from class jmetal.core.SolutionSet
add, best, clear, get, getCapacity, getMaxSize, indexWorst, iterator, printFeasibleFUN, printFeasibleVAR, printObjectives, printObjectivesToFile, printVariablesToFile, remove, replace, setCapacity, size, sort, union, worst, writeObjectivesToMatrix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonDominatedSolutionList

public NonDominatedSolutionList()
Constructor. The objects of this class are lists of non-dominated solutions according to a Pareto dominance comparator.


NonDominatedSolutionList

public NonDominatedSolutionList(java.util.Comparator dominance)
Constructor. This constructor creates a list of non-dominated individuals using a comparator object.

Parameters:
dominance - The comparator for dominance checking.
Method Detail

add

public boolean add(Solution solution)
Inserts a solution in the list

Overrides:
add in class SolutionSet
Parameters:
solution - The solution to be inserted.
Returns:
true if the operation success, and false if the solution is dominated or if an identical individual exists. The decision variables can be null if the solution is read from a file; in that case, the domination tests are omitted