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

Method afc

examples/job-shop.cpp:420–423  ·  view source on GitHub ↗

AFC-based cost

Source from the content-addressed store, hash-verified

418 IntAFC iafc;
419 /// AFC-based cost
420 double afc(BoolVar x, int i) const {
421 return ((x.afc() + start[fst[i]].afc() + start[snd[i]].afc()) /
422 (start[fst[i]].size() + start[fst[i]].size()));
423 }
424 /// Trampoline function for AFC-based cost
425 static double afcmerit(const Space& home, BoolVar x, int i) {
426 return static_cast<const JobShopSolve&>(home).afc(x,i);

Callers 1

afcmeritMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected