MS-RCPSP
Public Member Functions | List of all members
EvolutionaryAlgorithm::TournamentSelector< T > Class Template Reference

Implementation of tournament selection operator. More...

#include <TournamentSelector.h>

Inheritance diagram for EvolutionaryAlgorithm::TournamentSelector< T >:
Inheritance graph
[legend]
Collaboration diagram for EvolutionaryAlgorithm::TournamentSelector< T >:
Collaboration graph
[legend]

Public Member Functions

 TournamentSelector (int _n)
 
T * select (const Population< T > &p) const override
 

Detailed Description

template<class T>
class EvolutionaryAlgorithm::TournamentSelector< T >

Implementation of tournament selection operator.

Definition at line 11 of file TournamentSelector.h.

Constructor & Destructor Documentation

template<class T >
EvolutionaryAlgorithm::TournamentSelector< T >::TournamentSelector ( int  _n)
inline
Parameters
_nTournament size.

Definition at line 14 of file TournamentSelector.h.

Member Function Documentation

template<class T >
T* EvolutionaryAlgorithm::TournamentSelector< T >::select ( const Population< T > &  p) const
overridevirtual

Selects the candidate specimen from the population.

Implements EvolutionaryAlgorithm::Selector< T >.


The documentation for this class was generated from the following file: