Check whether \a x is solution
| 179 | op(op0), c(c0) {} |
| 180 | /// Check whether \a x is solution |
| 181 | virtual bool solution(const Assignment& x) const { |
| 182 | return check(x[0],op,x[1]) == c; |
| 183 | } |
| 184 | /// Post constraint |
| 185 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 186 | using namespace Gecode; |