[gecode-users] Question about one type of constraint
Christian Schulte
cschulte at kth.se
Thu Oct 16 11:09:59 CEST 2014
Hi,
This is not really a Gecode question but a modeling question. This group should be really focused on Gecode.
Best
Christian
--
Christian Schulte, Professor of Computer Science, KTH, www.gecode.org/~schulte/
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf Of Chd Orti
Sent: Thursday, October 16, 2014 10:52 AM
To: users at gecode.org
Subject: [gecode-users] Question about one type of constraint
Hello,
I have an array (size 10) of positive integers which can also take the value 0;
I have a constraint on the sum of these numbers for example 10;
Here is a solution for example :
1 2 0 0 5 1 0 0 0 1
I want to add a constraint : the sum of the 2 first integers with value different to 0 equals 4.
How could I do that?
Cheers,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20141016/40295391/attachment.html>
More information about the users
mailing list