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