Uses of Class
org.jacop.constraints.knapsack.KnapsackItem
Packages that use KnapsackItem
-
Uses of KnapsackItem in org.jacop.constraints.knapsack
Fields in org.jacop.constraints.knapsack declared as KnapsackItemModifier and TypeFieldDescriptionKnapsack.itemsThe array of items present in the knapsack constraint.Methods in org.jacop.constraints.knapsack with parameters of type KnapsackItemModifier and TypeMethodDescriptionintKnapsackItem.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 KnapsackItemModifierConstructorDescriptionKnapsack(KnapsackItem[] items, IntVar knapsackCapacity, IntVar knapsackProfit) It constructs an knapsack constraint.It constructs a tree out of the list of items and creates proper supporting structures.