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

Method solution

test/float/arithmetic.cpp:682–684  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

680 : Test("Arithmetic::Max::Bin::XYY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
681 /// %Test whether \a x is solution
682 virtual MaybeType solution(const Assignment& x) const {
683 return eq(max(x[0],x[1]), x[1]);
684 }
685 /// Post constraint on \a x
686 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
687 Gecode::max(home, x[0], x[1], x[1]);

Callers

nothing calls this directly

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected