%Test whether \a x is solution
| 288 | } |
| 289 | /// %Test whether \a x is solution |
| 290 | virtual bool solution(const Assignment& x) const { |
| 291 | int l_reg[3] = {x[0],x[1],x[2]}; |
| 292 | int r_reg[3] = {x[0],x[1],x[2]}; |
| 293 | return cmp(eval(l_lis,l_reg),irt,eval(r_lis,r_reg)); |
| 294 | } |
| 295 | /// Post constraint on \a x |
| 296 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 297 | using namespace Gecode; |