I'm sorry, there was a problem,
  let's me describe again:
  I have a alldiff{x(1),..,x(n)} constraint that domain of variables is 
[1,..,2n],
  This constraint for example (for n=10) produce sets like this {2,5,8,9,1}
  now, In the cost function I want to count consecutive values, I mean 
cost({2,5,8,9,1})=2 (since 1,2 and 8,9 are 2 consecutive integer).
  Now, I hope you get my problem.
  Cheers,

       
---------------------------------
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot 
with the All-new Yahoo! Mail  
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to