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

Method solution

test/set/int.cpp:119–122  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

117 : SetTest(t,1,ds_33,false,1) {}
118 /// %Test whether \a x is solution
119 virtual bool solution(const SetAssignment& x) const {
120 CountableSetRanges xr0(x.lub, x[0]);
121 return !(xr0() && xr0.min()==x.intval());
122 }
123 /// Post constraint on \a x
124 virtual void post(Space& home, SetVarArray& x, IntVarArray& y) {
125 Gecode::notMin(home, x[0], y[0]);

Callers

nothing calls this directly

Calls 2

intvalMethod · 0.80
minMethod · 0.45

Tested by

no test coverage detected