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

Method solution

test/float/arithmetic.cpp:698–700  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

696 : Test("Arithmetic::Max::Bin::XXX::"+s,1,d,st,CPLT_ASSIGNMENT,false) {}
697 /// %Test whether \a x is solution
698 virtual MaybeType solution(const Assignment& x) const {
699 return eq(max(x[0],x[0]), x[0]);
700 }
701 /// Post constraint on \a x
702 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
703 Gecode::max(home, x[0], x[0], x[0]);

Callers

nothing calls this directly

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected