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

Method setup

test/ldsb.cpp:1569–1573  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

1567 static const int u = 3;
1568 /// Setup problem constraints and symmetries
1569 static void setup(Home home, IntVarArray& xs) {
1570 Symmetries s;
1571 s << values_reflect(l, u);
1572 branch(home, xs, INT_VAR_NONE(), INT_VAL_MIN(), s);
1573 }
1574 /// Compute list of expected solutions
1575 static std::vector<IntArgs> expectedSolutions(void) {
1576 static std::vector<IntArgs> expected;

Callers

nothing calls this directly

Calls 4

values_reflectFunction · 0.85
INT_VAR_NONEFunction · 0.85
INT_VAL_MINFunction · 0.85
branchFunction · 0.50

Tested by

no test coverage detected