boipsolution.h
867 Bytes
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef DEF_HBOIPSOLUTION
#define DEF_HBOIPSOLUTION
#include <utility>
#include <vector>
#include <string>
static const double PRECISION(0.0001);
class Boipsolution
{
public:
Boipsolution();
Boipsolution (double obj1, double obj2, std::vector< double > v);
Boipsolution (const Boipsolution &sol);
~Boipsolution ();
double get_obj1_() const;
double get_obj2_() const;
std::vector< double > get_v_() const;
int get_l_() const;
void set_l_(int l);
void set_obj1_(float obj1);
void set_obj2_(float obj2);
void set_v_(std::vector< double > v);
int dominate(Boipsolution s);
private:
double obj1_; //value of objective 1
double obj2_; //value of objective 2
std::vector< double > v_; //values of the decision variable of the integer program
int l_; //label of Pareto set
};
#endif