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

Method post

test/float/arithmetic.cpp:635–640  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

633 }
634 /// Post constraint on \a x
635 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
636 if (flip())
637 Gecode::max(home, x[0], x[1], x[2]);
638 else
639 Gecode::rel(home, max(x[0], x[1]) == x[2]);
640 }
641 };
642
643 /// %Test for binary maximum constraint with shared variables

Callers

nothing calls this directly

Calls 2

maxFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected