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

Method post

test/float/trigonometric.cpp:245–250  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

asinFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected