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

Method post

test/float/arithmetic.cpp:552–557  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

550 }
551 /// Post constraint on \a x
552 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
553 if (flip())
554 Gecode::min(home, x[0], x[1], x[2]);
555 else
556 Gecode::rel(home, min(x[0],x[1]) == x[2]);
557 }
558 };
559
560 /// %Test for binary minimum constraint with shared variables

Callers

nothing calls this directly

Calls 2

minFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected