Post constraint
| 454 | } |
| 455 | /// Post constraint |
| 456 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 457 | using namespace Gecode; |
| 458 | if (_rand(2) != 0) |
| 459 | ite(home,channel(home,x[0]),x[1],x[2],x[3]); |
| 460 | else |
| 461 | rel(home, ite(channel(home,x[0]),x[1],x[2]) == x[3]); |
| 462 | } |
| 463 | }; |
| 464 | |
| 465 | /// %Test for if-then-else-constraint |