Go to the documentation of this file.
27 #ifndef KnapNodeDesc_h_
28 #define KnapNodeDesc_h_
KnapVarStatus * varStatus_
This array keeps track of which variables have been fixed by branching and which are still free.
int usedCapacity_
The total size of the items fixed to be put into the knapsack.
virtual AlpsReturnStatus decodeToSelf(AlpsEncoded &encoded)
Unpack fields from the given AlpsEncoded object.
KnapNodeDesc & operator=(KnapNodeDesc const &rhs)
Disable copy assignment operator.
virtual AlpsNodeDesc * decode(AlpsEncoded &encoded) const
Decode the given AlpsEncoded object into a new AlpsKnowledge object and return a pointer to it.
This is an abstract base class for subproblem data to be stored in a tree node.
int getUsedCapacity() const
void setVarStatus(const int i, const KnapVarStatus status)
AlpsEncoded * encode() const
Encode the content of this into an AlpsEncoded object and return a pointer to it.
KnapVarStatus getVarStatus(const int i)
Here, we need to fill in what the node description will look like.
const KnapModel * model() const
KnapNodeDesc(KnapModel *model)
const KnapVarStatus * getVarStati() const