Extend assignment \a x
| 81 | } |
| 82 | /// Extend assignment \a x |
| 83 | virtual bool extendAssignment(Assignment& x) const { |
| 84 | Gecode::FloatVal d = x[0]*x[1]; |
| 85 | if (Gecode::Float::subset(d, dom)) { |
| 86 | x.set(2, d); |
| 87 | return true; |
| 88 | } else { |
| 89 | return false; |
| 90 | } |
| 91 | } |
| 92 | /// Post constraint on \a x |
| 93 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 94 | Gecode::mult(home, x[0], x[1], x[2]); |