CoinCut
Class for representing a cut.
Class for representing a cut.
Public Methods
CoinCut
Default constructor.
CoinCut(const int * idxs, const double * coefs, size_t nz, double rhs)
Parameters:
idxs(const int *) - indexes of variables of the cutcoefs(const double *) - coefficients of the variables the cutnz(size_t) - size of the cutrhs(double) - right-hand side of the cut
~CoinCut
Destructor.
~CoinCut()
idxs
Return the indexes of the variables of the cut.
const int * idxs()
coefs
Return the coefficients of the variables of the cut.
const double * coefs()
size
Return the size of the cut.
int size()
rhs
Return the right-hand side of the cut.
double rhs()
dominates
Check if the cut dominates another one.
bool dominates(const CoinCut * other)
Parameters:
other(const CoinCut *) - cut to be checked.
Source
Header: layer-0/CoinUtils/src/CoinCutPool.hpp