triska / clpz

Constraint Logic Programming over Integers
https://www.metalevel.at/prolog/clpz
184 stars 15 forks source link

Sum propagation in clp(fd) #11

Closed erlanger closed 5 years ago

erlanger commented 5 years ago

If I have

A #= B + C + D, A #< 300, B #> 0, C #>0, D #> 0

A stronger propagation should be added stating that

B #< 300, C #< 300, D #< 300
UWN commented 5 years ago

But, this is the case, in fact even more so. You get [B,C,D] ins 1..297!

erlanger commented 5 years ago

You're right, I must have mistyped something.