37#ifndef MUTATION_PARAMETERS_H
38#define MUTATION_PARAMETERS_H
50 "// Number of TPGAction vertex of the initialized TPGGraph.\n"
51 "// This parameter is generally automatically set by the "
52 "LearningEnvironment.\n"
53 "// /* \"nbActions\" : 0,*/ // Commented by default";
59 "// Number of root TPGTeams to maintain when populating the "
61 "// \"nbRoots\" : 100, // Default value";
67 "// Maximum number of TPGEdge connected to each TPGTeam of the "
70 "// \"maxInitOutgoingEdges\" : 3, // Default value";
77 "// Maximum number of outgoing edge during TPGGraph mutations.\n"
78 "// \"maxOutgoingEdges\" : 5, // Default value";
84 "// Probability of deleting an outgoing Edge of a Team.\n"
85 "// \"pEdgeDeletion\" : 0.7, // Default value";
91 "// Probability of adding an outgoing Edge to a Team.\n"
92 "// \"pEdgeAddition\" : 0.7, // Default value";
98 "// Probability of mutating the Program of an outgoing Edge.\n"
99 "// \"pProgramMutation\" : 0.2, // Default value";
104 inline static const std::string
106 "// When a Program is mutated, makes sure its behavior is no "
108 "// \"forceProgramBehaviorChangeOnMutation\" : false, // "
118 "// Probability of changing the destination of an Edge.\n"
119 "// \"pEdgeDestinationChange\" : 0.1, // Default value";
125 "// Probability of the new destination of an Edge to be an "
127 "// \"pEdgeDestinationIsAction\" : 0.5, // Default value";
139 "// Maximum number of Line within the Program of the TPG.\n"
140 "// \"maxProgramSize\" : 96, // Default value";
146 "// Probability of deleting a line of the Program.\n"
147 "// \"pDelete\" : 0.5, // Default value";
153 "// Probability of inserting a line in the Program.\n"
154 "// \"pAdd\" : 0.5, // Default value";
160 "// Probability of altering a line of the Program.\n"
161 "// \"pMutate\" : 1.0, // Default value";
167 "// Probability of swapping two lines of the Program.\n"
168 "// \"pSwap\" : 1.0, // Default value";
174 "// Probability of each constant to be mutated.\n"
175 "// \"pConstantMutation\" : 0.5, // Default value";
181 "// Minimum constant value possible.\n"
182 "// \"minConstValue\" : -10, // Default value";
188 "// Maximum constant value possible.\n"
189 "// \"maxConstValue\" : 100, // Default value";
Definition: deterministicRandom.h:44
struct Mutator::ProgramParameters ProgramParameters
Structure holding all parameters affecting mutations of Program.
struct Mutator::TPGParameters TPGParameters
Structure holding all parameters affecting mutations of TPGGraph.
struct Mutator::MutationParameters MutationParameters
Structure holding all parameters affecting stochastic mutations.
Structure holding all parameters affecting stochastic mutations.
Definition: mutationParameters.h:198
ProgramParameters prog
Parameters for ProgramMutator.
Definition: mutationParameters.h:202
TPGParameters tpg
Parameters for TPGMutator.
Definition: mutationParameters.h:200
Structure holding all parameters affecting mutations of Program.
Definition: mutationParameters.h:136
static const std::string pSwapComment
JSon comment.
Definition: mutationParameters.h:166
size_t maxProgramSize
Maximum number of Line within the Program of the TPGGraph.
Definition: mutationParameters.h:142
static const std::string maxProgramSizeComment
JSon comment.
Definition: mutationParameters.h:138
static const std::string pDeleteComment
JSon comment.
Definition: mutationParameters.h:145
double pDelete
Probability of deleting a line of the Program.
Definition: mutationParameters.h:149
static const std::string maxConstValueComment
JSon comment.
Definition: mutationParameters.h:187
double pConstantMutation
Probability of each constant to be mutated.
Definition: mutationParameters.h:177
double pMutate
Probability of altering a line of the Program.
Definition: mutationParameters.h:163
int32_t minConstValue
Minimum constant value possible.
Definition: mutationParameters.h:184
static const std::string pConstantMutationComment
JSon comment.
Definition: mutationParameters.h:173
double pSwap
Probability of swapping two lines of the Program.
Definition: mutationParameters.h:170
double pAdd
Probability of inserting a line in the Program.
Definition: mutationParameters.h:156
static const std::string pMutateComment
JSon comment.
Definition: mutationParameters.h:159
static const std::string minConstValueComment
JSon comment.
Definition: mutationParameters.h:180
int32_t maxConstValue
Maximum constant value possible.
Definition: mutationParameters.h:191
static const std::string pAddComment
JSon comment.
Definition: mutationParameters.h:152
Structure holding all parameters affecting mutations of TPGGraph.
Definition: mutationParameters.h:47
double pEdgeDeletion
Probability of deleting an outgoing TPGEdge of a TPGTeam.
Definition: mutationParameters.h:87
static const std::string pEdgeDeletionComment
JSon comment.
Definition: mutationParameters.h:83
double pEdgeAddition
Probability of adding an outgoing TPGEdge to a TPGTeam.
Definition: mutationParameters.h:94
size_t maxInitOutgoingEdges
Definition: mutationParameters.h:73
size_t nbRoots
Number of root TPGTeams to maintain when populating the TPGGraph.
Definition: mutationParameters.h:63
size_t nbActions
Number of TPGAction vertex of the initialized TPGGraph.
Definition: mutationParameters.h:55
static const std::string forceProgramBehaviorChangeOnMutationComment
JSon comment.
Definition: mutationParameters.h:105
static const std::string pEdgeAdditionComment
JSon comment.
Definition: mutationParameters.h:90
static const std::string pEdgeDestinationChangeComment
JSon comment.
Definition: mutationParameters.h:117
static const std::string pProgramMutationComment
JSon comment.
Definition: mutationParameters.h:97
static const std::string nbRootsComment
JSon comment.
Definition: mutationParameters.h:58
static const std::string pEdgeDestinationIsActionComment
JSon comment.
Definition: mutationParameters.h:124
bool forceProgramBehaviorChangeOnMutation
Definition: mutationParameters.h:114
double pProgramMutation
Probability of mutating the Program of an outgoing TPGEdge.
Definition: mutationParameters.h:101
static const std::string nbActionsComment
JSon comment.
Definition: mutationParameters.h:49
static const std::string maxInitOutgoingEdgesComment
JSon comment.
Definition: mutationParameters.h:66
double pEdgeDestinationIsAction
Probability of the new destination of a TPGEdge to be a TPGAction.
Definition: mutationParameters.h:129
static const std::string maxOutgoingEdgesComment
JSon comment.
Definition: mutationParameters.h:76
double pEdgeDestinationChange
Probability of changing the destination of a TPGEdge.
Definition: mutationParameters.h:121
size_t maxOutgoingEdges
Maximum number of outgoing edge during TPGGraph mutations.
Definition: mutationParameters.h:80