5 #ifndef CglCutGenerator_H 6 #define CglCutGenerator_H 9 #include "OsiSolverInterface.hpp" 33 virtual void generateCuts(
const OsiSolverInterface & si, OsiCuts & cs,
104 {
return COIN_INT_MAX;}
int aggressive_
Aggressiveness - 0 = neutral, 100 is normal root node.
int getAggressiveness() const
Get Aggressiveness - 0 = neutral, 100 is normal root node.
Information about where the cut generator is invoked from.
CglCutGenerator()
Default constructor.
Cut Generator Base Class.
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())=0
Generate cuts for the model data contained in si.
virtual int maximumLengthOfCutInTree() const
Return maximum length of cut in tree.
bool canDoGlobalCuts_
True if can do global cuts i.e. no general integers.
virtual void refreshSolver(OsiSolverInterface *)
This can be used to refresh any information.
virtual bool needsOptimalBasis() const
Return true if needs optimal basis to do cuts.
bool canDoGlobalCuts() const
Say whether can do global cuts.
virtual CglCutGenerator * clone() const =0
Clone.
virtual bool mayGenerateRowCutsInTree() const
Returns true if may generate Row cuts in tree (rather than root node).
virtual ~CglCutGenerator()
Destructor.
void setAggressiveness(int value)
Set Aggressiveness - 0 = neutral, 100 is normal root node.
virtual std::string generateCpp(FILE *)
Create C++ lines to set the generator in the current state.
CglCutGenerator & operator=(const CglCutGenerator &rhs)
Assignment operator.
void setGlobalCuts(bool trueOrFalse)
Set whether can do global cuts.