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

Method DistinctLinear

examples/kakuro.cpp:378–382  ·  view source on GitHub ↗

The actual problem

Source from the content-addressed store, hash-verified

376 public:
377 /// The actual problem
378 DistinctLinear(int n, int s) : x(*this,n,1,9) {
379 distinct(*this, x);
380 linear(*this, x, IRT_EQ, s);
381 branch(*this, x, INT_VAR_NONE(), INT_VAL_SPLIT_MIN());
382 }
383 /// Constructor for cloning \a s
384 DistinctLinear(DistinctLinear& s) : Space(s) {
385 x.update(*this, s.x);

Callers

nothing calls this directly

Calls 6

distinctFunction · 0.85
INT_VAR_NONEFunction · 0.85
INT_VAL_SPLIT_MINFunction · 0.85
linearFunction · 0.50
branchFunction · 0.50
updateMethod · 0.45

Tested by

no test coverage detected