|
| Branch () |
| Constructor.
|
|
| ~Branch () |
| Destroy.
|
|
void | addPMod (ModificationPtr mod) |
| Add a problem modification to the current vector of modifications associated with this branch. More...
|
|
void | addRMod (ModificationPtr mod) |
| Add a relaxation modification to the current vector of modifications associated with this branch. More...
|
|
void | setBrCand (BrCandPtr cand) |
| Set the candidate that was used to generate this branch. More...
|
|
ModificationConstIterator | pModsBegin () const |
| The first modification in the vector of modifications (problem).
|
|
ModificationConstIterator | rModsBegin () const |
| The first modification in the vector of modifications (relaxation).
|
|
ModificationConstIterator | pModsEnd () const |
| The last iterator of the vector of modifications (problem).
|
|
ModificationConstIterator | rModsEnd () const |
| The last iterator of the vector of modifications (relaxation).
|
|
ModificationRConstIterator | pModsRBegin () const |
| The reverse iterators are used for undoing the changes to the problem. It is important that the changes are reverted in the reverse order.
|
|
ModificationRConstIterator | rModsRBegin () const |
| The reverse iterators are used for undoing the changes to the relaxation. It is important that the changes are reverted in the reverse order.
|
|
ModificationRConstIterator | pModsREnd () const |
| The last reverse iterator for modifications for the problem. Corresponds to the first modification in the vector.
|
|
ModificationRConstIterator | rModsREnd () const |
| The last reverse iterator for modifications for the relaxation. Corresponds to the first modification in the vector.
|
|
double | getActivity () const |
| Return the activity or the value of the branching expression before we branched. Used for updating pseudo-costs.
|
|
void | setActivity (double value) |
| Set the activity or the value of the branching expression before we branched. More...
|
|
BrCandPtr | getBrCand () |
| Return the branching candidate that was used to create this branch.
|
|
void | write (std::ostream &out) const |
| Write the branch to 'out'.
|
|
Base class for storing branching modifications.
A Branch just has a vector of modifications. This vector of modifications can be applied to obtain a child node from the parent's relaxation. For each child node, we must have an associated Branch object. The object can also have other information (estimates on lower bounds of child etc).