Post constraint on \a x
| 446 | } |
| 447 | /// Post constraint on \a x |
| 448 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 449 | if (flip()) |
| 450 | Gecode::nroot(home, x[0], n, x[1]); |
| 451 | else |
| 452 | Gecode::rel(home, nroot(x[0],n) == x[1]); |
| 453 | } |
| 454 | }; |
| 455 | |
| 456 | /// %Test for nroot constraint where solution is ensured |