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

Method setup

test/ldsb.cpp:1389–1393  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

1387 static const int u = 1;
1388 /// Setup problem constraints and symmetries
1389 static void setup(Home home, SetVarArray& xs) {
1390 Symmetries syms;
1391 syms << ValueSymmetry(IntArgs({0,1}));
1392 branch(home, xs, SET_VAR_NONE(), SET_VAL_MIN_INC(), syms);
1393 }
1394 /// Compute list of expected solutions
1395 static std::vector<IntSetArgs> expectedSolutions(void) {
1396 static std::vector<IntSetArgs> expected;

Callers

nothing calls this directly

Calls 5

ValueSymmetryFunction · 0.85
SET_VAR_NONEFunction · 0.85
SET_VAL_MIN_INCFunction · 0.85
IntArgsClass · 0.50
branchFunction · 0.50

Tested by

no test coverage detected