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

Method setup

test/ldsb.cpp:1428–1434  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

1426 static const int u = 4;
1427 /// Setup problem constraints and symmetries
1428 static void setup(Home home, SetVarArray& xs) {
1429 Symmetries syms;
1430 syms << ValueSymmetry(IntArgs({1,2,3,4}));
1431 for (int i = 0 ; i < 3 ; i++)
1432 cardinality(home, xs[i], 1, 1);
1433 branch(home, xs, SET_VAR_NONE(), SET_VAL_MIN_INC(), syms);
1434 }
1435 /// Compute list of expected solutions
1436 static std::vector<IntSetArgs> expectedSolutions(void) {
1437 static std::vector<IntSetArgs> expected;

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected