Check whether \a x is solution
| 134 | : Test("Bool::Bin::XYY::"+str(op0),2,0,1), op(op0) {} |
| 135 | /// Check whether \a x is solution |
| 136 | virtual bool solution(const Assignment& x) const { |
| 137 | return check(x[0],op,x[1]) == x[1]; |
| 138 | } |
| 139 | /// Post constraint |
| 140 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 141 | using namespace Gecode; |