36#ifndef TOURNAMENT_SELECTOR_H
37#define TOURNAMENT_SELECTOR_H
39#include "selector/selector.h"
92 std::multimap<std::shared_ptr<Learn::EvaluationResult>,
119 std::multimap<std::shared_ptr<Learn::EvaluationResult>,
const Learn::LearningParameters & params
Parameters for the selection.
Definition selector.h:59
std::shared_ptr< TPG::TPGGraph > graph
TPGGraph on which the TPGVertex can be selected or deleted.
Definition selector.h:56
Selection class that will do a selection with a tournament.
Definition tournamentSelector.h:58
virtual const SelectionContext & updateContext() override
Specialization of updateContext for tournament purposes.
Definition tournamentSelector.cpp:120
std::set< const TPG::TPGVertex * > verticesToDelete
set of TPGVertex filled during the selection process, containing the vertices that went through the t...
Definition tournamentSelector.h:66
virtual void updateAfterPopulate() override
Specialization of updateAfterPopulate for tournament purposes.
Definition tournamentSelector.cpp:187
virtual void launchSelection(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results, Mutator::RNG &rng) override
override of doSelection method.
Definition tournamentSelector.cpp:38
TournamentSelector(std::shared_ptr< TPG::TPGGraph > graph, const Learn::LearningParameters ¶ms)
Constructor for Selector.
Definition tournamentSelector.h:76
virtual void doSelection(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results, Mutator::RNG &rng) override
override of doSelection method
Definition tournamentSelector.cpp:50
virtual const std::set< const TPG::TPGVertex * > & getVerticesToDelete()
getter of the verticesToDelete set.
Definition tournamentSelector.cpp:197
void addToVerticesToDelete(const TPG::TPGVertex *vertex)
add a vertex to the verticesToDelete set.
Definition tournamentSelector.cpp:114
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
Definition mapElitesArchiveLogger.h:45
Structure for simplifying the transmission of LearningParameters to functions.
Definition learningParameters.h:56
Structure to interface between the selector and the TPGMutator.
Definition selectionContext.h:50