14 #ifndef DECOMP_CUT_INCLUDED
15 #define DECOMP_CUT_INCLUDED
76 m_violation = violation;
95 getUpperBound(), DecompInf,
107 throw CoinError(
"Method was invoked but not overridden.",
108 "expandCutToRow",
"DecompCut");
112 throw CoinError(
"Method was invoked but not overridden.",
113 "setBounds",
"DecompCut");
120 virtual void print(ostream* os = &cout)
const;
130 m_effCnt = m_effCnt <= 0 ? 1 : m_effCnt + 1;
136 m_effCnt = m_effCnt >= 0 ? -1 : m_effCnt - 1;
void setViolation(const double violation)
string getStrHash() const
void increaseEffCnt()
Increase the effectiveness count by 1 (or to 1 if it was negative).
double getUpperBound() const
virtual const int * getIndices() const
Get indices of elements.
virtual const double * getElements() const
Get element values.
void UtilBoundToSense(const double lb, const double ub, const double inf, char &sense, double &rhs, double &range)
virtual int getNumElements() const
Get the size.
virtual void expandCutToRow(CoinPackedVector *row)
void setUpperBound(const double ub)
double getLowerBound() const
void decreaseEffCnt()
Decrease the effectiveness count by 1 (or to -1 if it was positive).
Error Class thrown by an exception.
void setLowerBound(const double lb)
virtual void setStringHash(CoinPackedVector *row)
virtual bool isSame(const DecompCut *cut) const
string UtilCreateStringHash(const int len, const double *els, const int precision=6)
double getViolation() const