Substitute rng_type with rng_uint32_type for clearness.
[PaGMO.git] / GOclasses / algorithms / SGA.h
blobc8464c288017bb8e56c725b6f019eb5b4594c281
1 /*
2 * SGA.h
3 * Simple Genetic Algorithm
5 * Created by Dario Izzo on 10/5/08.
6 * Copyright 2008 __MyCompanyName__. All rights reserved.
8 */
10 #ifndef SGA_H
11 #define SGA_H
13 #include "population.h"
14 #include <vector>
15 #include <math.h>
16 #include "PkRandom.h"
17 #include "GOproblem.h"
19 class SGAalgorithm{
20 public:
22 Population evolve(Population deme, GOProblem& problem);
24 void initSGA(int generationsInit,
25 int SolDimInit,
26 double CRInit,
27 double MInit,
28 int insert_bestInit,
29 uint32_t randomSeed
32 private:
33 int generations;
34 int SolDim;
35 double CR; //crossover
36 double M; //mutation
37 int insert_best;
38 rng_uint32_type rng;
41 #endif