17 buf.
pack(OsiRowCut::lb())
18 .
pack(OsiRowCut::ub());
19 const CoinPackedVector& v = OsiRowCut::row();
20 const int numElem = v.getNumElements();
21 buf.
pack(v.getIndices(), numElem)
22 .
pack(v.getElements(), numElem);
38 buf.
unpack(indices, numElem,
true)
39 .
unpack(elements, numElem,
true);
40 OsiRowCut::setRow(numElem, indices, elements);
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.
BB_cut(BCP_buffer &buf)
Constructor from content of buffer.
This is the class from which the user should derive her own algorithmic cuts.
double ub() const
Return the upper bound on the cut.
double lb() const
Return the lower bound on the cut.
void pack(BCP_buffer &buf) const
Packing cut to a buffer.
Simple representation of a cut by storing non zero coefficients only.
static BCP_MemPool memPool
This class describes the message buffer used for all processes of BCP.