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

Method post

test/float/trigonometric.cpp:314–319  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

312 }
313 /// Post constraint on \a x
314 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
315 if (flip())
316 Gecode::acos(home, x[0], x[1]);
317 else
318 Gecode::rel(home, acos(x[0]) == x[1]);
319 }
320 };
321
322 /// %Test for acosinus constraint where solution is ensured

Callers

nothing calls this directly

Calls 2

acosFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected