Go to the documentation of this file.
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 );
Information about where the cut generator is invoked from.
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.
double beta_
The normalization is beta_=1 or beta_=-1.
virtual CglCutGenerator * clone() const
Clone.
double getBeta() const
Get the normalization : Either beta=+1 or beta=-1.
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.
void CglLiftAndProjectUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglLiftAndProject class.
Cut Generator Base Class.
CglLiftAndProject & operator=(const CglLiftAndProject &rhs)
Assignment operator.
Lift And Project Cut Generator Class.
virtual ~CglLiftAndProject()
Destructor.
CglLiftAndProject()
Default constructor.