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

Method post

test/int/mm-rel.cpp:101–109  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

99 }
100 /// Post constraint on \a x
101 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
102 using namespace Gecode;
103 int n=x.size() >> 1;
104 BoolVarArgs y(n); BoolVarArgs z(n);
105 for (int i=0; i<n; i++) {
106 y[i]=channel(home,x[i]); z[i]=channel(home,x[n+i]);
107 }
108 lex(home, y, irt, z);
109 }
110 };
111
112 /// Help class to create and register tests

Callers

nothing calls this directly

Calls 3

lexFunction · 0.85
channelFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected