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

Method setup

test/ldsb.cpp:1113–1118  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

1111 static const int u = 3;
1112 /// Setup problem constraints and symmetries
1113 static void setup(Home home, IntVarArray& xs) {
1114 Symmetries s;
1115 s << VariableSymmetry(xs);
1116 s << ValueSymmetry(IntArgs::create(4,0));
1117 branch(home, xs, INT_VAR_NONE(), INT_VAL_MIN(), s);
1118 }
1119 /// Compute list of expected solutions
1120 static std::vector<IntArgs> expectedSolutions(void) {
1121 static std::vector<IntArgs> expected;

Callers

nothing calls this directly

Calls 5

ValueSymmetryFunction · 0.85
INT_VAR_NONEFunction · 0.85
INT_VAL_MINFunction · 0.85
VariableSymmetryFunction · 0.50
branchFunction · 0.50

Tested by

no test coverage detected