Post constraint on \a x
| 970 | } |
| 971 | /// Post constraint on \a x |
| 972 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 973 | int n=x.size()-1; |
| 974 | Gecode::BoolVarArgs m(2*n); |
| 975 | for (int i=0; i<n; i++) |
| 976 | m[2*i+0]=m[2*i+1]=channel(home,x[i]); |
| 977 | Gecode::argmax(home, m, x[n], tiebreak); |
| 978 | } |
| 979 | }; |
| 980 | |
| 981 | /// %Test for argument minimum constraint |