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

Method solution

test/float/arithmetic.cpp:666–668  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

664 : Test("Arithmetic::Max::Bin::XYX::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
665 /// %Test whether \a x is solution
666 virtual MaybeType solution(const Assignment& x) const {
667 return eq(max(x[0],x[1]), x[0]);
668 }
669 /// Post constraint on \a x
670 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
671 Gecode::max(home, x[0], x[1], x[0]);

Callers

nothing calls this directly

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected