Uses of Class
org.jacop.constraints.knapsack.KnapsackItem
-
Packages that use KnapsackItem Package Description org.jacop.constraints.knapsack -
-
Uses of KnapsackItem in org.jacop.constraints.knapsack
Fields in org.jacop.constraints.knapsack declared as KnapsackItem Modifier and Type Field Description KnapsackItem[]
Knapsack. items
The array of items present in the knapsack constraint.Methods in org.jacop.constraints.knapsack with parameters of type KnapsackItem Modifier and Type Method Description int
KnapsackItem. compareTo(KnapsackItem that)
Method used in the sorting of the items, we use profit and weight to know the less efficient item without using division.Constructors in org.jacop.constraints.knapsack with parameters of type KnapsackItem Constructor Description Knapsack(KnapsackItem[] items, IntVar knapsackCapacity, IntVar knapsackProfit)
It constructs an knapsack constraint.Tree(KnapsackItem[] items, java.util.Map<IntVar,TreeLeaf> varPositionMaping, TreeLeaf[] leaves, IntVar zero)
It constructs a tree out of the list of items and creates proper supporting structures.
-