Class UniformSelection

java.lang.Object
org.moeaframework.core.selection.UniformSelection
All Implemented Interfaces:
Selection

public class UniformSelection extends Object implements Selection
Uniform selection operator. Solutions are selected from the population with equal probability.
  • Constructor Details

    • UniformSelection

      public UniformSelection()
      Constructs a uniform selection operator.
  • Method Details

    • select

      public Solution[] select(int arity, Population population)
      Description copied from interface: Selection
      Returns an array of length arity of solutions selected from the specified population.
      Specified by:
      select in interface Selection
      Parameters:
      arity - the number of solutions selected from the specified population
      population - the population from which solutions are selected
      Returns:
      an array of length arity of solutions selected from the specified population