Extend assignment \a x
| 216 | } |
| 217 | /// Extend assignment \a x |
| 218 | virtual bool extendAssignment(Assignment& x) const { |
| 219 | Gecode::FloatVal d = x[0]/x[1]; |
| 220 | if (Gecode::Float::subset(d, dom)) { |
| 221 | x.set(2, d); |
| 222 | return true; |
| 223 | } else { |
| 224 | return false; |
| 225 | } |
| 226 | } |
| 227 | /// Post constraint on \a x |
| 228 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 229 | Gecode::div(home, x[0], x[1], x[2]); |