[gecode-users] This type of constraint it is availaible in Gecode ?

Bouchene Sabrina genius_linda1987 at yahoo.fr
Thu Dec 4 15:42:49 CET 2014


Hi,
Exst'il in Gecode a constraint that calculates the number of consecutive values in a an array ?
example: Array = 1 1 2 1 1 1 0 0 2 2 2
the first sequence of (1) = 2.the second sequence (2) = 1.troisème the sequence of (1) = 3.thefourth sequence of (0) = 2.the last sequence of (2) = 3.
I want to write this constraint so that later (an other constraint) that imposes limits on the size of these sequences. example:  the size of the sequence should not exceed 3.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20141204/316c2205/attachment.html>


More information about the users mailing list