%Test whether \a x is solution
| 680 | : Test("Arithmetic::Max::Bin::XYY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {} |
| 681 | /// %Test whether \a x is solution |
| 682 | virtual MaybeType solution(const Assignment& x) const { |
| 683 | return eq(max(x[0],x[1]), x[1]); |
| 684 | } |
| 685 | /// Post constraint on \a x |
| 686 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 687 | Gecode::max(home, x[0], x[1], x[1]); |