14 #ifndef DECOMP_CUTOSI_HPP
15 #define DECOMP_CUTOSI_HPP
50 }
else if ( lb_ == -DecompInf && ub_ == DecompInf ) {
52 }
else if ( lb_ == -DecompInf ) {
54 }
else if ( ub_ == DecompInf ) {
67 }
else if ( lb_ == -DecompInf && ub_ == DecompInf ) {
69 }
else if ( lb_ == -DecompInf ) {
71 }
else if ( ub_ == DecompInf ) {
117 void print(ostream* os = &cout)
const {
124 (*os) <<
" + " << els[i] <<
" x[" << ind[i] <<
"]";
128 (*os) <<
" lb: -INF";
void print(ostream *os=&cout) const
#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 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