MCPcopy Create free account
hub / github.com/Gecode/gecode / setup

Method setup

test/ldsb.cpp:1049–1055  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

1047 static const int u = 2;
1048 /// Setup problem constraints and symmetries
1049 static void setup(Home home, IntVarArray& xs) {
1050 distinct(home, xs);
1051 Symmetries s;
1052 IntArgs indices({0});
1053 s << ValueSymmetry(indices);
1054 branch(home, xs, INT_VAR_NONE(), INT_VAL_MIN(), s);
1055 }
1056 /// Compute list of expected solutions
1057 static std::vector<IntArgs> expectedSolutions(void) {
1058 static std::vector<IntArgs> expected;

Callers

nothing calls this directly

Calls 5

distinctFunction · 0.85
ValueSymmetryFunction · 0.85
INT_VAR_NONEFunction · 0.85
INT_VAL_MINFunction · 0.85
branchFunction · 0.50

Tested by

no test coverage detected