31class BCP_internal_brobj {
38 BCP_internal_brobj& operator=(
const BCP_internal_brobj&);
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 describes the message buffer used for all processes of BCP.
int affected_varnum() const
Return the number of affected variables.
const BCP_vec< int > & cut_positions() const
Return a const reference to the vector of positions of cuts affected by the branching.
void pack(BCP_buffer &buf) const
Pack the internal branching object into the buffer.
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...
BCP_internal_brobj()
The default constructor creates an empty internal branching object (which can be filled later by unpa...
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...
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.
~BCP_internal_brobj()
The desctructor deletes all data members.
int child_num() const
Return the number of children.
void unpack(BCP_buffer &buf)
Unpack an internal branching object from the buffer.
const BCP_vec< int > & var_positions() const
Return a const reference to the vector of positions of variables affected by the branching.
BCP_internal_brobj(BCP_lp_branching_object &candidate)
This constructor sets the number of children and copies the contents of the positions and bounds of t...
int affected_cutnum() const
Return the number of affected cuts.
This class describes a generic branching object.
The class BCP_vec serves the same purpose as the vector class in the standard template library.
iterator entry(const int i)
Return an iterator to the i-th entry.