#include <CglTwomir.hpp>
Inheritance diagram for CglTwomir:
Public Member Functions | |
Generate Cuts | |
virtual void | generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const |
Generate Two step MIR cuts either from the tableau rows or from the formulation rows. | |
virtual bool | needsOptimalBasis () const |
Return true if needs optimal basis to do cuts (will return true). | |
Change criterion on which scalings to use (default = 1,1,1,1) | |
void | setMirScale (int tmin, int tmax) |
Set. | |
void | setTwomirScale (int qmin, int qmax) |
Set. | |
void | setAMax (int a) |
Set. | |
void | setMaxElements (int n) |
Set. | |
void | setCutTypes (bool mir, bool twomir, bool tab, bool form) |
Set. | |
void | setFormulationRows (int n) |
Set. | |
int | getTmin () const |
Get. | |
int | getTmax () const |
Set. | |
int | getQmin () const |
Set. | |
int | getQmax () const |
Set. | |
int | getAmax () const |
Set. | |
int | getMaxElements () const |
Set. | |
int | getIfMir () const |
Set. | |
int | getIfTwomir () const |
Set. | |
int | getIfTableau () const |
Set. | |
int | getIfFormulation () const |
Set. | |
Constructors and destructors | |
CglTwomir () | |
Default constructor. | |
CglTwomir (const CglTwomir &) | |
Copy constructor. | |
virtual CglCutGenerator * | clone () const |
Clone. | |
CglTwomir & | operator= (const CglTwomir &rhs) |
Assignment operator. | |
virtual | ~CglTwomir () |
Destructor. | |
virtual std::string | generateCpp (FILE *fp) |
Create C++ lines to get to current state. | |
Public Attributes | |
char * | probname_ |
Private Attributes | |
Private member data | |
bool | do_mir_ |
bool | do_2mir_ |
bool | do_tab_ |
bool | do_form_ |
int | t_min_ |
int | t_max_ |
t_min - first value of t to use for tMIR inequalities | |
int | q_min_ |
t_max - last value of t to use for tMIR inequalities | |
int | q_max_ |
q_min - first value of t to use for 2-Step tMIR inequalities | |
int | a_max_ |
q_max - last value of t to use for 2-Step tMIR inequalities | |
int | max_elements_ |
a_max - maximum value of bhat/alpha | |
int | form_nrows_ |
Maximum number of elements in cut. |
Definition at line 88 of file CglTwomir.hpp.
|
Default constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Generate Two step MIR cuts either from the tableau rows or from the formulation rows.
Implements CglCutGenerator. |
|
Return true if needs optimal basis to do cuts (will return true).
Reimplemented from CglCutGenerator. |
|
Set.
Definition at line 106 of file CglTwomir.hpp. |
|
Set.
Definition at line 107 of file CglTwomir.hpp. |
|
Set.
Definition at line 108 of file CglTwomir.hpp. References a_max_. |
|
Set.
Definition at line 109 of file CglTwomir.hpp. References max_elements_. |
|
Set.
Definition at line 110 of file CglTwomir.hpp. |
|
Set.
Definition at line 112 of file CglTwomir.hpp. References form_nrows_. |
|
Get.
Definition at line 115 of file CglTwomir.hpp. |
|
Set.
Definition at line 116 of file CglTwomir.hpp. |
|
Set.
Definition at line 117 of file CglTwomir.hpp. |
|
Set.
Definition at line 118 of file CglTwomir.hpp. |
|
Set.
Definition at line 119 of file CglTwomir.hpp. |
|
Set.
Definition at line 120 of file CglTwomir.hpp. |
|
Set.
Definition at line 121 of file CglTwomir.hpp. |
|
Set.
Definition at line 122 of file CglTwomir.hpp. |
|
Set.
Definition at line 123 of file CglTwomir.hpp. |
|
Set.
Definition at line 124 of file CglTwomir.hpp. |
|
Clone.
Implements CglCutGenerator. |
|
Assignment operator.
|
|
Create C++ lines to get to current state.
Reimplemented from CglCutGenerator. |
|
Definition at line 91 of file CglTwomir.hpp. |
|
Definition at line 151 of file CglTwomir.hpp. Referenced by setCutTypes(). |
|
Definition at line 152 of file CglTwomir.hpp. Referenced by setCutTypes(). |
|
Definition at line 153 of file CglTwomir.hpp. Referenced by setCutTypes(). |
|
Definition at line 154 of file CglTwomir.hpp. Referenced by setCutTypes(). |
|
Definition at line 156 of file CglTwomir.hpp. Referenced by setMirScale(). |
|
t_min - first value of t to use for tMIR inequalities
Definition at line 157 of file CglTwomir.hpp. Referenced by setMirScale(). |
|
t_max - last value of t to use for tMIR inequalities
Definition at line 158 of file CglTwomir.hpp. Referenced by setTwomirScale(). |
|
q_min - first value of t to use for 2-Step tMIR inequalities
Definition at line 159 of file CglTwomir.hpp. Referenced by setTwomirScale(). |
|
q_max - last value of t to use for 2-Step tMIR inequalities
Definition at line 160 of file CglTwomir.hpp. Referenced by setAMax(). |
|
a_max - maximum value of bhat/alpha
Definition at line 161 of file CglTwomir.hpp. Referenced by setMaxElements(). |
|
Maximum number of elements in cut.
Definition at line 163 of file CglTwomir.hpp. Referenced by setFormulationRows(). |