Check whether \a x is solution
| 202 | op(op0), c(c0) {} |
| 203 | /// Check whether \a x is solution |
| 204 | virtual bool solution(const Assignment& x) const { |
| 205 | return check(x[0],op,x[0]) == c; |
| 206 | } |
| 207 | /// Post constraint |
| 208 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 209 | using namespace Gecode; |