onegpy.operators.selection.RandomSelection¶
-
class
onegpy.operators.selection.RandomSelection(k, replacement)[source]¶ Random selection class.
-
__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.
Methods
__init__(k, replacement)param k: int. The number of solutions which are selected. not_changeable_warning()Attributes
kn_inn_out-