onegpy.operators.selection.AbstractSelection

class onegpy.operators.selection.AbstractSelection(k, replacement)[source]

Abstract class for selection.

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

Otherwise, all the solutions are unique in an output population. :return: function of selection

Methods

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

Attributes

k
n_in
n_out