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

Method cost

gecode/int/channel/link-multi.cpp:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 PropCost
97 LinkMulti::cost(const Space&, const ModEventDelta& med) const {
98 if ((status == S_ONE) || (IntView::me(med) == ME_INT_VAL))
99 return PropCost::unary(PropCost::LO);
100 else
101 return PropCost::linear(PropCost::LO, x.size());
102 }
103
104 void
105 LinkMulti::reschedule(Space& home) {

Callers

nothing calls this directly

Calls 3

unaryFunction · 0.85
linearFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected