17 #ifndef DECOMP_CUTOSI_HPP
18 #define DECOMP_CUTOSI_HPP
53 }
else if ( lb_ == -DecompInf && ub_ == DecompInf ) {
55 }
else if ( lb_ == -DecompInf ) {
57 }
else if ( ub_ == DecompInf ) {
70 }
else if ( lb_ == -DecompInf && ub_ == DecompInf ) {
72 }
else if ( lb_ == -DecompInf ) {
74 }
else if ( ub_ == DecompInf ) {
120 void print(std::ostream* os = &std::cout)
const {
127 (*os) <<
" + " << els[i] <<
" x[" << ind[i] <<
"]";
131 (*os) <<
" lb: -INF";
#define DECOMP_TEST_DUPINDEX
double getUpperBound() const
virtual const int * getIndices() const
Get indices of elements.
virtual const double * getElements() const
Get element values.
void setVector(int size, const int *inds, const double *elems, bool testForDuplicateIndex=COIN_DEFAULT_VALUE_FOR_DUPLICATE)
Set vector size, indices, and elements.
void setStringHash(CoinPackedVector *row)
DecompCutOsi(const DecompVar &)
OsiRowCut_inline double lb() const
Get lower bound.
virtual int getNumElements() const
Get the size.
OsiRowCut_inline const CoinPackedVector & row() const
Get row elements.
DecompCutOsi(OsiRowCut &osiCut)
OsiRowCut_inline double ub() const
Get upper bound.
void print(std::ostream *os=&std::cout) const
void setUpperBound(const double ub)
void expandCutToRow(CoinPackedVector *row)
double getLowerBound() const
DecompCutOsi & operator=(const DecompVar &)
void setLowerBound(const double lb)
string UtilCreateStringHash(const int len, const double *els, const int precision=6)
double getViolation() const