#include <CglStored.hpp>
Inheritance diagram for CglStored:
Public Member Functions | |
Generate Cuts | |
virtual void | generateCuts (const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo()) const |
Generate Mixed Integer Stored cuts for the model of the solver interface, si. | |
Change criterion on whether to include cut. | |
Violations of more than this will be added to current cut list (default 1.0e-5) | |
void | setRequiredViolation (double value) |
Set. | |
double | getRequiredViolation () const |
Get. | |
Cut stuff | |
void | addCut (const OsiCuts &cs) |
Add cuts. | |
void | addCut (const OsiRowCut &cut) |
Add a row cut. | |
void | addCut (double lb, double ub, const CoinPackedVector &vector) |
Add a row cut from a packed vector. | |
void | addCut (double lb, double ub, int size, const int *colIndices, const double *elements) |
Add a row cut from elements. | |
Constructors and destructors | |
CglStored () | |
Default constructor. | |
CglStored (const CglStored &rhs) | |
Copy constructor. | |
virtual CglCutGenerator * | clone () const |
Clone. | |
CglStored & | operator= (const CglStored &rhs) |
Assignment operator. | |
virtual | ~CglStored () |
Destructor. | |
Private Attributes | |
Private member data | |
double | requiredViolation_ |
Only add if more than this requiredViolation. | |
OsiCuts | cuts_ |
Cuts. |
Definition at line 12 of file CglStored.hpp.
|
Default constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Generate Mixed Integer Stored cuts for the model of the solver interface, si. Insert the generated cuts into OsiCut, cs. This generator just looks at previously stored cuts and inserts any that are violated by enough Implements CglCutGenerator. |
|
Set.
Definition at line 36 of file CglStored.hpp. References requiredViolation_. |
|
Get.
Definition at line 39 of file CglStored.hpp. |
|
Add cuts.
|
|
Add a row cut.
|
|
Add a row cut from a packed vector.
|
|
Add a row cut from elements.
|
|
Clone.
Implements CglCutGenerator. |
|
Assignment operator.
|
|
Only add if more than this requiredViolation.
Definition at line 84 of file CglStored.hpp. Referenced by setRequiredViolation(). |
|
Cuts.
Definition at line 86 of file CglStored.hpp. |