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

Method setup

test/ldsb.cpp:859–865  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

857 static const int u = 3;
858 /// Setup problem constraints and symmetries
859 static void setup(Home home, IntVarArray& xs) {
860 distinct(home, xs);
861 Symmetries s;
862 IntArgs indices({0,1,2,3});
863 s << ValueSymmetry(indices);
864 branch(home, xs, INT_VAR_NONE(), INT_VAL_MIN(), s);
865 }
866 /// Compute list of expected solutions
867 static std::vector<IntArgs> expectedSolutions(void) {
868 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_MINFunction · 0.85
branchFunction · 0.50

Tested by

no test coverage detected