11 const int major = getMajorDim();
12 const int minor = getMinorDim();
22 const int * length = getVectorLengths();
23 const int * start = getVectorStarts();
24 const int * ind = getIndices();
25 const double * elem = getElements();
27 buf.
pack(length, major);
28 buf.
pack(start, major+1);
29 for (
int i = 0; i < major; ++i)
30 buf.
pack(ind + start[i], length[i]);
31 for (
int i = 0; i < major; ++i)
32 buf.
pack(elem + start[i], length[i]);
41 CoinPackedMatrix::gutsOfDestructor();
52 length_ =
new int[maxMajorDim_];
53 start_ =
new int[maxMajorDim_+1];
54 index_ =
new int[maxSize_];
55 element_ =
new double[maxSize_];
57 buf.
unpack(length_, majorDim_,
false);
58 int md1 = majorDim_+1;
59 buf.
unpack(start_, md1,
false);
61 for (
int i = 0; i < majorDim_; ++i) {
62 int * itmp = index_ + start_[i];
63 buf.
unpack(itmp, length_[i],
false);
65 for (
int i = 0; i < majorDim_; ++i) {
66 double * dtmp = element_ + start_[i];
67 buf.
unpack(dtmp, length_[i],
false);
BCP_vec< double > _ColUpperBound
The upper bounds on the variables.
BCP_vec< double > _RowUpperBound
The upper bounds on the cuts.
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.
void unpack(BCP_buffer &buf)
Unpack the LP relaxation from the buffer.
BCP_vec< double > _ColLowerBound
The lower bounds on the variables.
void pack(BCP_buffer &buf) const
Pack the LP relaxation into the buffer.
BCP_vec< double > _Objective
The objective coefficients of the variables.
This class describes the message buffer used for all processes of BCP.
BCP_vec< double > _RowLowerBound
The lower bounds on the cuts.