9 #ifndef CglLandPUtils_H
10 #define CglLandPUtils_H
19 double normCoef(TabRow &row,
int ncols,
const int * nonBasics);
21 void scale(OsiRowCut &cut);
23 void scale(OsiRowCut &cut,
double norma);
31 if (alpha_i>0)
return alpha_i* (1 - beta);
32 else return -alpha_i * beta;
38 double f_i = alpha - floor(alpha);
46 inline bool int_val(
double value,
double tol)
48 return fabs( floor( value + 0.5 ) - value ) < tol;
57 int insertAll(OsiCuts & cs, CoinRelFltEq eq);
65 const OsiRowCut *
rowCut(
unsigned int i)
const {
69 void insert(
int i, OsiRowCut * cut);
76 cuts_.resize(i, (OsiRowCut *) NULL);
std::vector< OsiRowCut * > cuts_
Store the cuts by index of the generating simple disjunction.
const OsiRowCut * rowCut(unsigned int i) const
const access to row cut indexed by i
double normCoef(TabRow &row, int ncols, const int *nonBasics)
Compute $ {{j=1}^n | a_{ij} |}{1 - a_{i0}} $ for row passed as argument.
double modularizedCoef(double alpha, double beta)
compute the modularized row coefficient for an integer variable
void modularizeRow(TabRow &row, const bool *integerVar)
Modularize row.
int numberCuts_
Stores the number of cuts.
void insert(int i, OsiRowCut *cut)
insert a cut for variable i and count number of cuts.
void resize(unsigned int i)
resize vector.
OsiRowCut * rowCut(unsigned int i)
Access to row cut indexed by i.
bool int_val(double value, double tol)
Says is value is integer.
void scale(OsiRowCut &cut)
scale the cut passed as argument
int numberCuts()
Access to number of cuts.
int insertAll(OsiCuts &cs, CoinRelFltEq eq)
Puts all the cuts into an OsiCuts.
double intersectionCutCoef(double alpha_i, double beta)
return the coefficients of the intersection cut
To store extra cuts generated by columns from which they origin.