Cgl trunk
Friends
CglMixedIntegerRounding Class Reference

Mixed Integer Rounding Cut Generator Class. More...

#include <CglMixedIntegerRounding.hpp>

Inheritance diagram for CglMixedIntegerRounding:
Collaboration diagram for CglMixedIntegerRounding:

List of all members.

Public Member Functions

Generate Cuts
virtual void generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const
 Generate Mixed Integer Rounding cuts for the model data contained in si.
Constructors and destructors
 CglMixedIntegerRounding ()
 Default constructor.
 CglMixedIntegerRounding (const int maxaggr, const bool multiply, const int criterion, const int preproc=-1)
 Alternate Constructor.
 CglMixedIntegerRounding (const CglMixedIntegerRounding &)
 Copy constructor.
virtual CglCutGeneratorclone () const
 Clone.
CglMixedIntegerRoundingoperator= (const CglMixedIntegerRounding &rhs)
 Assignment operator.
virtual ~CglMixedIntegerRounding ()
 Destructor.
virtual void refreshSolver (OsiSolverInterface *solver)
 This can be used to refresh any inforamtion.
virtual std::string generateCpp (FILE *fp)
 Create C++ lines to get to current state.
Set and get methods
void setMAXAGGR_ (int maxaggr)
 Set MAXAGGR_.
int getMAXAGGR_ () const
 Get MAXAGGR_.
void setMULTIPLY_ (bool multiply)
 Set MULTIPLY_.
bool getMULTIPLY_ () const
 Get MULTIPLY_.
void setCRITERION_ (int criterion)
 Set CRITERION_.
int getCRITERION_ () const
 Get CRITERION_.
void setDoPreproc (int value)
 Set doPreproc.
bool getDoPreproc () const
 Get doPreproc.

Friends

void CglMixedIntegerRoundingUnitTest (const OsiSolverInterface *siP, const std::string mpdDir)

Detailed Description

Mixed Integer Rounding Cut Generator Class.

Definition at line 86 of file CglMixedIntegerRounding.hpp.


Constructor & Destructor Documentation

CglMixedIntegerRounding::CglMixedIntegerRounding ( )

Default constructor.

CglMixedIntegerRounding::CglMixedIntegerRounding ( const int  maxaggr,
const bool  multiply,
const int  criterion,
const int  preproc = -1 
)

Alternate Constructor.

CglMixedIntegerRounding::CglMixedIntegerRounding ( const CglMixedIntegerRounding )

Copy constructor.

virtual CglMixedIntegerRounding::~CglMixedIntegerRounding ( ) [virtual]

Destructor.


Member Function Documentation

virtual void CglMixedIntegerRounding::generateCuts ( const OsiSolverInterface &  si,
OsiCuts &  cs,
const CglTreeInfo  info = CglTreeInfo() 
) const [virtual]

Generate Mixed Integer Rounding cuts for the model data contained in si.

The generated cuts are inserted in the collection of cuts cs.

Implements CglCutGenerator.

virtual CglCutGenerator* CglMixedIntegerRounding::clone ( ) const [virtual]

Clone.

Implements CglCutGenerator.

CglMixedIntegerRounding& CglMixedIntegerRounding::operator= ( const CglMixedIntegerRounding rhs)

Assignment operator.

virtual void CglMixedIntegerRounding::refreshSolver ( OsiSolverInterface *  solver) [virtual]

This can be used to refresh any inforamtion.

Reimplemented from CglCutGenerator.

virtual std::string CglMixedIntegerRounding::generateCpp ( FILE *  fp) [virtual]

Create C++ lines to get to current state.

Reimplemented from CglCutGenerator.

void CglMixedIntegerRounding::setMAXAGGR_ ( int  maxaggr) [inline]

Set MAXAGGR_.

Definition at line 170 of file CglMixedIntegerRounding.hpp.

int CglMixedIntegerRounding::getMAXAGGR_ ( ) const [inline]

Get MAXAGGR_.

Definition at line 181 of file CglMixedIntegerRounding.hpp.

void CglMixedIntegerRounding::setMULTIPLY_ ( bool  multiply) [inline]

Set MULTIPLY_.

Definition at line 184 of file CglMixedIntegerRounding.hpp.

bool CglMixedIntegerRounding::getMULTIPLY_ ( ) const [inline]

Get MULTIPLY_.

Definition at line 187 of file CglMixedIntegerRounding.hpp.

void CglMixedIntegerRounding::setCRITERION_ ( int  criterion) [inline]

Set CRITERION_.

Definition at line 190 of file CglMixedIntegerRounding.hpp.

int CglMixedIntegerRounding::getCRITERION_ ( ) const [inline]

Get CRITERION_.

Definition at line 201 of file CglMixedIntegerRounding.hpp.

void CglMixedIntegerRounding::setDoPreproc ( int  value)

Set doPreproc.

bool CglMixedIntegerRounding::getDoPreproc ( ) const

Get doPreproc.


Friends And Related Function Documentation

void CglMixedIntegerRoundingUnitTest ( const OsiSolverInterface *  siP,
const std::string  mpdDir 
) [friend]

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