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

Method bound

test/int.cpp:267–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265 }
266
267 void
268 TestSpace::bound(Gecode::Support::RandomGenerator& rand) {
269 using namespace Gecode;
270 int i = rndvar(rand);
271 bool min = rand(2);
272 rel(i, IRT_EQ, min ? x[i].min() : x[i].max());
273 }
274
275 void
276 TestSpace::prune(int i, bool bounds_only, Gecode::Support::RandomGenerator& rand) {

Callers 1

runMethod · 0.45

Calls 3

relFunction · 0.50
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected