Cgl
trunk
|
Lifed Simple Generalized Flow Cover Cut Generator Class. More...
#include <CglFlowCover.hpp>
Public Member Functions | |
void | flowPreprocess (const OsiSolverInterface &si) const |
Do the following tasks: | |
Generate Cuts | |
virtual void | generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const |
Generate Lifed Simple Generalized flow cover cuts for the model data contained in si. | |
Functions to query and set maximum number of cuts can be | |
generated. | |
int | getMaxNumCuts () const |
void | setMaxNumCuts (int mc) |
Constructors and destructors | |
CglFlowCover () | |
Default constructor. | |
CglFlowCover (const CglFlowCover &) | |
Copy constructor. | |
virtual CglCutGenerator * | clone () const |
Clone. | |
CglFlowCover & | operator= (const CglFlowCover &rhs) |
Assignment operator. | |
virtual | ~CglFlowCover () |
Destructor. | |
virtual std::string | generateCpp (FILE *fp) |
Create C++ lines to get to current state. | |
Static Public Member Functions | |
Functions to query and set the number of cuts have been | |
generated. | |
static int | getNumFlowCuts () |
static void | setNumFlowCuts (int fc) |
static void | incNumFlowCuts (int fc=1) |
Friends | |
void | CglFlowCoverUnitTest (const OsiSolverInterface *siP, const std::string mpdDir) |
A function that tests the methods in the CglFlowCover class. |
Lifed Simple Generalized Flow Cover Cut Generator Class.
Definition at line 148 of file CglFlowCover.hpp.
Default constructor.
CglFlowCover::CglFlowCover | ( | const CglFlowCover & | ) |
Copy constructor.
virtual CglFlowCover::~CglFlowCover | ( | ) | [virtual] |
Destructor.
void CglFlowCover::flowPreprocess | ( | const OsiSolverInterface & | si | ) | const |
Do the following tasks:
This function is called by generateCuts(const OsiSolverInterface & si, OsiCuts & cs)
.
virtual void CglFlowCover::generateCuts | ( | const OsiSolverInterface & | si, |
OsiCuts & | cs, | ||
const CglTreeInfo | info = CglTreeInfo() |
||
) | const [virtual] |
Generate Lifed Simple Generalized flow cover cuts for the model data contained in si.
The generated cuts are inserted into and returned in the collection of cuts cs.
Implements CglCutGenerator.
int CglFlowCover::getMaxNumCuts | ( | ) | const [inline] |
Definition at line 178 of file CglFlowCover.hpp.
void CglFlowCover::setMaxNumCuts | ( | int | mc | ) | [inline] |
Definition at line 179 of file CglFlowCover.hpp.
static int CglFlowCover::getNumFlowCuts | ( | ) | [inline, static] |
Definition at line 185 of file CglFlowCover.hpp.
static void CglFlowCover::setNumFlowCuts | ( | int | fc | ) | [inline, static] |
Definition at line 186 of file CglFlowCover.hpp.
static void CglFlowCover::incNumFlowCuts | ( | int | fc = 1 | ) | [inline, static] |
Definition at line 187 of file CglFlowCover.hpp.
virtual CglCutGenerator* CglFlowCover::clone | ( | ) | const [virtual] |
Clone.
Implements CglCutGenerator.
CglFlowCover& CglFlowCover::operator= | ( | const CglFlowCover & | rhs | ) |
Assignment operator.
virtual std::string CglFlowCover::generateCpp | ( | FILE * | fp | ) | [virtual] |
Create C++ lines to get to current state.
Reimplemented from CglCutGenerator.
void CglFlowCoverUnitTest | ( | const OsiSolverInterface * | siP, |
const std::string | mpdDir | ||
) | [friend] |
A function that tests the methods in the CglFlowCover 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.