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

Method post

test/float/transcendental.cpp:123–128  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

121 }
122 /// Post constraint on \a x
123 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
124 if (flip())
125 Gecode::log(home, x[0], x[1]);
126 else
127 Gecode::rel(home, log(x[0]) == x[1]);
128 }
129 };
130
131 /// %Test for logarithm constraint where solution is ensured

Callers

nothing calls this directly

Calls 2

logFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected