Post constraint on \a x
| 119 | } |
| 120 | /// Post constraint on \a x |
| 121 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 122 | if (flip()) |
| 123 | Gecode::cos(home, x[0], x[1]); |
| 124 | else |
| 125 | Gecode::rel(home, cos(x[0]) == x[1]); |
| 126 | } |
| 127 | }; |
| 128 | |
| 129 | /// %Test for cosinus constraint where solution is ensured |