%Test whether \a x is solution
| 192 | } |
| 193 | /// %Test whether \a x is solution |
| 194 | virtual bool solution(const Assignment& x) const { |
| 195 | int l_reg[3] = {x[0],x[1],x[2]}; |
| 196 | int r_reg[3] = {x[0],x[1],x[2]}; |
| 197 | return cmp(eval(l_lis,l_reg),irt,eval(r_lis,r_reg)); |
| 198 | } |
| 199 | /// Post constraint on \a x |
| 200 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 201 | using namespace Gecode; |