Dip
0.92.4
|
Class to validate or reject a cut. More...
#include <CglLandPValidator.hpp>
Public Types | |
enum | RejectionsReasons { NoneAccepted =0, SmallViolation, SmallCoefficient, BigDynamic, DenseCut, EmptyCut, DummyEnd } |
Reasons for rejecting a cut. More... | |
Public Member Functions | |
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 |
set functions | |
void | setMaxFillIn (double value) |
void | setMaxRatio (double value) |
void | setMinViolation (double value) |
void | setRhsScale (double v) |
get functions | |
double | getMaxFillIn () |
double | getMaxRatio () |
double | getMinViolation () |
Private Attributes | |
double | maxFillIn_ |
max percentage of given formulation fillIn should be accepted for cut fillin. More... | |
double | maxRatio_ |
max ratio between smallest and biggest coefficient More... | |
double | minViolation_ |
minimum violation for accepting a cut More... | |
bool | scale_ |
Do we do scaling? More... | |
double | rhsScale_ |
Scale of right-hand-side. More... | |
std::vector< int > | numRejected_ |
Number of cut rejected for each of the reasons. More... | |
Static Private Attributes | |
static const char * | rejections_ [DummyEnd] |
Strings explaining reason for rejections. More... | |
Class to validate or reject a cut.
Definition at line 26 of file CglLandPValidator.hpp.
Reasons for rejecting a cut.
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 | ||
) |
Clean an OsiCut.
Referenced by operator()().
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.
|
inline |
|
inline |
Definition at line 62 of file CglLandPValidator.hpp.
References maxFillIn_.
|
inline |
Definition at line 66 of file CglLandPValidator.hpp.
References maxRatio_.
|
inline |
Definition at line 70 of file CglLandPValidator.hpp.
References minViolation_.
|
inline |
Definition at line 75 of file CglLandPValidator.hpp.
References rhsScale_.
|
inline |
Definition at line 82 of file CglLandPValidator.hpp.
References maxFillIn_.
|
inline |
Definition at line 86 of file CglLandPValidator.hpp.
References maxRatio_.
|
inline |
Definition at line 90 of file CglLandPValidator.hpp.
References minViolation_.
|
inline |
Definition at line 96 of file CglLandPValidator.hpp.
References rejections_.
|
inline |
Definition at line 100 of file CglLandPValidator.hpp.
References rejections_.
|
inline |
Definition at line 104 of file CglLandPValidator.hpp.
References numRejected_.
|
inline |
Definition at line 108 of file CglLandPValidator.hpp.
References numRejected_.
|
private |
max percentage of given formulation fillIn should be accepted for cut fillin.
Definition at line 114 of file CglLandPValidator.hpp.
Referenced by getMaxFillIn(), and setMaxFillIn().
|
private |
max ratio between smallest and biggest coefficient
Definition at line 116 of file CglLandPValidator.hpp.
Referenced by getMaxRatio(), and setMaxRatio().
|
private |
minimum violation for accepting a cut
Definition at line 118 of file CglLandPValidator.hpp.
Referenced by getMinViolation(), and setMinViolation().
|
private |
Do we do scaling?
Definition at line 120 of file CglLandPValidator.hpp.
|
private |
Scale of right-hand-side.
Definition at line 122 of file CglLandPValidator.hpp.
Referenced by setRhsScale().
|
staticprivate |
Strings explaining reason for rejections.
Definition at line 124 of file CglLandPValidator.hpp.
Referenced by failureString().
|
private |
Number of cut rejected for each of the reasons.
Definition at line 126 of file CglLandPValidator.hpp.
Referenced by numRejected().