Post constraint on \a x
| 57 | } |
| 58 | /// Post constraint on \a x |
| 59 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 60 | using namespace Gecode; |
| 61 | IntVar iv(home,-1000,1000); |
| 62 | channel(home, x[0], iv); |
| 63 | channel(home, iv, x[1]); |
| 64 | } |
| 65 | }; |
| 66 | |
| 67 | /// %Test channel between float and Boolean |