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

Method post

test/float/transcendental.cpp:60–65  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

58 }
59 /// Post constraint on \a x
60 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
61 if (flip())
62 Gecode::exp(home, x[0], x[1]);
63 else
64 Gecode::rel(home, exp(x[0]) == x[1]);
65 }
66 };
67
68 /// %Test for exponent constraint where solution is ensured

Callers

nothing calls this directly

Calls 2

expFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected