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

Method setup

test/ldsb.cpp:289–294  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

287 static const int u = 3;
288 /// Setup problem constraints and symmetries
289 static void setup(Home home, IntVarArray& xs) {
290 distinct(home, xs);
291 Symmetries syms;
292 syms << VariableSymmetry(xs);
293 branch(home, xs, INT_VAR_NONE(), INT_VAL_MIN(), syms);
294 }
295 /// Compute list of expected solutions
296 static std::vector<IntArgs> expectedSolutions(void) {
297 static std::vector<IntArgs> expected;

Callers

nothing calls this directly

Calls 5

distinctFunction · 0.85
INT_VAR_NONEFunction · 0.85
INT_VAL_MINFunction · 0.85
VariableSymmetryFunction · 0.50
branchFunction · 0.50

Tested by

no test coverage detected