Post constraint on \a x
| 107 | } |
| 108 | /// Post constraint on \a x |
| 109 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 110 | Gecode::mult(home, x[0], x[0], x[1]); |
| 111 | } |
| 112 | }; |
| 113 | |
| 114 | /// %Test for multiplication constraint with shared variables when solution is ensured |