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

Method post

test/int/linear.cpp:85–90  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

83 }
84 /// Post constraint on \a x
85 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
86 if (one(a))
87 Gecode::linear(home, x, irt, c, ipl);
88 else
89 Gecode::linear(home, a, x, irt, c, ipl);
90 }
91 /// Post reified constraint on \a x for \a r
92 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x,
93 Gecode::Reify r) {

Callers

nothing calls this directly

Calls 2

oneFunction · 0.70
linearFunction · 0.50

Tested by

no test coverage detected