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

Method regret_min

gecode/int/var-imp/int.hpp:257–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 }
256
257 forceinline unsigned int
258 IntVarImp::regret_min(void) const {
259 if (fst() == nullptr) {
260 return (dom.min() == dom.max()) ? 0U : 1U;
261 } else if (dom.min() == fst()->max()) {
262 return static_cast<unsigned int>(fst()->next(nullptr)->min()-dom.min());
263 } else {
264 return 1U;
265 }
266 }
267 forceinline unsigned int
268 IntVarImp::regret_max(void) const {
269 if (fst() == nullptr) {

Callers

nothing calls this directly

Calls 3

minMethod · 0.45
maxMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected