Class RandomSelection<S extends Solution<?>>

java.lang.Object
org.uma.jmetal.component.catalogue.ea.selection.impl.RandomSelection<S>
Type Parameters:
S -
All Implemented Interfaces:
Selection<S>

public class RandomSelection<S extends Solution<?>> extends Object implements Selection<S>
Randomly select a number of solutions from a list, with or without replacement
Author:
Antonio J. Nebro (ajnebro@uma.es)
  • Constructor Details

  • Method Details

    • select

      public List<S> select(List<S> solutionList)
      Specified by:
      select in interface Selection<S extends Solution<?>>
    • withReplacement

      public boolean withReplacement()
    • getNumberOfElementsToSelect

      public int getNumberOfElementsToSelect()