Fix newline in Windows.
[PaGMO.git] / GOclasses / algorithms / PSO.h
blob41e260a4b65e8c120602cda738441fe3994e2fb5
1 /*
2 * PSO.h
3 * SeGMO, a Sequential Global Multiobjective Optimiser
5 * Created by Dario Izzo on 5/16/08.
6 * Copyright 2008 Àdvanced Concepts Team (European Space Agency). All rights reserved.
8 */
10 #ifndef PSO_H
11 #define PSO_H
13 #include <cmath>
14 #include <vector>
16 #include "population.h"
17 #include "rng.h"
19 class PSOalgorithm{
20 public:
22 Population evolve(Population deme, GOProblem& problem);
24 void initPSO(int generationsInit,
25 int SolDimInit,
26 double omegaInit,
27 double eta1Init,
28 double eta2Init,
29 double vcoeffInit,
30 uint32_t randomSeed);
32 private:
33 int generations;
34 int SolDim;
35 double omega;
36 double eta1;
37 double eta2;
38 double vcoeff;
39 rng_double_type drng;
42 #endif