Constructor for creation
| 48 | Gecode::PropagatorGroup a, b; |
| 49 | /// Constructor for creation |
| 50 | GroupSpace(int n) : x(*this,10,-10,10) { |
| 51 | using namespace Gecode; |
| 52 | switch (n) { |
| 53 | case 2: |
| 54 | distinct((*this)(b), x, IPL_DOM); |
| 55 | // fall through |
| 56 | case 1: |
| 57 | rel((*this)(a), x[0], Gecode::IRT_LE, x[1]); |
| 58 | break; |
| 59 | default: |
| 60 | break; |
| 61 | } |
| 62 | } |
| 63 | /// Constructor for cloning \a s |
| 64 | GroupSpace(GroupSpace& s) : Space(s), a(s.a), b(s.b) { |
| 65 | x.update(*this,s.x); |