Post constraint on \a x
| 58 | } |
| 59 | /// Post constraint on \a x |
| 60 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 61 | if (flip()) |
| 62 | Gecode::exp(home, x[0], x[1]); |
| 63 | else |
| 64 | Gecode::rel(home, exp(x[0]) == x[1]); |
| 65 | } |
| 66 | }; |
| 67 | |
| 68 | /// %Test for exponent constraint where solution is ensured |