Post constraint on \a x
| 308 | } |
| 309 | /// Post constraint on \a x |
| 310 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 311 | if (flip()) |
| 312 | Gecode::sqrt(home, x[0], x[1]); |
| 313 | else |
| 314 | Gecode::rel(home, sqrt(x[0]) == x[1]); |
| 315 | } |
| 316 | }; |
| 317 | |
| 318 | /// %Test for square root constraint where solution is ensured |