8 #ifndef CglLandPValidator_H
9 #define CglLandPValidator_H
10 #include "OsiSolverInterface.hpp"
38 double maxRatio = 1e8,
39 double minViolation = 0,
44 int cleanCut(OsiRowCut & aCut,
const double * solCut,
const OsiSolverInterface &si,
const CglParam & par,
45 const double * colLower,
const double * colUpper)
const;
47 int cleanCut2(OsiRowCut & aCut,
const double * solCut,
const OsiSolverInterface &si,
const CglParam & par,
48 const double * colLower,
const double * colUpper)
const;
50 int operator()(OsiRowCut & aCut,
const double * solCut,
const OsiSolverInterface &si,
const CglParam & par,
51 const double * colLower,
const double * colUpper)
const {
52 return cleanCut(aCut, solCut, si, par, colLower, colUpper);
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)
const std::string & failureString(int code) const
void setMinViolation(double value)
int cleanCut2(OsiRowCut &aCut, const double *solCut, const OsiSolverInterface &si, const CglParam &par, const double *colLower, const double *colUpper) const
Clean an OsiCut by another method.
int numRejected(int code) const
int numRejected(RejectionsReasons code) const
After cleaning cut has become empty.
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 cleanCut(OsiRowCut &aCut, const double *solCut, const OsiSolverInterface &si, const CglParam &par, const double *colLower, const double *colUpper) const
Clean an OsiCut.
Class collecting parameters for all cut generators.
bool scale_
Do we do scaling?
static void fillRejectionReasons()
const std::string & failureString(RejectionsReasons code) const
Class to validate or reject a cut.
int operator()(OsiRowCut &aCut, const double *solCut, const OsiSolverInterface &si, const CglParam &par, const double *colLower, const double *colUpper) const
Call the cut cleaner.
Dynamic of coefficinet is too important.
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.
static std::vector< std::string > rejections_
Strings explaining reason for rejections.
Violation of the cut is too small.
double maxRatio_
max ratio between smallest and biggest coefficient