Post constraint on \a x
| 379 | } |
| 380 | /// Post constraint on \a x |
| 381 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 382 | if (flip()) |
| 383 | Gecode::atan(home, x[0], x[1]); |
| 384 | else |
| 385 | Gecode::rel(home, atan(x[0]) == x[1]); |
| 386 | } |
| 387 | }; |
| 388 | |
| 389 | /// %Test for atangent constraint where solution is ensured |