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

Method decay

gecode/kernel/branch/action.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 Action::~Action(void) {}
56
57 void
58 Action::decay(Space&, double d) {
59 if ((d < 0.0) || (d > 1.0))
60 throw IllegalDecay("Action");
61 acquire();
62 object().invd = 1.0 / d;
63 release();
64 }
65
66 double
67 Action::decay(const Space&) const {

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected