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

Method solution

test/float/mm-lin.cpp:107–110  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

105 }
106 /// %Test whether \a x is solution
107 virtual bool solution(const Int::Assignment& x) const {
108 int reg[3] = {x[0],x[1],x[2]};
109 return eval(lis, reg) == x[3];
110 }
111 /// Post constraint on \a x
112 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
113 using namespace Gecode;

Callers

nothing calls this directly

Calls 1

evalFunction · 0.70

Tested by

no test coverage detected