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