Cgl  0.59.10
Friends | List of all members
CglMixedIntegerRounding Class Reference

Mixed Integer Rounding Cut Generator Class. More...

#include <CglMixedIntegerRounding.hpp>

+ Inheritance diagram for CglMixedIntegerRounding:
+ Collaboration diagram for CglMixedIntegerRounding:

Public Member Functions

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

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...
 

Detailed Description

Mixed Integer Rounding Cut Generator Class.

Definition at line 86 of file CglMixedIntegerRounding.hpp.

Constructor & Destructor Documentation

◆ CglMixedIntegerRounding() [1/3]

CglMixedIntegerRounding::CglMixedIntegerRounding ( )

Default constructor.

◆ CglMixedIntegerRounding() [2/3]

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

Alternate Constructor.

◆ CglMixedIntegerRounding() [3/3]

CglMixedIntegerRounding::CglMixedIntegerRounding ( const CglMixedIntegerRounding )

Copy constructor.

◆ ~CglMixedIntegerRounding()

virtual CglMixedIntegerRounding::~CglMixedIntegerRounding ( )
virtual

Destructor.

Member Function Documentation

◆ generateCuts()

virtual void CglMixedIntegerRounding::generateCuts ( const OsiSolverInterface &  si,
OsiCuts &  cs,
const CglTreeInfo  info = CglTreeInfo() 
)
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.

◆ clone()

virtual CglCutGenerator* CglMixedIntegerRounding::clone ( ) const
virtual

Clone.

Implements CglCutGenerator.

◆ operator=()

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

Assignment operator.

◆ refreshSolver()

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

This can be used to refresh any inforamtion.

Reimplemented from CglCutGenerator.

◆ generateCpp()

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

Create C++ lines to get to current state.

Reimplemented from CglCutGenerator.

◆ setMAXAGGR_()

void CglMixedIntegerRounding::setMAXAGGR_ ( int  maxaggr)
inline

Set MAXAGGR_.

Definition at line 170 of file CglMixedIntegerRounding.hpp.

◆ getMAXAGGR_()

int CglMixedIntegerRounding::getMAXAGGR_ ( ) const
inline

Get MAXAGGR_.

Definition at line 181 of file CglMixedIntegerRounding.hpp.

◆ setMULTIPLY_()

void CglMixedIntegerRounding::setMULTIPLY_ ( bool  multiply)
inline

Set MULTIPLY_.

Definition at line 184 of file CglMixedIntegerRounding.hpp.

◆ getMULTIPLY_()

bool CglMixedIntegerRounding::getMULTIPLY_ ( ) const
inline

Get MULTIPLY_.

Definition at line 187 of file CglMixedIntegerRounding.hpp.

◆ setCRITERION_()

void CglMixedIntegerRounding::setCRITERION_ ( int  criterion)
inline

Set CRITERION_.

Definition at line 190 of file CglMixedIntegerRounding.hpp.

◆ getCRITERION_()

int CglMixedIntegerRounding::getCRITERION_ ( ) const
inline

Get CRITERION_.

Definition at line 201 of file CglMixedIntegerRounding.hpp.

◆ setDoPreproc()

void CglMixedIntegerRounding::setDoPreproc ( int  value)

Set doPreproc.

◆ getDoPreproc()

bool CglMixedIntegerRounding::getDoPreproc ( ) const

Get doPreproc.

Friends And Related Function Documentation

◆ CglMixedIntegerRoundingUnitTest

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

The documentation for this class was generated from the following file: