TournamentSelection Constructor (Int32, Boolean)

GeneticSharp

TournamentSelection Constructor (Int32, Boolean) GeneticSharp
Initializes a new instance of the TournamentSelection class.

Namespace: GeneticSharp.Domain.Selections
Assembly: GeneticSharp.Domain (in GeneticSharp.Domain.dll) Version: 1.0.5010.36434

Syntax

public TournamentSelection(
	int size,
	bool allowWinnerCompeteNextTournament
)
public TournamentSelection(
	int size,
	bool allowWinnerCompeteNextTournament
)

Parameters

size
Type: OnlineSystem Int32
The size of the tournament, in other words, the number of chromosomes that will participate of each tournament until all need chromosomes be selected.
allowWinnerCompeteNextTournament
Type: OnlineSystem Boolean
If allow any winner in a tournament participate in the next tournament, in other words, if you want to allow a chromosome be selected more the one time.
See Also