Post constraint on \a x
| 380 | } |
| 381 | /// Post constraint on \a x |
| 382 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 383 | if (flip()) |
| 384 | Gecode::pow(home, x[0], n, x[1]); |
| 385 | else |
| 386 | Gecode::rel(home, pow(x[0],n) == x[1]); |
| 387 | } |
| 388 | }; |
| 389 | |
| 390 | /// %Test for pow constraint where solution is ensured |