Click or drag to resize

TournamentSelection<T> Class

Tournament selection chooses each parent by choosing tournamentSize individual at random and then choosing the best individual out of that set to be a parent.
Inheritance Hierarchy
System.Object
  FinMath.MachineLearning.EvolutionaryAlgorithms.SelectionAlgorithm<T>
    FinMath.MachineLearning.EvolutionaryAlgorithms.TournamentSelection<T>

Namespace:  FinMath.MachineLearning.EvolutionaryAlgorithms
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public class TournamentSelection<T> : SelectionAlgorithm<T>

Type Parameters

T
Individual's type.

The TournamentSelection<T> type exposes the following members.

Constructors
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodNewGeneration
This method is called by genetic algorithm one time per generation before selection occurs.
(Overrides SelectionAlgorithm<T>.NewGeneration(T[],Double[], Int32).)
Public methodSelect()
This method is called each time genetic algorithm needs a parent for crossover.
(Overrides SelectionAlgorithm<T>.Select().)
Public methodSelect(T, T)
This method is called each time genetic algorithm needs two parents for crossover. This method calls Select() two times by default.
(Inherited from SelectionAlgorithm<T>.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also