3 #ifndef CglCutGenerator_H
4 #define CglCutGenerator_H
7 #include "OsiSolverInterface.hpp"
31 virtual void generateCuts(
const OsiSolverInterface & si, OsiCuts & cs,
97 {
return COIN_INT_MAX;}
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const =0
Generate cuts for the model data contained in si.
virtual ~CglCutGenerator()
Destructor.
void setAggressiveness(int value)
Set Aggressiveness - 0 = neutral, 100 is normal root node.
CglCutGenerator()
Default constructor.
CglCutGenerator & operator=(const CglCutGenerator &rhs)
Assignment operator.
virtual bool mayGenerateRowCutsInTree() const
Returns true if may generate Row cuts in tree (rather than root node).
virtual int maximumLengthOfCutInTree() const
Return maximum length of cut in tree.
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.
Cut Generator Base Class.
int getAggressiveness() const
Get Aggressiveness - 0 = neutral, 100 is normal root node.
virtual CglCutGenerator * clone() const =0
Clone.
Information about where the cut generator is invoked from.
int aggressive_
Aggressiveness - 0 = neutral, 100 is normal root node.
virtual std::string generateCpp(FILE *)
Create C++ lines to set the generator in the current state.