%Test whether \a x is solution
| 94 | : SetTest(t,1,ds_33,true,1) {} |
| 95 | /// %Test whether \a x is solution |
| 96 | virtual bool solution(const SetAssignment& x) const { |
| 97 | CountableSetRanges xr0(x.lub, x[0]); |
| 98 | return xr0() && xr0.min()==x.intval(); |
| 99 | } |
| 100 | /// Post constraint on \a x |
| 101 | virtual void post(Space& home, SetVarArray& x, IntVarArray& y) { |
| 102 | Gecode::min(home, x[0], y[0]); |