Post constraint on \a x
| 268 | } |
| 269 | /// Post constraint on \a x |
| 270 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 271 | Gecode::IntVarArgs y(3); |
| 272 | for (int i=0; i<3; i++) |
| 273 | y[i]=x[i]; |
| 274 | Gecode::count(home, y, x[3], irt, x[4], ipl); |
| 275 | } |
| 276 | }; |
| 277 | |
| 278 | /// %Test number of equal variables equal to integer |