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

Method setup

test/ldsb.cpp:910–915  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

908 static const int u = 3;
909 /// Setup problem constraints and symmetries
910 static void setup(Home home, IntVarArray& xs) {
911 distinct(home, xs);
912 Symmetries s;
913 s << ValueSymmetry(xs[0]);
914 branch(home, xs, INT_VAR_NONE(), INT_VAL_MAX(), s);
915 }
916 /// Compute list of expected solutions
917 static std::vector<IntArgs> expectedSolutions(void) {
918 static std::vector<IntArgs> expected;

Callers

nothing calls this directly

Calls 5

distinctFunction · 0.85
ValueSymmetryFunction · 0.85
INT_VAR_NONEFunction · 0.85
INT_VAL_MAXFunction · 0.85
branchFunction · 0.50

Tested by

no test coverage detected