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

Method post

test/float/channel.cpp:81–86  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

79 }
80 /// Post constraint on \a x
81 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
82 using namespace Gecode;
83 BoolVar bv(home,0,1);
84 channel(home, x[0], bv);
85 channel(home, bv, x[1]);
86 }
87 };
88
89 Gecode::FloatNum step1 = 0.7;

Callers

nothing calls this directly

Calls 1

channelFunction · 0.50

Tested by

no test coverage detected