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

Method solution

test/float/arithmetic.cpp:548–550  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

546 : Test("Arithmetic::Min::Bin::XYZ::"+s,3,d,st,CPLT_ASSIGNMENT,false) {}
547 /// %Test whether \a x is solution
548 virtual MaybeType solution(const Assignment& x) const {
549 return eq(min(x[0],x[1]), x[2]);
550 }
551 /// Post constraint on \a x
552 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
553 if (flip())

Callers

nothing calls this directly

Calls 1

minFunction · 0.50

Tested by

no test coverage detected