GEGELATI

Loading...
Searching...
No Matches
selectionParameters.h
1
38#ifndef SELECTION_PARAMETERS_H
39#define SELECTION_PARAMETERS_H
40
41#include <cstddef>
42#include <cstdint>
43#include <string>
44
45namespace Selector {
50 typedef struct TruncationParameters
51 {
53 inline static const std::string ratioDeletedRootsComment =
54 "// Percentage of deleted (and regenerated) root TPGVertex at each "
55 "generation.\n"
56 "// \"ratioDeletedRoots\" : 0.5, // Default value";
59 double ratioDeletedRoots = 0.5;
60
61 } TruncationParameters;
62
67 typedef struct TournamentParameters
68 {
69
71 inline static const std::string sizeTournamentComment =
72 "// Size of tournament if tournament selection is used.\n"
73 "// \"sizeTournament\" : 5, // Default value";
75 uint64_t sizeTournament = 5;
76
78 inline static const std::string ratioSavedRootsComment =
79 "// Percentage of root TPGVertex saved from the tournament at each "
80 "generation.\n"
81 "// \"ratioSavedRoots\" : 0.05, // Default value";
84 double ratioSavedRoots = 0.5;
85
87 inline static const std::string areElitesReproductibleComment =
88 "// Indicates if the elites are used in the reproduction process.\n"
89 "// \"areElitesReproductible\" : false, // Default value";
91 bool areElitesReproductible = false;
92
93 } TournamentParameters;
94
98 typedef struct SelectionParameters
99 {
100
102 inline static const std::string selectionModeComment =
103 "// Selection mode used. Available modes are:\n"
104 "// - \"truncation\"\n"
105 "// - \"tournament\"\n"
106 "// - \"mapElites\"\n"
107 "// \"_selectionMode\" : Truncation, // Default value";
111 std::string _selectionMode = "truncation";
112
114 TruncationParameters truncation;
116 TournamentParameters tournament;
117 } SelectionParameters;
118} // namespace Selector
119
120#endif
Selector
Definition mapElitesArchiveLogger.h:45
Selector::SelectionParameters
struct Selector::SelectionParameters SelectionParameters
Structure holding all parameters affecting selection.
Selector::TournamentParameters
struct Selector::TournamentParameters TournamentParameters
Structure holding all parameters affecting mutations of Truncation Selection.
Selector::TruncationParameters
struct Selector::TruncationParameters TruncationParameters
Structure holding all parameters affecting mutations of Truncation Selection.
Selector::SelectionParameters
Structure holding all parameters affecting selection.
Definition selectionParameters.h:99
Selector::SelectionParameters::selectionModeComment
static const std::string selectionModeComment
JSon comment.
Definition selectionParameters.h:102
Selector::SelectionParameters::tournament
TournamentParameters tournament
Parameters for ProgramMutator.
Definition selectionParameters.h:116
Selector::SelectionParameters::truncation
TruncationParameters truncation
Parameters for TruncationSelector.
Definition selectionParameters.h:114
Selector::SelectionParameters::_selectionMode
std::string _selectionMode
Definition selectionParameters.h:111
Selector::TournamentParameters
Structure holding all parameters affecting mutations of Truncation Selection.
Definition selectionParameters.h:68
Selector::TournamentParameters::sizeTournament
uint64_t sizeTournament
Size of tournament if tournament selection is used.
Definition selectionParameters.h:75
Selector::TournamentParameters::ratioSavedRoots
double ratioSavedRoots
Definition selectionParameters.h:84
Selector::TournamentParameters::areElitesReproductibleComment
static const std::string areElitesReproductibleComment
JSon comment.
Definition selectionParameters.h:87
Selector::TournamentParameters::ratioSavedRootsComment
static const std::string ratioSavedRootsComment
JSon comment.
Definition selectionParameters.h:78
Selector::TournamentParameters::sizeTournamentComment
static const std::string sizeTournamentComment
JSon comment.
Definition selectionParameters.h:71
Selector::TournamentParameters::areElitesReproductible
bool areElitesReproductible
Indicates if the elites are used in the reproduction process.
Definition selectionParameters.h:91
Selector::TruncationParameters
Structure holding all parameters affecting mutations of Truncation Selection.
Definition selectionParameters.h:51
Selector::TruncationParameters::ratioDeletedRootsComment
static const std::string ratioDeletedRootsComment
JSon comment.
Definition selectionParameters.h:53
Selector::TruncationParameters::ratioDeletedRoots
double ratioDeletedRoots
Definition selectionParameters.h:59