GEGELATI
Loading...
Searching...
No Matches
selectionParameters.h
1
36#ifndef SELECTION_PARAMETERS_H
37#define SELECTION_PARAMETERS_H
38
39#include <cstddef>
40#include <cstdint>
41#include <string>
42
43namespace Selector {
48 typedef struct TruncationParameters
49 {
51 inline static const std::string ratioDeletedRootsComment =
52 "// Percentage of deleted (and regenerated) root TPGVertex at each "
53 "generation.\n"
54 "// \"ratioDeletedRoots\" : 0.5, // Default value";
57 double ratioDeletedRoots = 0.5;
58
60
65 typedef struct TournamentParameters
66 {
67
69 inline static const std::string sizeTournamentComment =
70 "// Size of tournament if tournament selection is used.\n"
71 "// \"sizeTournament\" : 5, // Default value";
73 uint64_t sizeTournament = 5;
74
76 inline static const std::string ratioSavedRootsComment =
77 "// Percentage of root TPGVertex saved from the tournament at each "
78 "generation.\n"
79 "// \"ratioSavedRoots\" : 0.05, // Default value";
82 double ratioSavedRoots = 0.5;
83
85 inline static const std::string areElitesReproductibleComment =
86 "// Indicates if the elites are used in the reproduction process.\n"
87 "// \"areElitesReproductible\" : false, // Default value";
90
92
96 typedef struct SelectionParameters
97 {
98
100 inline static const std::string selectionModeComment =
101 "// Selection mode used. Available modes are:\n"
102 "// - \"truncation\"\n"
103 "// - \"tournament\"\n"
104 "// - \"mapElites\"\n"
105 "// \"_selectionMode\" : Truncation, // Default value";
109 std::string _selectionMode = "truncation";
110
116} // namespace Selector
117
118#endif
Definition mapElitesArchiveLogger.h:45
struct Selector::SelectionParameters SelectionParameters
Structure holding all parameters affecting selection.
struct Selector::TournamentParameters TournamentParameters
Structure holding all parameters affecting mutations of Truncation Selection.
struct Selector::TruncationParameters TruncationParameters
Structure holding all parameters affecting mutations of Truncation Selection.
Structure holding all parameters affecting selection.
Definition selectionParameters.h:97
static const std::string selectionModeComment
JSon comment.
Definition selectionParameters.h:100
TournamentParameters tournament
Parameters for ProgramMutator.
Definition selectionParameters.h:114
TruncationParameters truncation
Parameters for TruncationSelector.
Definition selectionParameters.h:112
std::string _selectionMode
Definition selectionParameters.h:109
Structure holding all parameters affecting mutations of Truncation Selection.
Definition selectionParameters.h:66
uint64_t sizeTournament
Size of tournament if tournament selection is used.
Definition selectionParameters.h:73
double ratioSavedRoots
Definition selectionParameters.h:82
static const std::string areElitesReproductibleComment
JSon comment.
Definition selectionParameters.h:85
static const std::string ratioSavedRootsComment
JSon comment.
Definition selectionParameters.h:76
static const std::string sizeTournamentComment
JSon comment.
Definition selectionParameters.h:69
bool areElitesReproductible
Indicates if the elites are used in the reproduction process.
Definition selectionParameters.h:89
Structure holding all parameters affecting mutations of Truncation Selection.
Definition selectionParameters.h:49
static const std::string ratioDeletedRootsComment
JSon comment.
Definition selectionParameters.h:51
double ratioDeletedRoots
Definition selectionParameters.h:57