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

Method solution

test/float/arithmetic.cpp:583–585  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

581 : Test("Arithmetic::Min::Bin::XYX::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
582 /// %Test whether \a x is solution
583 virtual MaybeType solution(const Assignment& x) const {
584 return eq(min(x[0],x[1]), x[0]);
585 }
586 /// Post constraint on \a x
587 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
588 Gecode::min(home, x[0], x[1], x[0]);

Callers

nothing calls this directly

Calls 1

minFunction · 0.50

Tested by

no test coverage detected