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

Method post

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

Post constraint on \a x

Source from the content-addressed store, hash-verified

108 }
109 /// Post constraint on \a x
110 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
111 using namespace Gecode;
112 Gecode::LinIntExpr reg[3] = {x[0],x[1],x[2]};
113 rel(home, x[3], IRT_EQ, Gecode::expr(home, eval(lis,reg)));
114 }
115 };
116
117 /// %Test linear expressions over Boolean variables

Callers

nothing calls this directly

Calls 3

evalFunction · 0.70
relFunction · 0.50
exprFunction · 0.50

Tested by

no test coverage detected