Click or drag to resize

TournamentSelectionT 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
SystemObject
  FinMath.MachineLearning.EvolutionaryAlgorithmsSelectionAlgorithmT
    FinMath.MachineLearning.EvolutionaryAlgorithmsTournamentSelectionT

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 TournamentSelectionT 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 SelectionAlgorithmTNewGeneration(T, Double, Int32).)
Public methodSelect
This method is called each time genetic algorithm needs a parent for crossover.
(Overrides SelectionAlgorithmTSelect.)
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 SelectionAlgorithmT.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also