Extend assignment \a x
| 199 | } |
| 200 | /// Extend assignment \a x |
| 201 | virtual bool extendAssignment(Assignment& x) const { |
| 202 | Gecode::FloatVal d = tan(x[0]); |
| 203 | if (Gecode::Float::subset(d, dom)) { |
| 204 | x.set(1, d); |
| 205 | return true; |
| 206 | } else { |
| 207 | return false; |
| 208 | } |
| 209 | } |
| 210 | /// Post constraint on \a x |
| 211 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 212 | Gecode::tan(home, x[0], x[1]); |