%Test whether \a x is solution
| 511 | : Test("Arithmetic::Abs::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {} |
| 512 | /// %Test whether \a x is solution |
| 513 | virtual MaybeType solution(const Assignment& x) const { |
| 514 | return eq(abs(x[0]), x[1]); |
| 515 | } |
| 516 | /// Post constraint on \a x |
| 517 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 518 | if (flip()) |