16#ifndef DECOMP_CUT_INCLUDED
17#define DECOMP_CUT_INCLUDED
71 m_violation = violation;
95 sense, rhs, infinity);
102 throw CoinError(
"Method was invoked but not overridden.",
103 "expandCutToRow",
"DecompCut");
107 throw CoinError(
"Method was invoked but not overridden.",
108 "setBounds",
"DecompCut");
115 virtual void print(std::ostream* os = &std::cout)
const;
125 m_effCnt = m_effCnt <= 0 ? 1 : m_effCnt + 1;
131 m_effCnt = m_effCnt >= 0 ? -1 : m_effCnt - 1;
std::string UtilCreateStringHash(const int len, const double *els, const int precision=6)
void UtilBoundToSense(const double lb, const double ub, const double inf, char &sense, double &rhs, double &range)
virtual const double * getElements() const
virtual int getNumElements() const
virtual const int * getIndices() const
bool calcViolation(const CoinPackedVector *row, const double *x)
virtual void print(std::ostream *os=&std::cout) const
virtual void setStringHash(CoinPackedVector *row, double infinity)
std::string getStrHash() const
double getLowerBound() const
virtual bool isSame(const DecompCut *cut) const
void decreaseEffCnt()
Decrease the effectiveness count by 1 (or to -1 if it was positive).
double getUpperBound() const
void setUpperBound(const double ub)
virtual void expandCutToRow(CoinPackedVector *row)
void setLowerBound(const double lb)
void setViolation(const double violation)
void increaseEffCnt()
Increase the effectiveness count by 1 (or to 1 if it was negative).
double getViolation() const