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

Method post

test/float/arithmetic.cpp:517–522  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

515 }
516 /// Post constraint on \a x
517 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
518 if (flip())
519 Gecode::abs(home, x[0], x[1]);
520 else
521 Gecode::rel(home, abs(x[0]) == x[1]);
522 }
523 };
524
525 /// %Test for absolute value constraint with shared variables

Callers

nothing calls this directly

Calls 2

absFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected