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

Method setup

test/ldsb.cpp:583–589  ·  view source on GitHub ↗

Setup problem constraints and symmetries

Source from the content-addressed store, hash-verified

581 static const int u = 1;
582 /// Setup problem constraints and symmetries
583 static void setup(Home home, IntVarArray& xs) {
584 Matrix<IntVarArray> m(xs, 2, 3);
585 Symmetries s;
586 s << rows_interchange(m);
587 s << columns_interchange(m);
588 branch(home, xs, INT_VAR_NONE(), INT_VAL_MIN(), s);
589 }
590 /// Compute list of expected solutions
591 static std::vector<IntArgs> expectedSolutions(void) {
592 static std::vector<IntArgs> expected;

Callers

nothing calls this directly

Calls 5

rows_interchangeFunction · 0.85
columns_interchangeFunction · 0.85
INT_VAR_NONEFunction · 0.85
INT_VAL_MINFunction · 0.85
branchFunction · 0.50

Tested by

no test coverage detected