Hi, Sorry that is not possible and I cannot see how to model it easily. Best Christian
-- Christian Schulte, Professor of Computer Science, KTH, www.ict.kth.se/~cschulte/ From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf Of Richard Portelli Sent: Monday, June 09, 2014 2:48 PM To: users@gecode.org Subject: [gecode-users] probability to apply constraint Hello, Is it possible to apply a constraint with a probability associated? For example I have an array of 10 integers which has two constraint : 1) The sum should be equal to 100; 2) The numbers of even array index should be equal to 0. To the 2) constraint, I would like to add a probability saying that the constraint apply in 80% of the cases. I know that what could work would be for each even array index to pick a number between 0 and 100 and apply the rule dynamically depending on the number picked (<80 -> apply, otherwise doesn'y apply). However, I would like to know if there would be a more elegant way. Cheers Richard
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users