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

Method post

test/float/arithmetic.cpp:244–249  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

242 }
243 /// Post constraint on \a x
244 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
245 if (flip())
246 Gecode::sqr(home, x[0], x[1]);
247 else
248 Gecode::rel(home, sqr(x[0]) == x[1]);
249 }
250 };
251
252 /// %Test for squaring constraint where solution is ensured

Callers

nothing calls this directly

Calls 2

sqrFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected