[gecode-users] probability to apply constraint

Christian Schulte cschulte at kth.se
Mon Jun 9 15:59:59 CEST 2014


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-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf Of Richard Portelli
Sent: Monday, June 09, 2014 2:48 PM
To: users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20140609/8f48d386/attachment.html>


More information about the users mailing list