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

Method setup

test/ldsb.cpp:373–378  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

371 static const int u = 3;
372 /// Setup problem constraints and symmetries
373 static void setup(Home home, IntVarArray& xs) {
374 Symmetries syms;
375 distinct(home, xs);
376 syms << VariableSymmetry(IntVarArgs() << xs[0] << xs[1]);
377 branch(home, xs, INT_VAR_NONE(), INT_VAL_MIN(), syms);
378 }
379 /// Compute list of expected solutions
380 static std::vector<IntArgs> expectedSolutions(void) {
381 static std::vector<IntArgs> expected;

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected