Extend assignment \a x
| 264 | } |
| 265 | /// Extend assignment \a x |
| 266 | virtual bool extendAssignment(Assignment& x) const { |
| 267 | if ((x[0].min() > 1.0) || (x[0].max() < -1.0)) |
| 268 | return false; |
| 269 | Gecode::FloatVal d = asin(x[0]); |
| 270 | if (Gecode::Float::subset(d, dom)) { |
| 271 | x.set(1, d); |
| 272 | return true; |
| 273 | } else { |
| 274 | return false; |
| 275 | } |
| 276 | } |
| 277 | /// Post constraint on \a x |
| 278 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 279 | Gecode::asin(home, x[0], x[1]); |