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

Method solution

test/float/arithmetic.cpp:631–633  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

629 : Test("Arithmetic::Max::Bin::XYZ::"+s,3,d,st,CPLT_ASSIGNMENT,false) {}
630 /// %Test whether \a x is solution
631 virtual MaybeType solution(const Assignment& x) const {
632 return eq(max(x[0],x[1]), x[2]);
633 }
634 /// Post constraint on \a x
635 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
636 if (flip())

Callers

nothing calls this directly

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected