Post constraint on \a x
| 62 | } |
| 63 | /// Post constraint on \a x |
| 64 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 65 | if (flip()) |
| 66 | Gecode::mult(home, x[0], x[1], x[2]); |
| 67 | else |
| 68 | Gecode::rel(home, x[0] * x[1] == x[2]); |
| 69 | } |
| 70 | }; |
| 71 | |
| 72 | /// %Test for multiplication constraint when solution is ensured |