Check whether \a has only one coefficients
| 44 | |
| 45 | /// Check whether \a has only one coefficients |
| 46 | bool one(const Gecode::FloatValArgs& a) { |
| 47 | for (int i=a.size(); i--; ) |
| 48 | if (a[i] != 1) |
| 49 | return false; |
| 50 | return true; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * \defgroup TaskTestFloatLinear Linear constraints |