boip.h 828 Bytes
#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