%Test whether \a x is solution
| 581 | : Test("Arithmetic::Min::Bin::XYX::"+s,2,d,st,CPLT_ASSIGNMENT,false) {} |
| 582 | /// %Test whether \a x is solution |
| 583 | virtual MaybeType solution(const Assignment& x) const { |
| 584 | return eq(min(x[0],x[1]), x[0]); |
| 585 | } |
| 586 | /// Post constraint on \a x |
| 587 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 588 | Gecode::min(home, x[0], x[1], x[0]); |