%Test whether \a x is solution
| 390 | } |
| 391 | /// %Test whether \a x is solution |
| 392 | virtual bool solution(const Assignment& x) const { |
| 393 | int l_reg[3] = {x[0],x[1],x[2]}; |
| 394 | int r_reg[3] = {x[3],x[4],x[5]}; |
| 395 | return cmp(eval(l_lis,l_reg),irt,eval(r_lis,r_reg)); |
| 396 | } |
| 397 | /// Post constraint on \a x |
| 398 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 399 | using namespace Gecode; |