Post constraint on \a x and \a y
| 366 | } |
| 367 | /// Post constraint on \a x and \a y |
| 368 | virtual void post(Gecode::Space& home, Gecode::SetVarArray& x, |
| 369 | Gecode::IntVarArray& y) { |
| 370 | // x-coordinate: x[0], y-coordinate: x[1], result: x[2] |
| 371 | using namespace Gecode; |
| 372 | Matrix<IntSetArgs> m(tm,2,2); |
| 373 | element(home, m, y[0], y[1], x[0]); |
| 374 | } |
| 375 | }; |
| 376 | |
| 377 | MatrixIntSet _emis; |