Go to the documentation of this file.
5 #ifndef CglCutGenerator_H
6 #define CglCutGenerator_H
9 #include "OsiSolverInterface.hpp"
32 virtual void generateCuts(
const OsiSolverInterface &si, OsiCuts &cs,
Information about where the cut generator is invoked from.
void setGlobalCuts(bool trueOrFalse)
Set whether can do global cuts.
int aggressive_
Aggressiveness - 0 = neutral, 100 is normal root node.
CglCutGenerator & operator=(const CglCutGenerator &rhs)
Assignment operator.
int getAggressiveness() const
Get Aggressiveness - 0 = neutral, 100 is normal root node.
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.
Cut Generator Base Class.
virtual bool mayGenerateRowCutsInTree() const
Returns true if may generate Row cuts in tree (rather than root node).
CglCutGenerator()
Default constructor.
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())=0
Generate cuts for the model data contained in si.
virtual CglCutGenerator * clone() const =0
Clone.
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.
virtual int maximumLengthOfCutInTree() const
Return maximum length of cut in tree.
virtual bool needsOptimalBasis() const
Return true if needs optimal basis to do cuts.
bool canDoGlobalCuts() const
Say whether can do global cuts.