| 75 | return u() ? u.min() : Gecode::Set::Limits::max+1; |
| 76 | } |
| 77 | bool in(int i, CountableSetRanges& c, bool eq=false) const { |
| 78 | if (eq && i==Gecode::Set::Limits::max+1) |
| 79 | return true; |
| 80 | Iter::Ranges::Singleton s(i,i); |
| 81 | return Iter::Ranges::subset(s,c); |
| 82 | } |
| 83 | /// %Test whether \a x is solution |
| 84 | bool solution(const SetAssignment& x) const { |
| 85 | int x1 = shared ? x[0] : x[1]; |