Setup problem constraints and symmetries
| 828 | static const int u = 6; |
| 829 | /// Setup problem constraints and symmetries |
| 830 | static void setup(Home home, IntVarArray& xs) { |
| 831 | rel(home, xs[0] + xs[1] == 6); |
| 832 | Symmetries s; |
| 833 | // Values 0,1,2 are symmetric with 6,5,4. |
| 834 | s << values_reflect(0,6); |
| 835 | branch(home, xs, INT_VAR_NONE(), INT_VAL_MED(), s); |
| 836 | } |
| 837 | /// Compute list of expected solutions |
| 838 | static std::vector<IntArgs> expectedSolutions(void) { |
| 839 | static std::vector<IntArgs> expected; |
nothing calls this directly
no test coverage detected