You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to allow domain constraints also in the body of a rule.
This is a convenient check if a variable is in a certain range/set of elements.
What do you think @rkaminsk ?
The text was updated successfully, but these errors were encountered:
Just go ahead. If you want to have such a feature. If this really helps to make encoding easier is another question. A simple &dom constraint is quite easy to convert to a sum:
&dom { L..R } = V is equivalent to &sum { V } >= L, &sum { V } <= R.
For general &dom constraints you will have to introduce a disjunction. You will probably have to implement something separately for the body because the current translation is specialized for the head (for better propagation).
I would like to allow domain constraints also in the body of a rule.
This is a convenient check if a variable is in a certain range/set of elements.
What do you think @rkaminsk ?
The text was updated successfully, but these errors were encountered: