#include <CglCutGenerator.hpp>
Inheritance diagram for CglCutGenerator:
Public Member Functions | |
Generate Cuts | |
virtual void | generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const =0 |
Generate cuts for the model data contained in si. | |
Constructors and destructors | |
CglCutGenerator () | |
Default constructor. | |
CglCutGenerator (const CglCutGenerator &) | |
Copy constructor. | |
virtual CglCutGenerator * | clone () const =0 |
Clone. | |
CglCutGenerator & | operator= (const CglCutGenerator &rhs) |
Assignment operator. | |
virtual | ~CglCutGenerator () |
Destructor. | |
virtual std::string | generateCpp (FILE *fp) |
Create C++ lines to get to current state. | |
virtual void | refreshSolver (OsiSolverInterface *solver) |
This can be used to refresh any inforamtion. | |
Gets and Sets | |
int | getAggressiveness () const |
Get Aggressiveness - 0 = neutral, 100 is normal root node. | |
void | setAggressiveness (int value) |
Set Aggressiveness - 0 = neutral, 100 is normal root node. | |
virtual bool | mayGenerateRowCutsInTree () const |
Returns true if may generate Row cuts in tree (rather than root node). | |
virtual bool | needsOptimalBasis () const |
Return true if needs optimal basis to do cuts. | |
Public Attributes | |
int | aggressive_ |
Aggressiveness - 0 = neutral, 100 is normal root node. |
This is an abstract base class for generating cuts. A specific cut generator will inherit from this class.
Definition at line 47 of file CglCutGenerator.hpp.
|
Default constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Generate cuts for the model data contained in si. The generated cuts are inserted into and returned in the collection of cuts cs. Implemented in CglAllDifferent, CglClique, CglDuplicateRow, CglFlowCover, CglGomory, CglKnapsackCover, CglLiftAndProject, CglMixedIntegerRounding, CglMixedIntegerRounding2, CglOddHole, CglProbing, CglRedSplit, CglSimpleRounding, CglStored, and CglTwomir. |
|
Clone.
Implemented in CglAllDifferent, CglClique, CglDuplicateRow, CglFlowCover, CglGomory, CglKnapsackCover, CglLiftAndProject, CglMixedIntegerRounding, CglMixedIntegerRounding2, CglOddHole, CglProbing, CglRedSplit, CglSimpleRounding, CglStored, and CglTwomir. |
|
Assignment operator.
|
|
Create C++ lines to get to current state.
Reimplemented in CglAllDifferent, CglClique, CglDuplicateRow, CglFlowCover, CglGomory, CglKnapsackCover, CglLiftAndProject, CglMixedIntegerRounding, CglMixedIntegerRounding2, CglProbing, CglRedSplit, CglSimpleRounding, and CglTwomir. Definition at line 80 of file CglCutGenerator.hpp. |
|
This can be used to refresh any inforamtion.
Reimplemented in CglAllDifferent, CglDuplicateRow, CglMixedIntegerRounding, CglMixedIntegerRounding2, CglOddHole, and CglProbing. Definition at line 83 of file CglCutGenerator.hpp. |
|
Get Aggressiveness - 0 = neutral, 100 is normal root node. Really just a hint to cut generator Definition at line 92 of file CglCutGenerator.hpp. |
|
Set Aggressiveness - 0 = neutral, 100 is normal root node. Really just a hint to cut generator Definition at line 99 of file CglCutGenerator.hpp. |
|
Returns true if may generate Row cuts in tree (rather than root node). Used so know if matrix will change in tree. Really meant so column cut generators can still be active without worrying code. Default is true Reimplemented in CglAllDifferent, and CglProbing. |
|
Return true if needs optimal basis to do cuts.
Reimplemented in CglGomory, CglRedSplit, and CglTwomir. |
|
Aggressiveness - 0 = neutral, 100 is normal root node. Really just a hint to cut generator Definition at line 123 of file CglCutGenerator.hpp. |