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

Method post

test/float/arithmetic.cpp:310–315  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

308 }
309 /// Post constraint on \a x
310 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
311 if (flip())
312 Gecode::sqrt(home, x[0], x[1]);
313 else
314 Gecode::rel(home, sqrt(x[0]) == x[1]);
315 }
316 };
317
318 /// %Test for square root constraint where solution is ensured

Callers

nothing calls this directly

Calls 2

sqrtFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected