%Test whether \a x is solution
| 597 | : Test("Arithmetic::Min::Bin::XYY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {} |
| 598 | /// %Test whether \a x is solution |
| 599 | virtual MaybeType solution(const Assignment& x) const { |
| 600 | return eq(min(x[0],x[1]), x[1]); |
| 601 | } |
| 602 | /// Post constraint on \a x |
| 603 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 604 | Gecode::min(home, x[0], x[1], x[1]); |