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

Method solution

test/float/arithmetic.cpp:567–569  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

565 : Test("Arithmetic::Min::Bin::XXY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
566 /// %Test whether \a x is solution
567 virtual MaybeType solution(const Assignment& x) const {
568 return eq(min(x[0],x[0]), x[1]);
569 }
570 /// Post constraint on \a x
571 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
572 Gecode::min(home, x[0], x[0], x[1]);

Callers

nothing calls this directly

Calls 1

minFunction · 0.50

Tested by

no test coverage detected