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

Method chb

examples/job-shop.cpp:442–445  ·  view source on GitHub ↗

CHB-based cost

Source from the content-addressed store, hash-verified

440 IntCHB ichb; BoolCHB bchb;
441 /// CHB-based cost
442 double chb(int i) const {
443 return ((bchb[i] + ichb[fst[i]] + ichb[snd[i]]) /
444 (start[fst[i]].size() + start[fst[i]].size()));
445 }
446 /// Trampoline function for CHB-based cost
447 static double chbmerit(const Space& home, BoolVar, int i) {
448 return static_cast<const JobShopSolve&>(home).chb(i);

Callers 1

chbmeritMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected