Class BestSolutionSelection<S>

java.lang.Object
org.uma.jmetal.operator.selection.impl.BestSolutionSelection<S>
All Implemented Interfaces:
Serializable, Operator<List<S>,S>, SelectionOperator<List<S>,S>

public class BestSolutionSelection<S> extends Object implements SelectionOperator<List<S>,S>
This class implements a selection operator used for selecting the best solution in a list according to a given comparator.
Author:
Antonio J. Nebro invalid input: '<'antonio@lcc.uma.es>
See Also:
  • Constructor Details

    • BestSolutionSelection

      public BestSolutionSelection(Comparator<S> comparator)
  • Method Details

    • execute

      public S execute(List<S> solutionList)
      Execute() method
      Specified by:
      execute in interface Operator<List<S>,S>
      Parameters:
      solutionList - The data to process