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

Method post

test/int/mm-arithmetic.cpp:192–195  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

190 }
191 /// Post constraint on \a x
192 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
193 using namespace Gecode;
194 rel(home, expr(home, sqrt(x[0])), IRT_EQ, x[1], IPL_DOM);
195 }
196 };
197
198 /// %Test for absolute value constraint

Callers

nothing calls this directly

Calls 3

relFunction · 0.50
exprFunction · 0.50
sqrtFunction · 0.50

Tested by

no test coverage detected