Post constraint on \a x
| 180 | } |
| 181 | /// Post constraint on \a x |
| 182 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 183 | if (flip()) |
| 184 | Gecode::tan(home, x[0], x[1]); |
| 185 | else |
| 186 | Gecode::rel(home, tan(x[0]) == x[1]); |
| 187 | } |
| 188 | }; |
| 189 | |
| 190 | /// %Test for tangent constraint where solution is ensured |