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

Method post

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

Post constraint on \a x

Source from the content-addressed store, hash-verified

135 }
136 /// Post constraint on \a x
137 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
138 using namespace Gecode;
139 Gecode::LinIntExpr reg[3] = {
140 channel(home,x[0]),channel(home,x[1]),channel(home,x[2])
141 };
142 rel(home, x[3], IRT_EQ, Gecode::expr(home, eval(lis,reg)));
143 }
144 };
145
146 /// %Test linear expressions over integer and Boolean variables

Callers

nothing calls this directly

Calls 4

evalFunction · 0.70
channelFunction · 0.50
relFunction · 0.50
exprFunction · 0.50

Tested by

no test coverage detected