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

Method post

test/int/arithmetic.cpp:362–368  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

360 }
361 /// Post constraint on \a x
362 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
363 using namespace Gecode;
364 if (n > 4)
365 nroot(home, x[0], n, x[1], ipl);
366 else
367 rel(home, expr(home, nroot(x[0],n), ipl), IRT_EQ, x[1], ipl);
368 }
369 };
370
371 /// %Test for nroot constraint with shared variables

Callers

nothing calls this directly

Calls 3

nrootFunction · 0.50
relFunction · 0.50
exprFunction · 0.50

Tested by

no test coverage detected