11 #ifndef SIMULATOR_CONFIG_H_
12 # define SIMULATOR_CONFIG_H_
17 # include "Simulator/simulator_exception.h"
18 # include "ANN/neural_net.h"
111 GANN::ANN::ActivationType type);
228 double _crossing_rate;
229 double _mutation_rate;
230 double _selection_rate;
231 double _expected_fitness;
232 unsigned int _pool_size;
234 unsigned int _report_interval;
235 unsigned int _pop_size;
236 unsigned int _env_width;
237 unsigned int _env_height;
238 GANN::ANNLayer::FActivate _activation;
239 GANN::ANNLayer::FActivate _output_activation;
240 std::vector<
unsigned int> _infos;
241 GANN::ANN::ActivationType _layer_ftype;
242 GANN::ANN::ActivationType _out_ftype;
void setOutputsActivation(GANN::ANNLayer::FActivate function, GANN::ANN::ActivationType type)
Set the activation function for the output layer of the neural network.
Definition: simulator_config.cc:141
void setPopulationSize(unsigned int size)
Set the population size of the GAEngine.
Definition: simulator_config.cc:93
void setActivation(GANN::ANNLayer::FActivate function, GANN::ANN::ActivationType type)
Set the activation function for the intern layers of the neural network.
Definition: simulator_config.cc:133
DisplayMode
Contains several display options.
Definition: simulator_config.h:32
void setPoolSize(unsigned int size)
Set the pool size for the tournament in the GAEngine.
Definition: simulator_config.cc:75
unsigned int getEnvironmentHeight(void) const
Get the window's height.
Definition: simulator_config.cc:231
SConfig(void)
Constructor.
Definition: simulator_config.cc:23
unsigned int getEnvironmentWidth(void) const
Get the window's width.
Definition: simulator_config.cc:226
Manage the configuration of the simulator.
Definition: simulator_config.h:26
unsigned int getReportInterval(void) const
Get the report interval member.
Definition: simulator_config.cc:201
GANN::ANN::ActivationType getOutputActivationType(void) const
Get the type of the activation function pointer inside the output layer.
Definition: simulator_config.cc:241
int getMaxEpochs(void) const
Get the maximum epochs member.
Definition: simulator_config.cc:196
void setMaxEpochs(int max)
Set the maximum epochs for the GAEngine.
Definition: simulator_config.cc:83
void setDisplayMode(DisplayMode display)
Set the display mode of the environment.
Definition: simulator_config.cc:163
unsigned int getPoolSize(void) const
Get the pool size member.
Definition: simulator_config.cc:191
unsigned int getPopulationSize(void) const
Get the population size member.
Definition: simulator_config.cc:206
void setSelectionRate(double rate)
Set the selection rate that will be used by the GAEngine.
Definition: simulator_config.cc:62
Contains objects that manage the simulation.
std::vector< unsigned int > const & getANNInfos(void) const
Get the neural network topology member.
Definition: simulator_config.cc:211
GANN::ANN::ActivationType getLayerActivationType(void) const
Get the type of the activation function pointer inside an intern layer.
Definition: simulator_config.cc:236
void setANNInfos(std::string infos)
Set the topology of the neural network used by the AI objects.
Definition: simulator_config.cc:101
GANN::ANNLayer::FActivate getActivation(void) const
Get the activation function pointer of the intern layers.
Definition: simulator_config.cc:216
void setEnvironmentSize(unsigned int width, unsigned int height)
Set the environment size (window size).
Definition: simulator_config.cc:150
double getMutationRate(void) const
Get the mutation rate member.
Definition: simulator_config.cc:176
void setCrossingRate(double rate)
Set the crossing rate that will be used by the GAEngine.
Definition: simulator_config.cc:46
Contains all the objects that provide the management for the genetic algorithm with neural networks...
Definition: ann_exception.h:16
double getExpectedFitness(void) const
Get the expected fitness member.
Definition: simulator_config.cc:186
void setReportInterval(unsigned int interval)
Set the report interval for the GAEngine.
Definition: simulator_config.cc:88
void setIsTournament(bool isTournament)
Set if it's a tournament or not.
Definition: simulator_config.cc:158
void setExpectedFitness(double rate)
Set the expected fitness that will be used by the GAEngine.
Definition: simulator_config.cc:70
void setMutationRate(double rate)
Set the mutation rate that will be used by the GAEngine.
Definition: simulator_config.cc:54
bool isTournament(void) const
Get the boolean that says if it's a tournament.
Definition: simulator_config.cc:246
GANN::ANNLayer::FActivate getOutputsActivation(void) const
Get the activation function pointer of the output layer.
Definition: simulator_config.cc:221
double getSelectionRate(void) const
Get the selection rate member.
Definition: simulator_config.cc:181
double getCrossingRate(void) const
Get the crossing rate member.
Definition: simulator_config.cc:171
DisplayMode getDisplayMode(void) const
Get the current display mode of the environment.
Definition: simulator_config.cc:251