Go to the documentation of this file.
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;
virtual int getNumElements() const
std::string getStrHash() const
void setUpperBound(const double ub)
double getViolation() const
void increaseEffCnt()
Increase the effectiveness count by 1 (or to 1 if it was negative).
bool calcViolation(const CoinPackedVector *row, const double *x)
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)
double getLowerBound() const
virtual const double * getElements() const
virtual void expandCutToRow(CoinPackedVector *row)
virtual void print(std::ostream *os=&std::cout) const
virtual void setStringHash(CoinPackedVector *row, double infinity)
double getUpperBound() const
virtual const int * getIndices() const
void decreaseEffCnt()
Decrease the effectiveness count by 1 (or to -1 if it was positive).
void setLowerBound(const double lb)
void setViolation(const double violation)
virtual bool isSame(const DecompCut *cut) const