5 #ifndef CglLiftAndProject_H
6 #define CglLiftAndProject_H
15 const std::string mpdDir );
24 virtual void generateCuts(
const OsiSolverInterface & si, OsiCuts & cs,
38 if (oneOrMinusOne==1 || oneOrMinusOne==-1){
39 beta_=
static_cast<double>(oneOrMinusOne);
42 throw CoinError(
"Unallowable value. Beta must be 1 or -1",
43 "cutGeneration",
"CglLiftAndProject");
102 const std::string mpdDir );
virtual std::string generateCpp(FILE *fp)
Create C++ lines to get to current state.
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())
Generate lift-and-project cuts for the model of the solver interface, si.
Information about where the cut generator is invoked from.
void CglLiftAndProjectUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglLiftAndProject class.
Lift And Project Cut Generator Class.
double getBeta() const
Get the normalization : Either beta=+1 or beta=-1.
Cut Generator Base Class.
friend void CglLiftAndProjectUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglLiftAndProject class.
void setBeta(int oneOrMinusOne)
Set the normalization : Either beta=+1 or beta=-1.
CglLiftAndProject & operator=(const CglLiftAndProject &rhs)
Assignment operator.
virtual ~CglLiftAndProject()
Destructor.
CglLiftAndProject()
Default constructor.
virtual CglCutGenerator * clone() const
Clone.