- Origin
[Brand09]
- Constraint
-
- Synonyms
,
,
,
.
- Arguments
| |
| |
- Restrictions
|
|
|
- Purpose
Given a collection of variables which can only be assigned non negative values,
and a variable , enforce the condition
.
stands from the fact that we assume an additional implicit 0 before the first variable
(i.e.,Β ).
- Example
-
The constraint holds since we have that
.
- Typical
|
|
|
|
|
- Symmetries
One and the same constant can be added to and to .
Items of can be reversed.
can be increased.
- Arg. properties
-
- Usage
The was initially motivated by the problem of decomposing a
matrix of non-negative integers into a positive linear combination of matrices
consisting of only zeros and ones, where the ones occur consecutively in each row.
- Algorithm
A bound-consistency filtering algorithm
for the constraint is described inΒ [Brand09].
- Reformulation
The following reformulations are provided inΒ [Brand09].
Assuming is defined as 0
(i.e.,Β a zero is added before the first variable of the collection) we have:
with
and
.
with
and
.
- Counting
-
Length () | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
Solutions | 14 | 145 | 2875 | 51415 | 1210104 | 28573741 | 801944469 |
Number of solutions for : domains
Length () | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
Total | 14 | 145 | 2875 | 51415 | 1210104 | 28573741 | 801944469 |
| 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| 1 | 4 | 7 | 11 | 16 | 22 | 29 | 37 |
| 2 | 9 | 23 | 51 | 101 | 183 | 309 | 493 |
| 3 | - | 54 | 156 | 396 | 904 | 1891 | 3679 |
| 4 | - | 60 | 375 | 1167 | 3235 | 8135 | 18835 |
| 5 | - | - | 485 | 2848 | 9318 | 27483 | 74143 |
| 6 | - | - | 563 | 4263 | 22981 | 77947 | 240751 |
| 7 | - | - | 608 | 5568 | 38836 | 193742 | 675244 |
| 8 | - | - | 625 | 6616 | 56703 | 359880 | 1688427 |
| 9 | - | - | - | 7314 | 74658 | 578511 | 3369015 |
| 10 | - | - | - | 7650 | 90639 | 837441 | 5865915 |
| 11 | - | - | - | 7720 | 102875 | 1115687 | 9220695 |
| 12 | - | - | - | 7755 | 110425 | 1386029 | 13354545 |
| 13 | - | - | - | - | 113827 | 1619993 | 18051195 |
| 14 | - | - | - | - | 115857 | 1795694 | 22965651 |
| 15 | - | - | - | - | 116942 | 1908968 | 27670800 |
| 16 | - | - | - | - | 117437 | 1988222 | 31755573 |
| 17 | - | - | - | - | 117612 | 2039616 | 34989993 |
| 18 | - | - | - | - | 117649 | 2069933 | 37574073 |
| 19 | - | - | - | - | - | 2085763 | 39526569 |
| 20 | - | - | - | - | - | 2092817 | 40912205 |
| 21 | - | - | - | - | - | 2095436 | 41827847 |
| 22 | - | - | - | - | - | 2096360 | 42386387 |
| 23 | - | - | - | - | - | 2096822 | 42700112 |
| 24 | - | - | - | - | - | 2097032 | 42865683 |
| 25 | - | - | - | - | - | - | 42953199 |
| 26 | - | - | - | - | - | - | 43002171 |
| 27 | - | - | - | - | - | - | 43027581 |
| 28 | - | - | - | - | - | - | 43039551 |
| 29 | - | - | - | - | - | - | 43044507 |
| 30 | - | - | - | - | - | - | 43046215 |
| 31 | - | - | - | - | - | - | 43046656 |
| 32 | - | - | - | - | - | - | 43046721 |
Solution count for : domains
- Keywords
characteristic of a constraint:
difference,
sum.
constraint type:
predefined constraint.
filtering:
bound-consistency.