Post constraint on \a x
| 163 | } |
| 164 | /// Post constraint on \a x |
| 165 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 166 | using namespace Gecode; |
| 167 | Gecode::LinIntExpr reg[3] = { |
| 168 | x[0],x[1],channel(home,x[2]) |
| 169 | }; |
| 170 | rel(home, x[3], IRT_EQ, Gecode::expr(home, eval(lis,reg))); |
| 171 | } |
| 172 | }; |
| 173 | |
| 174 |