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

Method post

test/float/trigonometric.cpp:121–126  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

cosFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected