LoveBrains  1.0.0
simulator_const.h
1 /*
2 ** simulator_const.h for LoveBrains in /home/robin_f/Programming/Git/CPP/LoveBrains
3 **
4 ** Made by Guillaume ROBIN
5 ** Login <robin_f@epitech.eu>
6 **
7 ** Started on Thu Jul 23 14:16:46 2015 Guillaume ROBIN
8 ** Last update Thu Jul 30 19:36:57 2015 Guillaume ROBIN
9 */
10 
11 #ifndef SIMULATOR_CONST_H_
12 # define SIMULATOR_CONST_H_
13 
14 /*
15 ** Errors.
16 */
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"
26 
27 /*
28 ** Default values.
29 */
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
40 
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)'-'
45 
46 #endif /* !SIMULATOR_CONST_H_ */