Post constraint on \a x
| 61 | } |
| 62 | /// Post constraint on \a x |
| 63 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 64 | if (x.size() == 1) |
| 65 | Gecode::dom(home, x[0], -2); |
| 66 | else |
| 67 | Gecode::dom(home, x, -2); |
| 68 | } |
| 69 | /// Post reified constraint on \a x for \a r |
| 70 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x, |
| 71 | Gecode::Reify r) { |