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

Function cdbf

examples/bin-packing.cpp:383–391  ·  view source on GitHub ↗

Post branching (assumes that \a s is sorted)

Source from the content-addressed store, hash-verified

381
382/// Post branching (assumes that \a s is sorted)
383void cdbf(Home home, const IntVarArgs& l, const IntVarArgs& b,
384 const IntArgs& s) {
385 if (b.size() != s.size())
386 throw Int::ArgumentSizeMismatch("cdbf");
387 ViewArray<Int::IntView> load(home, l);
388 ViewArray<Int::IntView> bin(home, b);
389 IntSharedArray size(s);
390 return CDBF::post(home, load, bin, size);
391}
392
393
394

Callers 1

BinPackingMethod · 0.85

Calls 2

postFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected