![]() |
MAiNGO
|
This class represents an node in the B&B-Tree with additional information attached that is used in selecting nodes or branching variables. More...
#include <babTree.h>
Public Member Functions | |
BabNodeWithInfo (BabNode nodeIn, double selScoreIn) | |
Constructor. More... | |
operator BabNode const & () const & | |
Conversion Operator only callable from l-values. More... | |
operator BabNode && () && | |
Conversion Operator only callable from r-values. More... | |
double | get_node_selection_score () const |
Returns the node selection score of the node. More... | |
void | set_node_selection_score (double newScore) |
Sets the node selection score of the node. More... | |
double | get_pruning_score () const |
Returns the pruning score of the node. More... | |
unsigned | get_ID () const |
Returns the ID of the node. More... | |
Public Attributes | |
BabNode | node |
BranchingHistoryInfo | branchingInfo |
Object storing the branching history. More... | |
Private Attributes | |
double | _nodeSelectionScore |
This class represents an node in the B&B-Tree with additional information attached that is used in selecting nodes or branching variables.
Currently additional information over the BabNode class are the node selection score, that can be used to order the selection of the nodes from the B&B-Tree and the information which variable was branched when the node was created. Additionally it is saved whether the branching was up or down. The last two pieces of information are used to attribute changes to branching decisions. (e.g. in register_node_change in Brancher) Currently this class is only used internally in the BabTree class and when communicating with the Brancher class. Efficient way to convert to BabNode are provided.
|
inline |
Constructor.
[in] | nodeIn | is a normal BabNode to be copied |
[in] | selScoreIn | is the selection score to be used for this bab node |
|
inline |
Returns the ID of the node.
|
inline |
Returns the node selection score of the node.
|
inline |
Returns the pruning score of the node.
|
inline |
Conversion Operator only callable from r-values.
|
inline |
Conversion Operator only callable from l-values.
|
inline |
Sets the node selection score of the node.
|
private |
The selection score assigned to this node can be used to decide which node to process next
BranchingHistoryInfo babBase::BabNodeWithInfo::branchingInfo |
Object storing the branching history.
Currently no getter and setter for these, as a nontrivial implementation seems unlikely unless it changed the returned types
BabNode babBase::BabNodeWithInfo::node |
Not without info