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

Method constrain

gecode/minimodel/optimize.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace Gecode {
37
38 void
39 IntMinimizeSpace::constrain(const Space& _best) {
40 const IntMinimizeSpace* best =
41 dynamic_cast<const IntMinimizeSpace*>(&_best);
42 if (best == nullptr)
43 throw DynamicCastFailed("IntMinimizeSpace::constrain");
44 rel(*this, cost(), IRT_LE, best->cost().val());
45 }
46
47
48 void

Callers

nothing calls this directly

Calls 6

relFunction · 0.70
valMethod · 0.45
costMethod · 0.45
sizeMethod · 0.45
maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected