Post constraint on \a x
| 515 | } |
| 516 | /// Post constraint on \a x |
| 517 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 518 | if (flip()) |
| 519 | Gecode::abs(home, x[0], x[1]); |
| 520 | else |
| 521 | Gecode::rel(home, abs(x[0]) == x[1]); |
| 522 | } |
| 523 | }; |
| 524 | |
| 525 | /// %Test for absolute value constraint with shared variables |