GEGELATI

Loading...
Searching...
No Matches
truncationSelector.h
1
2
3#ifndef TRUNCATION_SELECTOR_H
4#define TRUNCATION_SELECTOR_H
5
6#include "selector/selector.h"
7
8namespace Selector {
9
14 class TruncationSelector : public Selector
15 {
16 public:
24 TruncationSelector(std::shared_ptr<TPG::TPGGraph> graph,
25 const Learn::LearningParameters& params)
26 : Selector{graph, params}
27 {
28 }
29
40 virtual void doSelection(
41 std::multimap<std::shared_ptr<Learn::EvaluationResult>,
42 const TPG::TPGVertex*>& results,
43 Mutator::RNG& rng) override;
44 };
45}; // namespace Selector
46
47#endif // TRUNCATION_SELECTOR_H
Mutator::RNG
Definition rng.h:52
Selector::Selector::params
const Learn::LearningParameters & params
Parameters for the selection.
Definition selector.h:26
Selector::Selector::graph
std::shared_ptr< TPG::TPGGraph > graph
TPGGraph on which the TPGVertex can be selected or deleted.
Definition selector.h:23
Selector::TruncationSelector
Selection class that will do a selection with a truncation. This is the classic selection methods use...
Definition truncationSelector.h:15
Selector::TruncationSelector::doSelection
virtual void doSelection(std::multimap< std::shared_ptr< Learn::EvaluationResult >, const TPG::TPGVertex * > &results, Mutator::RNG &rng) override
override of doSelection method
Definition truncationSelector.cpp:5
Selector::TruncationSelector::TruncationSelector
TruncationSelector(std::shared_ptr< TPG::TPGGraph > graph, const Learn::LearningParameters &params)
Constructor for Selector.
Definition truncationSelector.h:24
TPG::TPGVertex
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
Selector
Definition mapElitesArchiveLogger.h:45
Learn::LearningParameters
Structure for simplifying the transmission of LearningParameters to functions.
Definition learningParameters.h:55