13 buf.
pack(OsiRowCut::lb());
14 buf.
pack(OsiRowCut::ub());
15 const CoinPackedVector& v = OsiRowCut::row();
16 const int numElem = v.getNumElements();
17 buf.
pack(v.getIndices(), numElem);
18 buf.
pack(v.getElements(), numElem);
28 OsiRowCut::setLb( lb);
29 OsiRowCut::setUb( ub);
34 buf.
unpack(indices, numElem,
true);
35 buf.
unpack(elements, numElem,
true);
36 OsiRowCut::setRow(numElem, indices, elements);
Simple representation of a cut by storing non zero coefficients only.
BCP_buffer & pack(const T &value)
Pack a single object of type T.
BCP_buffer & unpack(T &value)
Unpack a single object of type T.
This is the class from which the user should derive her own algorithmic cuts.
double ub() const
Return the upper bound on the cut.
OS_cut(BCP_buffer &buf)
Constructor from content of buffer.
static BCP_MemPool memPool
double lb() const
Return the lower bound on the cut.
This class describes the message buffer used for all processes of BCP.
void pack(BCP_buffer &buf) const
Packing cut to a buffer.