Class NonDominatedSolutionListArchive<S extends Solution<?>>

java.lang.Object
org.uma.jmetal.util.archive.impl.NonDominatedSolutionListArchive<S>
All Implemented Interfaces:
Serializable, Archive<S>

public class NonDominatedSolutionListArchive<S extends Solution<?>> extends Object implements Archive<S>
This class implements an archive containing non-dominated solutions
Author:
Antonio J. Nebro <antonio@lcc.uma.es>, Juan J. Durillo
See Also:
  • Constructor Details

    • NonDominatedSolutionListArchive

      public NonDominatedSolutionListArchive()
      Constructor
    • NonDominatedSolutionListArchive

      public NonDominatedSolutionListArchive(Comparator<S> comparator)
      Constructor
  • Method Details

    • add

      public boolean add(S solution)
      Inserts a solution in the list
      Specified by:
      add in interface Archive<S extends Solution<?>>
      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
    • join

      public Archive<S> join(Archive<S> archive)
    • addAll

      public Archive<S> addAll(List<S> list)
    • solutions

      public List<S> solutions()
      Specified by:
      solutions in interface Archive<S extends Solution<?>>
    • size

      public int size()
      Specified by:
      size in interface Archive<S extends Solution<?>>
    • get

      public S get(int index)
      Specified by:
      get in interface Archive<S extends Solution<?>>