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