boip.h
828 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
#ifndef DEF_HBOIP
#define DEF_HBOIP
#include <vector>
#include "ip.h"
#include "boipsolution.h"
class Boip
{
public :
Boip();
Boip(int coef1, int coef2, float lambdaMin, float lambdaMax, float U2);
Boip(const Boip& that); //constructor copy
~Boip();
void add_bj_ct(BoipSolution& s);
int solve(BoipSolution& s);
Boip& operator=(const Boip& that);
protected :
IP *ip_; // pointer to the integer program
std::vector< unsigned int > v_; // vector to store the vertices variables
int coef1_; //coefficient of the first objective function
int coef2_; //coefficient of the second objective function
float lambdaMin_; // minimum threshold value for the probability value
float lambdaMax_; // maximum threshold value for the probability value
float U2_;
};
#endif