Post constraint on \a x
| 85 | } |
| 86 | /// Post constraint on \a x |
| 87 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 88 | Gecode::IntSet s(-1,1); |
| 89 | Gecode::count(home, x, s, irt, 2); |
| 90 | } |
| 91 | }; |
| 92 | |
| 93 | /// %Test number of equal integers equal to integer with duplicate variables |