onegpy.operators.selection.TournamentSelection¶
-
class
onegpy.operators.selection.TournamentSelection(k, tournament_size, problem, replacement=True)[source]¶ Tournament selection class.
-
__init__(k, tournament_size, problem, replacement=True)[source]¶ Parameters: - k – int. The number of solutions which are selected.
- tournament_size – int. tournament size of the selection.
- 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, tournament_size, problem[, …])param k: int. The number of solutions which are selected. not_changeable_warning()Attributes
kn_inn_out-