Class NaryTournamentSelection<S extends Solution<?>>

java.lang.Object
org.uma.jmetal.operator.selection.impl.NaryTournamentSelection<S>
All Implemented Interfaces:
Serializable, Operator<List<S>,S>, SelectionOperator<List<S>,S>
Direct Known Subclasses:
BinaryTournamentSelection

public class NaryTournamentSelection<S extends Solution<?>> extends Object implements SelectionOperator<List<S>,S>
Applies a N-ary tournament selection to return the best solution between N that have been chosen at random from a solution list.
Author:
Antonio J. Nebro <antonio@lcc.uma.es>
See Also:
  • Constructor Details

    • NaryTournamentSelection

      public NaryTournamentSelection()
      Constructor
    • NaryTournamentSelection

      public NaryTournamentSelection(int tournamentSize, Comparator<S> comparator)
      Constructor
  • Method Details

    • execute

      public S execute(List<S> solutionList)
      Specified by:
      execute in interface Operator<List<S extends Solution<?>>,S extends Solution<?>>
      Parameters:
      solutionList - The data to process
    • getTournamentSize

      public int getTournamentSize()