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

Method cost

gecode/int/gcc/bnd.hpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79 template<class Card>
80 PropCost
81 Bnd<Card>::cost(const Space&,
82 const ModEventDelta& med) const {
83 int n_k = Card::propagate ? k.size() : 0;
84 if (IntView::me(med) == ME_INT_VAL)
85 return PropCost::linear(PropCost::LO, y.size() + n_k);
86 else
87 return PropCost::quadratic(PropCost::LO, x.size() + n_k);
88 }
89
90
91 template<class Card>

Callers

nothing calls this directly

Calls 2

linearFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected