-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetUpParams.h
37 lines (30 loc) · 1.24 KB
/
SetUpParams.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef SETUPPARAMS_H
#define SETUPPARAMS_H
#include <iostream>
#include <vector>
using namespace std;
class SetUpParams
{
private:
unsigned int _independent_runs; // number of independent runs
unsigned int _nb_evolution_steps; // number of iterations per run
unsigned int _population_size; // number of solutions in the population
unsigned int _solution_size; // size of each particle
public:
SetUpParams (unsigned int independent_runs = 30, unsigned int nb_evolution_steps = 10050,
unsigned int population_size = 40, unsigned int solution_size = 20);
friend ostream& operator<<(ostream& os, const SetUpParams& setup);
friend istream& operator>>(istream& is, SetUpParams& setup);
unsigned int independent_runs() const;
unsigned int nb_evolution_steps() const;
unsigned int population_size() const;
unsigned int solution_size() const;
void max_intervalle (const int val);
void min_intervalle (const int val);
void independent_runs(const unsigned int val);
void nb_evolution_steps(const unsigned int val);
void population_size(const unsigned int val);
void solution_size(const unsigned int val);
~SetUpParams();
};
#endif // SETUPPARAMS_H