14#ifndef MINOTAURBRANCH_H
15#define MINOTAURBRANCH_H
84 {
return pMods_.rbegin(); }
92 {
return rMods_.rbegin(); }
123 void write(std::ostream &out)
const;
127 const static std::string
me_;
Declare important 'types' used in Minotaur.
Base class for describing candidates for branching on a node in branch-and-bound.
Definition: BrCand.h:32
Base class for storing branching modifications.
Definition: Branch.h:33
ModificationRConstIterator rModsRBegin() const
The reverse iterators are used for undoing the changes to the relaxation. It is important that the ch...
Definition: Branch.h:91
void setActivity(double value)
Set the activity or the value of the branching expression before we branched.
Definition: Branch.cpp:79
ModificationConstIterator pModsEnd() const
The last iterator of the vector of modifications (problem).
Definition: Branch.h:71
~Branch()
Destroy.
Definition: Branch.cpp:37
ModificationConstIterator rModsBegin() const
The first modification in the vector of modifications (relaxation).
Definition: Branch.h:67
BrCandPtr brCand_
Branching candidate that is used to create this branch.
Definition: Branch.h:156
void addPMod(ModificationPtr mod)
Add a problem modification to the current vector of modifications associated with this branch.
Definition: Branch.cpp:61
ModificationConstIterator pModsBegin() const
The first modification in the vector of modifications (problem).
Definition: Branch.h:63
ModificationRConstIterator pModsREnd() const
The last reverse iterator for modifications for the problem. Corresponds to the first modification in...
Definition: Branch.h:98
void setBrCand(BrCandPtr cand)
Set the candidate that was used to generate this branch.
Definition: Branch.h:60
void addRMod(ModificationPtr mod)
Add a relaxation modification to the current vector of modifications associated with this branch.
Definition: Branch.cpp:67
void write(std::ostream &out) const
Write the branch to 'out'.
Definition: Branch.cpp:84
Branch()
Constructor.
Definition: Branch.cpp:27
ModVector rMods_
A vector of modifications of Relaxation that define this branch.
Definition: Branch.h:145
BrCandPtr getBrCand()
Return the branching candidate that was used to create this branch.
Definition: Branch.h:120
ModificationConstIterator rModsEnd() const
The last iterator of the vector of modifications (relaxation).
Definition: Branch.h:75
double getActivity() const
Return the activity or the value of the branching expression before we branched. Used for updating ps...
Definition: Branch.cpp:73
ModificationRConstIterator rModsREnd() const
The last reverse iterator for modifications for the relaxation. Corresponds to the first modification...
Definition: Branch.h:104
ModVector pMods_
A vector of modifications of Problem that define this branch.
Definition: Branch.h:136
ModificationRConstIterator pModsRBegin() const
The reverse iterators are used for undoing the changes to the problem. It is important that the chang...
Definition: Branch.h:83
static const std::string me_
Name.
Definition: Branch.h:127
double activity_
The value of the branching expression before we branched.
Definition: Branch.h:153
Definition: Modification.h:29
Definition: ActiveNodeStore.h:20