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

Method solution

test/float/arithmetic.cpp:615–617  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

613 : Test("Arithmetic::Min::Bin::XXX::"+s,1,d,st,CPLT_ASSIGNMENT,false) {}
614 /// %Test whether \a x is solution
615 virtual MaybeType solution(const Assignment& x) const {
616 return eq(min(x[0],x[0]), x[0]);
617 }
618 /// Post constraint on \a x
619 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
620 Gecode::min(home, x[0], x[0], x[0]);

Callers

nothing calls this directly

Calls 1

minFunction · 0.50

Tested by

no test coverage detected