Setup problem constraints and symmetries
| 1456 | static const int u = 1; |
| 1457 | /// Setup problem constraints and symmetries |
| 1458 | static void setup(Home home, SetVarArray& xs) { |
| 1459 | Symmetries syms; |
| 1460 | syms << VariableSequenceSymmetry(xs,2); |
| 1461 | rel(home, xs[0], SOT_INTER, xs[1], SRT_EQ, IntSet::empty); |
| 1462 | rel(home, xs[2], SOT_INTER, xs[3], SRT_EQ, IntSet::empty); |
| 1463 | for (int i = 0 ; i < 4 ; i++) |
| 1464 | cardinality(home, xs[i], 1, 1); |
| 1465 | branch(home, xs, SET_VAR_NONE(), SET_VAL_MIN_INC(), syms); |
| 1466 | } |
| 1467 | /// Compute list of expected solutions |
| 1468 | static std::vector<IntSetArgs> expectedSolutions(void) { |
| 1469 | static std::vector<IntSetArgs> expected; |
nothing calls this directly
no test coverage detected