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

Method solution

test/int/mm-lin.cpp:105–108  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

evalFunction · 0.70

Tested by

no test coverage detected