5.325. sum
| DESCRIPTION | LINKS | GRAPH |
- Origin
- Constraint
- Arguments
- Restrictions
- Purpose
is equal to the sum of the constants corresponding to the set of the collection.
- Example
-
The constraint holds since its last argument is equal to the sum of the 2th and 3th items of the collection . As illustrated by FigureΒ 5.325.1, this stems from the fact that its first argument corresponds to the value of the attribute of the first item of the collection. Consequently the corresponding set is used for summing the 2th and 3th items of the collection.
Figure 5.325.1. Illustration of the correspondence between the arguments of the constraint in the context of the Example slot

- Symmetry
Items of are permutable.
- Usage
In his article introducing the constraint, TallysΒ H.Β Yunes mentions the Sequence Dependent Cumulative Cost Problem as the subproblem that originally motivates this constraint.
- Algorithm
The articleΒ [Yunes02] gives the convex hull relaxation of the constraint.
- See also
common keyword: Β (data constraint), , Β (sum).
- Keywords
characteristic of a constraint: convex hull relaxation, sum.
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
-
- Graph property(ies)
-
- Graph model
According to the value assigned to the arc constraint selects for the final graph:
The item of the collection,
The items of the collection for which the key correspond to the indices of the set of the collection.
Finally, since we use the graph property on the attribute of the collection, the last argument of the constraint is equal to the sum of the constants associated with the vertices of the final graph.
PartsΒ (A) andΒ (B) of FigureΒ 5.325.2 respectively show the initial and final graph associated with the Example slot. Since we use the graph property we show the vertices from which we compute in a box.
Figure 5.325.2. Initial and final graph of the constraint


(a) (b)