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

Method setup

test/ldsb.cpp:1339–1343  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

1337 static const int u = 1;
1338 /// Setup problem constraints and symmetries
1339 static void setup(Home home, SetVarArray& xs) {
1340 Symmetries syms;
1341 syms << VariableSymmetry(xs);
1342 branch(home, xs, SET_VAR_NONE(), SET_VAL_MIN_INC(), syms);
1343 }
1344 /// Compute list of expected solutions
1345 static std::vector<IntSetArgs> expectedSolutions(void) {
1346 static std::vector<IntSetArgs> expected;

Callers

nothing calls this directly

Calls 4

SET_VAR_NONEFunction · 0.85
SET_VAL_MIN_INCFunction · 0.85
VariableSymmetryFunction · 0.50
branchFunction · 0.50

Tested by

no test coverage detected