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

Method solution

test/float/arithmetic.cpp:650–652  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

648 : Test("Arithmetic::Max::Bin::XXY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
649 /// %Test whether \a x is solution
650 virtual MaybeType solution(const Assignment& x) const {
651 return eq(max(x[0],x[0]), x[1]);
652 }
653 /// Post constraint on \a x
654 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
655 Gecode::max(home, x[0], x[0], x[1]);

Callers

nothing calls this directly

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected