10 class OsiSolverInterface;
67 _var_positions(), _cut_positions(), _var_bounds(), _cut_bounds() {}
97 return _var_bounds.
entry(2 * _var_positions.
size() * index);
104 return _cut_bounds.
entry(2 * _cut_positions.
size() * index);
This class is the internal representation of a branching object.
BCP_vec< double >::const_iterator cut_bounds_child(const int index) const
Return a const iterator within _cut_bounds to the location where the bound pairs for the index-th chi...
void pack(BCP_buffer &buf) const
Pack the internal branching object into the buffer.
iterator entry(const int i)
Return an iterator to the i-th entry.
BCP_internal_brobj()
The default constructor creates an empty internal branching object (which can be filled later by unpa...
void unpack(BCP_buffer &buf)
Unpack an internal branching object from the buffer.
void apply_child_bounds(OsiSolverInterface *lp, int child_ind) const
Modify the bounds in the LP solver by applying the changes specified for the child_ind-th child...
This class describes the message buffer used for all processes of BCP.
int affected_cutnum() const
Return the number of affected cuts.
int child_num() const
Return the number of children.
~BCP_internal_brobj()
The desctructor deletes all data members.
size_t size() const
Return the current number of entries.
const BCP_vec< int > & var_positions() const
Return a const reference to the vector of positions of variables affected by the branching.
const BCP_vec< int > & cut_positions() const
Return a const reference to the vector of positions of cuts affected by the branching.
BCP_vec< double >::const_iterator var_bounds_child(const int index) const
Return a const iterator within _var_bounds to the location where the bound pairs for the index-th chi...
int affected_varnum() const
Return the number of affected variables.
This class describes a generic branching object.