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