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

Method setup

test/ldsb.cpp:1600–1606  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

1598 static const int u = 3;
1599 /// Setup problem constraints and symmetries
1600 static void setup(Home home, IntVarArray& xs) {
1601 distinct(home, xs);
1602 Symmetries s;
1603 s << VariableSymmetry(xs);
1604 s << ValueSymmetry(IntArgs::create(4,0));
1605 branch(home, xs, INT_VAR_ACTION_MIN(0.8), INT_VAL_MIN(), s);
1606 }
1607 /// Compute list of expected solutions
1608 static std::vector<IntArgs> expectedSolutions(void) {
1609 static std::vector<IntArgs> expected;

Callers

nothing calls this directly

Calls 6

distinctFunction · 0.85
ValueSymmetryFunction · 0.85
INT_VAR_ACTION_MINFunction · 0.85
INT_VAL_MINFunction · 0.85
VariableSymmetryFunction · 0.50
branchFunction · 0.50

Tested by

no test coverage detected