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

Method post

test/float/arithmetic.cpp:64–69  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

62 }
63 /// Post constraint on \a x
64 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
65 if (flip())
66 Gecode::mult(home, x[0], x[1], x[2]);
67 else
68 Gecode::rel(home, x[0] * x[1] == x[2]);
69 }
70 };
71
72 /// %Test for multiplication constraint when solution is ensured

Callers

nothing calls this directly

Calls 2

multFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected