Post constraint on \a x
| 633 | } |
| 634 | /// Post constraint on \a x |
| 635 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 636 | if (flip()) |
| 637 | Gecode::max(home, x[0], x[1], x[2]); |
| 638 | else |
| 639 | Gecode::rel(home, max(x[0], x[1]) == x[2]); |
| 640 | } |
| 641 | }; |
| 642 | |
| 643 | /// %Test for binary maximum constraint with shared variables |