12 #ifndef CglLandPValidator_H
13 #define CglLandPValidator_H
43 double maxRatio = 1e8,
44 double minViolation = 0,
50 const double * colLower,
const double * colUpper);
53 const double * colLower,
const double * colUpper);
56 const double * colLower,
const double * colUpper)
58 return cleanCut(aCut, solCut, si, par, colLower, colUpper);
int operator()(OsiRowCut &aCut, const double *solCut, const OsiSolverInterface &si, const CglParam &par, const double *colLower, const double *colUpper)
Call the cut cleaner.
double maxFillIn_
max percentage of given formulation fillIn should be accepted for cut fillin.
double rhsScale_
Scale of right-hand-side.
void setRhsScale(double v)
void setMinViolation(double value)
int numRejected(int code) const
int numRejected(RejectionsReasons code) const
After cleaning cut has become empty.
int cleanCut(OsiRowCut &aCut, const double *solCut, const OsiSolverInterface &si, const CglParam &par, const double *colLower, const double *colUpper)
Clean an OsiCut.
void setMaxFillIn(double value)
void setMaxRatio(double value)
double minViolation_
minimum violation for accepting a cut
std::vector< int > numRejected_
Number of cut rejected for each of the reasons.
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.
const char * failureString(int code) const
Class collecting parameters for all cut generators.
bool scale_
Do we do scaling?
static const char * rejections_[DummyEnd]
Strings explaining reason for rejections.
Class to validate or reject a cut.
const char * failureString(RejectionsReasons code) const
Dynamic of coefficinet is too important.
Abstract Base Class for describing an interface to a solver.
There is a small coefficient we can not get rid off.
void scale(OsiRowCut &cut)
scale the cut passed as argument
Validator(double maxFillIn=1., double maxRatio=1e8, double minViolation=0, bool scale=false, double rhsScale=1)
Constructor with default values.
RejectionsReasons
Reasons for rejecting a cut.
Violation of the cut is too small.
double maxRatio_
max ratio between smallest and biggest coefficient