|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A cloneable version of the Knapsack constraint. More...

Public Member Functions | |
| KnapsackCloneable (KnapsackItem[] items, IntVarCloneable cap, IntVarCloneable profit) | |
| Constructor. | |
| KnapsackCloneable (int[] profits, int[] weights, IntVarCloneable[] quantity, IntVarCloneable knapsackCapacity, IntVarCloneable knapsackProfit) | |
| It constructs the knapsack constraint. | |
| KnapsackCloneable | cloneInto (StoreCloneable targetStore) throws FailException |
A cloneable version of the Knapsack constraint.
| org.jacop.constraints.knapsack.KnapsackCloneable.KnapsackCloneable | ( | KnapsackItem[] | items, |
| IntVarCloneable | cap, | ||
| IntVarCloneable | profit ) |
Constructor.
| items | the items in the knapsack |
| cap | the capacity |
| profit | the profit |
Referenced by cloneInto().
| org.jacop.constraints.knapsack.KnapsackCloneable.KnapsackCloneable | ( | int[] | profits, |
| int[] | weights, | ||
| IntVarCloneable[] | quantity, | ||
| IntVarCloneable | knapsackCapacity, | ||
| IntVarCloneable | knapsackProfit ) |
It constructs the knapsack constraint.
| profits | the list of profits, each for the corresponding item no. |
| weights | the list of weights, each for the corresponding item no. |
| quantity | finite domain variable specifying allowed values for the vars. |
| knapsackCapacity | finite domain variable specifying the capacity limit of the knapsack. |
| knapsackProfit | finite domain variable defining the profit |
| KnapsackCloneable org.jacop.constraints.knapsack.KnapsackCloneable.cloneInto | ( | StoreCloneable | targetStore | ) | throws FailException |
Implements org.jacop.constraints.ConstraintCloneableInterface< C extends DecomposedConstraint<? extends Constraint > >.
References KnapsackCloneable().
