Setup problem constraints and symmetries
| 764 | static const int u = 6; |
| 765 | /// Setup problem constraints and symmetries |
| 766 | static void setup(Home home, IntVarArray& xs) { |
| 767 | rel(home, xs[0] + xs[1] == 6); |
| 768 | // Values 0,1,2 are symmetric with 6,5,4. |
| 769 | IntArgs values({0,1,2, 6,5,4}); |
| 770 | Symmetries s; |
| 771 | s << ValueSequenceSymmetry(values, 3); |
| 772 | branch(home, xs, INT_VAR_NONE(), INT_VAL_MIN(), s); |
| 773 | } |
| 774 | /// Compute list of expected solutions |
| 775 | static std::vector<IntArgs> expectedSolutions(void) { |
| 776 | static std::vector<IntArgs> expected; |
nothing calls this directly
no test coverage detected