Package | Description |
---|---|
org.jacop.constraints.knapsack |
Modifier and Type | Field and Description |
---|---|
Tree |
Knapsack.tree
The tree for the storing information about the maximalWeight,
sum of weights and sum of profits.
|
Modifier and Type | Method and Description |
---|---|
Tree |
Tree.merge(Tree that)
A merge method for trees, it added a new root from the ancients
|
Modifier and Type | Method and Description |
---|---|
Tree |
Tree.merge(Tree that)
A merge method for trees, it added a new root from the ancients
|
void |
TreeLeaf.recomputeDown(Tree tree) |
void |
TreeNode.recomputeDown(Tree tree)
This function recomputes the attributes of this node after
recomputing the left and right subtree.
|
void |
TreeLeaf.recomputeUp(Tree tree) |
void |
TreeNode.recomputeUp(Tree tree)
This function is used to recompute the attributes of all nodes
on the way to root from this node.
|
void |
TreeLeaf.updateInternalValues(Tree tree)
Only used in removeLevelLate(), update the internal value like previous
and slice.
|
Constructor and Description |
---|
Tree(Tree tree)
It creates a tree by making a shallow copy.
|
Copyright © 2022. All rights reserved.