Post constraint on \a x
| 121 | } |
| 122 | /// Post constraint on \a x |
| 123 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 124 | if (flip()) |
| 125 | Gecode::log(home, x[0], x[1]); |
| 126 | else |
| 127 | Gecode::rel(home, log(x[0]) == x[1]); |
| 128 | } |
| 129 | }; |
| 130 | |
| 131 | /// %Test for logarithm constraint where solution is ensured |