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

Method post

test/int/bin-packing.cpp:235–241  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

233 }
234 /// Post constraint on \a x
235 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
236 using namespace Gecode;
237 IntVarArgs l(d*m);
238 for (int j=m*d; j--; )
239 l[j]=IntVar(home, 0, Gecode::Int::Limits::max);
240 binpacking(home, d, l, x, s, c);
241 }
242 };
243
244 /// Test for testing the max-clique finding for multi bin-packing

Callers

nothing calls this directly

Calls 2

binpackingFunction · 0.85
IntVarClass · 0.70

Tested by

no test coverage detected