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

Method post

test/int/arithmetic.cpp:850–856  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

848 }
849 /// Post constraint on \a x
850 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
851 int n=x.size()-1;
852 Gecode::IntVarArgs m(n);
853 for (int i=0; i<n; i++)
854 m[i]=x[i];
855 Gecode::argmin(home, m, offset, x[n], tiebreak);
856 }
857 };
858
859 /// %Test for argument minimum constraint with shared variables

Callers

nothing calls this directly

Calls 2

argminFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected