onegpy.operators.selection.EliteSelection

class onegpy.operators.selection.EliteSelection(k, problem, replacement=False)[source]

Elite selection class

__init__(k, problem, replacement=False)[source]
Parameters:
  • k – int. The number of solutions which are selected.
  • problem – problem object. target problem.
  • replacement – bool. If replacement is True, duplicated solutions are selected.

Otherwise, all the solutions are unique in an output population.

Methods

__init__(k, problem[, replacement])
param k:int. The number of solutions which are selected.
not_changeable_warning()

Attributes

k
n_in
n_out