jmetal.util
Class NonDominatedSolutionList2

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

public class NonDominatedSolutionList2
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
NonDominatedSolutionList2()
          Constructor.
NonDominatedSolutionList2(java.util.Comparator dominance)
          Constructor.
 
Method Summary
 boolean add(Solution solution)
          Inserts a solution in the list
 void reset()
           
 
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

NonDominatedSolutionList2

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


NonDominatedSolutionList2

public NonDominatedSolutionList2(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

reset

public void reset()

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