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

Method regret_max

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

Source from the content-addressed store, hash-verified

265 }
266 }
267 forceinline unsigned int
268 IntVarImp::regret_max(void) const {
269 if (fst() == nullptr) {
270 return (dom.min() == dom.max()) ? 0U : 1U;
271 } else if (dom.max() == lst()->min()) {
272 return static_cast<unsigned int>(dom.max()-lst()->prev(nullptr)->max());
273 } else {
274 return 1U;
275 }
276 }
277
278
279

Callers

nothing calls this directly

Calls 3

minMethod · 0.45
maxMethod · 0.45
prevMethod · 0.45

Tested by

no test coverage detected