Cgl  trunk
Public Member Functions | Friends
CglFlowCover Class Reference

Lifed Simple Generalized Flow Cover Cut Generator Class. More...

#include <CglFlowCover.hpp>

+ Inheritance diagram for CglFlowCover:
+ Collaboration diagram for CglFlowCover:

List of all members.

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 CglCutGeneratorclone () const
 Clone.
CglFlowCoveroperator= (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.

Detailed Description

Lifed Simple Generalized Flow Cover Cut Generator Class.

Definition at line 148 of file CglFlowCover.hpp.


Constructor & Destructor Documentation

Default constructor.

Copy constructor.

virtual CglFlowCover::~CglFlowCover ( ) [virtual]

Destructor.


Member Function Documentation

void CglFlowCover::flowPreprocess ( const OsiSolverInterface &  si) const

Do the following tasks:

  • classify row types
  • indentify vubs and vlbs

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.


Friends And Related Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines