Post constraint on \a x
| 190 | } |
| 191 | /// Post constraint on \a x |
| 192 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 193 | using namespace Gecode; |
| 194 | rel(home, expr(home, sqrt(x[0])), IRT_EQ, x[1], IPL_DOM); |
| 195 | } |
| 196 | }; |
| 197 | |
| 198 | /// %Test for absolute value constraint |