Extend assignment \a x
| 398 | } |
| 399 | /// Extend assignment \a x |
| 400 | virtual bool extendAssignment(Assignment& x) const { |
| 401 | Gecode::FloatVal d = atan(x[0]); |
| 402 | if (Gecode::Float::subset(d, dom)) { |
| 403 | x.set(1, d); |
| 404 | return true; |
| 405 | } else { |
| 406 | return false; |
| 407 | } |
| 408 | } |
| 409 | /// Post constraint on \a x |
| 410 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 411 | Gecode::atan(home, x[0], x[1]); |