%Test whether \a x is solution
| 115 | : Test("Trigonometric::Cos::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {} |
| 116 | /// %Test whether \a x is solution |
| 117 | virtual MaybeType solution(const Assignment& x) const { |
| 118 | return eq(cos(x[0]), x[1]); |
| 119 | } |
| 120 | /// Post constraint on \a x |
| 121 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 122 | if (flip()) |