Class to validate or reject a cut.
More...
#include <CglLandPValidator.hpp>
|
| Validator (double maxFillIn=1., double maxRatio=1e8, double minViolation=0, bool scale=false, double rhsScale=1) |
| Constructor with default values. More...
|
|
int | cleanCut (OsiRowCut &aCut, const double *solCut, const OsiSolverInterface &si, const CglParam &par, const double *colLower, const double *colUpper) |
| Clean an OsiCut. More...
|
|
int | cleanCut2 (OsiRowCut &aCut, const double *solCut, const OsiSolverInterface &si, const CglParam &par, const double *colLower, const double *colUpper) |
| Clean an OsiCut by another method. More...
|
|
int | operator() (OsiRowCut &aCut, const double *solCut, const OsiSolverInterface &si, const CglParam &par, const double *colLower, const double *colUpper) |
| Call the cut cleaner. More...
|
|
const char * | failureString (RejectionsReasons code) const |
|
const char * | failureString (int code) const |
|
int | numRejected (RejectionsReasons code) const |
|
int | numRejected (int code) const |
|
|
void | setMaxFillIn (double value) |
|
void | setMaxRatio (double value) |
|
void | setMinViolation (double value) |
|
void | setRhsScale (double v) |
|
|
double | getMaxFillIn () |
|
double | getMaxRatio () |
|
double | getMinViolation () |
|
Class to validate or reject a cut.
Definition at line 26 of file CglLandPValidator.hpp.
Reasons for rejecting a cut.
Enumerator |
---|
NoneAccepted |
|
SmallViolation |
Violation of the cut is too small.
|
SmallCoefficient |
There is a small coefficient we can not get rid off.
|
BigDynamic |
Dynamic of coefficinet is too important.
|
DenseCut |
cut is too dense
|
EmptyCut |
After cleaning cut has become empty.
|
DummyEnd |
dummy
|
Definition at line 30 of file CglLandPValidator.hpp.
LAP::Validator::Validator |
( |
double |
maxFillIn = 1. , |
|
|
double |
maxRatio = 1e8 , |
|
|
double |
minViolation = 0 , |
|
|
bool |
scale = false , |
|
|
double |
rhsScale = 1 |
|
) |
| |
Constructor with default values.
int LAP::Validator::cleanCut |
( |
OsiRowCut & |
aCut, |
|
|
const double * |
solCut, |
|
|
const OsiSolverInterface & |
si, |
|
|
const CglParam & |
par, |
|
|
const double * |
colLower, |
|
|
const double * |
colUpper |
|
) |
| |
int LAP::Validator::cleanCut2 |
( |
OsiRowCut & |
aCut, |
|
|
const double * |
solCut, |
|
|
const OsiSolverInterface & |
si, |
|
|
const CglParam & |
par, |
|
|
const double * |
colLower, |
|
|
const double * |
colUpper |
|
) |
| |
Clean an OsiCut by another method.
int LAP::Validator::operator() |
( |
OsiRowCut & |
aCut, |
|
|
const double * |
solCut, |
|
|
const OsiSolverInterface & |
si, |
|
|
const CglParam & |
par, |
|
|
const double * |
colLower, |
|
|
const double * |
colUpper |
|
) |
| |
|
inline |
void LAP::Validator::setMaxFillIn |
( |
double |
value | ) |
|
|
inline |
void LAP::Validator::setMaxRatio |
( |
double |
value | ) |
|
|
inline |
void LAP::Validator::setMinViolation |
( |
double |
value | ) |
|
|
inline |
void LAP::Validator::setRhsScale |
( |
double |
v | ) |
|
|
inline |
double LAP::Validator::getMaxFillIn |
( |
| ) |
|
|
inline |
double LAP::Validator::getMaxRatio |
( |
| ) |
|
|
inline |
double LAP::Validator::getMinViolation |
( |
| ) |
|
|
inline |
const char* LAP::Validator::failureString |
( |
int |
code | ) |
const |
|
inline |
int LAP::Validator::numRejected |
( |
int |
code | ) |
const |
|
inline |
double LAP::Validator::maxFillIn_ |
|
private |
max percentage of given formulation fillIn should be accepted for cut fillin.
Definition at line 114 of file CglLandPValidator.hpp.
double LAP::Validator::maxRatio_ |
|
private |
double LAP::Validator::minViolation_ |
|
private |
bool LAP::Validator::scale_ |
|
private |
double LAP::Validator::rhsScale_ |
|
private |
const char* LAP::Validator::rejections_[DummyEnd] |
|
staticprivate |
std::vector<int> LAP::Validator::numRejected_ |
|
private |
The documentation for this class was generated from the following file: