%Test whether \a x is solution
| 565 | : Test("Arithmetic::Min::Bin::XXY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {} |
| 566 | /// %Test whether \a x is solution |
| 567 | virtual MaybeType solution(const Assignment& x) const { |
| 568 | return eq(min(x[0],x[0]), x[1]); |
| 569 | } |
| 570 | /// Post constraint on \a x |
| 571 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 572 | Gecode::min(home, x[0], x[0], x[1]); |