|
Cgl
trunk
|
Mixed Integer Rounding Cut Generator Class. More...
#include <CglMixedIntegerRounding2.hpp>
Inheritance diagram for CglMixedIntegerRounding2:
Collaboration diagram for CglMixedIntegerRounding2: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 | |
| CglMixedIntegerRounding2 () | |
| Default constructor. | |
| CglMixedIntegerRounding2 (const int maxaggr, const bool multiply, const int criterion, const int preproc=-1) | |
| Alternate Constructor. | |
| CglMixedIntegerRounding2 (const CglMixedIntegerRounding2 &) | |
| Copy constructor. | |
| virtual CglCutGenerator * | clone () const |
| Clone. | |
| CglMixedIntegerRounding2 & | operator= (const CglMixedIntegerRounding2 &rhs) |
| Assignment operator. | |
| virtual | ~CglMixedIntegerRounding2 () |
| 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 | CglMixedIntegerRounding2UnitTest (const OsiSolverInterface *siP, const std::string mpdDir) |
Mixed Integer Rounding Cut Generator Class.
Definition at line 87 of file CglMixedIntegerRounding2.hpp.
Default constructor.
| CglMixedIntegerRounding2::CglMixedIntegerRounding2 | ( | const int | maxaggr, |
| const bool | multiply, | ||
| const int | criterion, | ||
| const int | preproc = -1 |
||
| ) |
Alternate Constructor.
Copy constructor.
| virtual CglMixedIntegerRounding2::~CglMixedIntegerRounding2 | ( | ) | [virtual] |
Destructor.
| virtual void CglMixedIntegerRounding2::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* CglMixedIntegerRounding2::clone | ( | ) | const [virtual] |
Clone.
Implements CglCutGenerator.
| CglMixedIntegerRounding2& CglMixedIntegerRounding2::operator= | ( | const CglMixedIntegerRounding2 & | rhs | ) |
Assignment operator.
| virtual void CglMixedIntegerRounding2::refreshSolver | ( | OsiSolverInterface * | solver | ) | [virtual] |
This can be used to refresh any inforamtion.
Reimplemented from CglCutGenerator.
| virtual std::string CglMixedIntegerRounding2::generateCpp | ( | FILE * | fp | ) | [virtual] |
Create C++ lines to get to current state.
Reimplemented from CglCutGenerator.
| void CglMixedIntegerRounding2::setMAXAGGR_ | ( | int | maxaggr | ) | [inline] |
Set MAXAGGR_.
Definition at line 171 of file CglMixedIntegerRounding2.hpp.
| int CglMixedIntegerRounding2::getMAXAGGR_ | ( | ) | const [inline] |
Get MAXAGGR_.
Definition at line 182 of file CglMixedIntegerRounding2.hpp.
| void CglMixedIntegerRounding2::setMULTIPLY_ | ( | bool | multiply | ) | [inline] |
Set MULTIPLY_.
Definition at line 185 of file CglMixedIntegerRounding2.hpp.
| bool CglMixedIntegerRounding2::getMULTIPLY_ | ( | ) | const [inline] |
Get MULTIPLY_.
Definition at line 188 of file CglMixedIntegerRounding2.hpp.
| void CglMixedIntegerRounding2::setCRITERION_ | ( | int | criterion | ) | [inline] |
Set CRITERION_.
Definition at line 191 of file CglMixedIntegerRounding2.hpp.
| int CglMixedIntegerRounding2::getCRITERION_ | ( | ) | const [inline] |
Get CRITERION_.
Definition at line 202 of file CglMixedIntegerRounding2.hpp.
| void CglMixedIntegerRounding2::setDoPreproc | ( | int | value | ) |
Set doPreproc.
| bool CglMixedIntegerRounding2::getDoPreproc | ( | ) | const |
Get doPreproc.
| void CglMixedIntegerRounding2UnitTest | ( | const OsiSolverInterface * | siP, |
| const std::string | mpdDir | ||
| ) | [friend] |
1.7.6.1