|
Cgl
0.59.9
|
Zero Half Cut Generator Class. More...
#include <CglZeroHalf.hpp>
Inheritance diagram for CglZeroHalf:
Collaboration diagram for CglZeroHalf:Public Member Functions | |
Generate Cuts | |
| virtual void | generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) |
| Generate zero half cuts for the model accessed through the solver interface. More... | |
Sets and Gets | |
| int | getFlags () const |
| Get flags. More... | |
| void | setFlags (int value) |
| Set flags. More... | |
Constructors and destructors | |
| CglZeroHalf () | |
| Default constructor. More... | |
| CglZeroHalf (const CglZeroHalf &) | |
| Copy constructor. More... | |
| virtual CglCutGenerator * | clone () const |
| Clone. More... | |
| CglZeroHalf & | operator= (const CglZeroHalf &rhs) |
| Assignment operator. More... | |
| virtual | ~CglZeroHalf () |
| Destructor. More... | |
| virtual std::string | generateCpp (FILE *fp) |
| Create C++ lines to get to current state. More... | |
| virtual void | refreshSolver (OsiSolverInterface *solver) |
| This can be used to refresh any information. More... | |
Public Member Functions inherited from CglCutGenerator | |
| CglCutGenerator () | |
| Default constructor. More... | |
| CglCutGenerator (const CglCutGenerator &) | |
| Copy constructor. More... | |
| CglCutGenerator & | operator= (const CglCutGenerator &rhs) |
| Assignment operator. More... | |
| virtual | ~CglCutGenerator () |
| Destructor. More... | |
| int | getAggressiveness () const |
| Get Aggressiveness - 0 = neutral, 100 is normal root node. More... | |
| void | setAggressiveness (int value) |
| Set Aggressiveness - 0 = neutral, 100 is normal root node. More... | |
| void | setGlobalCuts (bool trueOrFalse) |
| Set whether can do global cuts. More... | |
| bool | canDoGlobalCuts () const |
| Say whether can do global cuts. More... | |
| virtual bool | mayGenerateRowCutsInTree () const |
| Returns true if may generate Row cuts in tree (rather than root node). More... | |
| virtual bool | needsOptimalBasis () const |
| Return true if needs optimal basis to do cuts. More... | |
| virtual int | maximumLengthOfCutInTree () const |
| Return maximum length of cut in tree. More... | |
Friends | |
| void | CglZeroHalfUnitTest (const OsiSolverInterface *siP, const std::string mpdDir) |
| A function that tests the methods in the CglZeroHalf class. More... | |
Additional Inherited Members | |
Public Attributes inherited from CglCutGenerator | |
| int | aggressive_ |
| Aggressiveness - 0 = neutral, 100 is normal root node. More... | |
| bool | canDoGlobalCuts_ |
| True if can do global cuts i.e. no general integers. More... | |
Zero Half Cut Generator Class.
This class generates zero half cuts via the following method:
See -
G. Andreello, A. Caprara, M. Fischetti, “Embedding Cuts in a Branch and Cut Framework: a Computational Study with {0,1/2}-Cuts”, INFORMS Journal on Computing 19(2), 229-238, 2007.
Definition at line 26 of file CglZeroHalf.hpp.
| CglZeroHalf::CglZeroHalf | ( | ) |
Default constructor.
| CglZeroHalf::CglZeroHalf | ( | const CglZeroHalf & | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Generate zero half cuts for the model accessed through the solver interface.
Insert generated cuts into the cut set cs.
Implements CglCutGenerator.
|
inline |
Get flags.
Definition at line 44 of file CglZeroHalf.hpp.
|
inline |
Set flags.
Definition at line 47 of file CglZeroHalf.hpp.
|
virtual |
Clone.
Implements CglCutGenerator.
| CglZeroHalf& CglZeroHalf::operator= | ( | const CglZeroHalf & | rhs | ) |
Assignment operator.
|
virtual |
Create C++ lines to get to current state.
Reimplemented from CglCutGenerator.
|
virtual |
This can be used to refresh any information.
Reimplemented from CglCutGenerator.
|
friend |
A function that tests the methods in the CglZeroHalf class.
The only reason for it not to be a member method is that this way it doesn't have to be compiled into the library. And that's a gain, because the library should be compiled with optimization on, but this method should be compiled with debugging.
1.8.5