Cgl
0.59.10
|
Mixed Integer Rounding Cut Generator Class. More...
#include <CglMixedIntegerRounding.hpp>
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 CglCutGenerator * | clone () const |
Clone. More... | |
CglMixedIntegerRounding & | operator= (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... | |
![]() | |
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 | CglMixedIntegerRoundingUnitTest (const OsiSolverInterface *siP, const std::string mpdDir) |
Additional Inherited Members | |
![]() | |
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... | |
Mixed Integer Rounding Cut Generator Class.
Definition at line 86 of file CglMixedIntegerRounding.hpp.
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 |
Destructor.
|
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 |
Clone.
Implements CglCutGenerator.
CglMixedIntegerRounding& CglMixedIntegerRounding::operator= | ( | const CglMixedIntegerRounding & | rhs | ) |
Assignment operator.
|
virtual |
This can be used to refresh any inforamtion.
Reimplemented from CglCutGenerator.
|
virtual |
Create C++ lines to get to current state.
Reimplemented from CglCutGenerator.
|
inline |
Set MAXAGGR_.
Definition at line 170 of file CglMixedIntegerRounding.hpp.
|
inline |
Get MAXAGGR_.
Definition at line 181 of file CglMixedIntegerRounding.hpp.
|
inline |
Set MULTIPLY_.
Definition at line 184 of file CglMixedIntegerRounding.hpp.
|
inline |
Get MULTIPLY_.
Definition at line 187 of file CglMixedIntegerRounding.hpp.
|
inline |
Set CRITERION_.
Definition at line 190 of file CglMixedIntegerRounding.hpp.
|
inline |
Get CRITERION_.
Definition at line 201 of file CglMixedIntegerRounding.hpp.
void CglMixedIntegerRounding::setDoPreproc | ( | int | value | ) |
Set doPreproc.
bool CglMixedIntegerRounding::getDoPreproc | ( | ) | const |
Get doPreproc.
|
friend |