Post constraint on \a x
| 161 | } |
| 162 | /// Post constraint on \a x |
| 163 | virtual void post(Space& home, SetVarArray& x, IntVarArray& y) { |
| 164 | BoolVarArgs b(y.size()); |
| 165 | for (int i=y.size(); i--;) |
| 166 | b[i] = channel(home, y[i]); |
| 167 | Gecode::channel(home, b, x[0]); |
| 168 | } |
| 169 | }; |
| 170 | |
| 171 | ChannelBool _channelbool1("Channel::Bool::1", d2, 3); |