%Test whether \a x is solution
| 178 | : SetTest(t,1,ds_33,true,1) {} |
| 179 | /// %Test whether \a x is solution |
| 180 | virtual bool solution(const SetAssignment& x) const { |
| 181 | for (CountableSetValues xr(x.lub, x[0]);xr();++xr) |
| 182 | if (xr.val()==x.intval()) |
| 183 | return true; |
| 184 | return false; |
| 185 | } |
| 186 | /// Post constraint on \a x |
| 187 | virtual void post(Space& home, SetVarArray& x, IntVarArray& y) { |
| 188 | Gecode::rel(home, x[0], SRT_SUP, y[0]); |