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

Method post

test/float/linear.cpp:106–111  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

104 }
105 /// Post constraint on \a x
106 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
107 if (one(a))
108 Gecode::linear(home, x, frt, c);
109 else
110 Gecode::linear(home, a, x, frt, c);
111 }
112 /// Post reified constraint on \a x for \a r
113 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x,
114 Gecode::Reify r) {

Callers

nothing calls this directly

Calls 2

oneFunction · 0.70
linearFunction · 0.50

Tested by

no test coverage detected