global.hpp 929 Bytes
Newer Older
Imanol Pérez committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#ifndef GLOBALDEF
#define GLOBALDEF

//////////////////////////////////////////////////////
//                                                  //
//                 Global variables                 //
//                                                  //
//                  Imanol Perez                    //
//                  January 2017                    //
//                                                  //
//////////////////////////////////////////////////////

const int POPULATION_SIZE=100; // Population size
const int MAX_MOVING_AVERAGE=50; // Maximum moving average allowed
const int NUMBER_OF_GENERATIONS=100; // Number of generations that will be simulated
const int FITNESS_TIME_INTERVAL=60; // The fitness function will test the algorithm in a random interval of
									// this length
const double MUTATION_PROBABILITY=0.3; // Probability that a child suffers from a mutation
#endif