11 #ifndef SIMULATOR_CONST_H_
12 # define SIMULATOR_CONST_H_
17 # define ERR_SCONFIG_CROSSRATE (const char *)"Error: Simulator: invalid crossing rate"
18 # define ERR_SCONFIG_MUTERATE (const char *)"Error: Simulator: invalid mutation rate"
19 # define ERR_SCONFIG_SELECTRATE (const char *)"Error: Simulator: invalid selection rate"
20 # define ERR_SCONFIG_POOLSIZE (const char *)"Error: Simulator: invalid pool size"
21 # define ERR_SCONFIG_POPSIZE (const char *)"Error: Simulator: invalid population size"
22 # define ERR_SCONFIG_INFOS (const char *)"Error: Simulator: invalid neural net infos"
23 # define ERR_SCONFIG_FUNCTION (const char *)"Error: Simulator: invalid function pointer (null)"
24 # define ERR_SCONFIG_ENVSIZE (const char *)"Error: Simulator: invalid environment size"
25 # define ERR_SIMULATOR_ENV (const char *)"Error: Simulator: environment is null"
30 # define DEF_MIN_RATE (double)0.00
31 # define DEF_MAX_RATE (double)1.00
32 # define DEF_CROSSING_RATE (double)0.7
33 # define DEF_MUTATION_RATE (double)0.1
34 # define DEF_SELECTION_RATE (double)0.9
35 # define DEF_POOL_SIZE (double)5
36 # define DEF_MAX_EPOCHS (int)-1
37 # define DEF_REPORT_INTERVAL (unsigned int)1
38 # define DEF_POPULATION_SIZE (unsigned int)100
39 # define DEF_EXPECTED_FITNESS (double)1
41 # define DEF_SIM_DELIM (const char *)"-"
42 # define DEF_SIM_MINNUM (char)'0'
43 # define DEF_SIM_MAXNUM (char)'9'
44 # define DEF_SIM_DELIMCHAR (char)'-'