Go to the documentation of this file.
27 #ifndef KnapTreeNode_h_
28 #define KnapTreeNode_h_
55 virtual int process(
bool isRoot =
false,
bool rampUp =
false);
57 virtual std::vector< CoinTriple<AlpsNodeDesc*, AlpsNodeStatus, double> >
KnapTreeNode & operator=(KnapTreeNode const &)
virtual AlpsTreeNode * createNewTreeNode(AlpsNodeDesc *&desc) const
The purpose of this function is be able to create the children of a node after branching.
virtual AlpsReturnStatus decodeToSelf(AlpsEncoded &encoded)
Decode the given AlpsEncoded object into this.
This class holds one node of the search tree.
This is an abstract base class for subproblem data to be stored in a tree node.
The abstract base class of Alps knowledges generated during the search.
AlpsEncoded * encode() const
Encode the content of this into an AlpsEncoded object and return a pointer to it.
virtual int process(bool isRoot=false, bool rampUp=false)
KnapTreeNode(KnapModel *model)
Here, we need to fill in what the node description will look like.
Holds a Knapsack tree node.
virtual std::vector< CoinTriple< AlpsNodeDesc *, AlpsNodeStatus, double > > branch()
int branchedOn_
The index of the branching variable.
virtual AlpsKnowledge * decode(AlpsEncoded &encoded) const
Decode the given AlpsEncoded object into a new AlpsKnowledge object and return a pointer to it.