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

Method status

examples/bin-packing.cpp:273–279  ·  view source on GitHub ↗

Check status of brancher, return true if alternatives left

Source from the content-addressed store, hash-verified

271 }
272 /// Check status of brancher, return true if alternatives left
273 virtual bool status(const Space&) const {
274 for (int i = item; i < bin.size(); i++)
275 if (!bin[i].assigned()) {
276 item = i; return true;
277 }
278 return false;
279 }
280 /// Return choice
281 virtual Gecode::Choice* choice(Space&) {
282 assert(!bin[item].assigned());

Callers 1

solveFunction · 0.45

Calls 2

sizeMethod · 0.45
assignedMethod · 0.45

Tested by

no test coverage detected