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

Function linear

gecode/int/linear-int.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 using namespace Int;
39
40 void
41 linear(Home home,
42 const IntVarArgs& x, IntRelType irt, int c,
43 IntPropLevel ipl) {
44 GECODE_POST;
45 Region re;
46 Linear::Term<IntView>* t = re.alloc<Linear::Term<IntView>>(x.size());
47 for (int i=0; i<x.size(); i++) {
48 t[i].a=1; t[i].x=x[i];
49 }
50 Linear::post(home,t,x.size(),irt,c,ipl);
51 }
52
53 void
54 linear(Home home,

Callers 15

circuitFunction · 0.70
pathFunction · 0.70
costMethod · 0.50
costMethod · 0.50
costMethod · 0.50
costMethod · 0.50
costMethod · 0.50
costMethod · 0.50
costMethod · 0.50
costMethod · 0.50
costMethod · 0.50
costMethod · 0.50

Calls 6

postFunction · 0.50
estimateFunction · 0.50
sizeMethod · 0.45
gqMethod · 0.45
lqMethod · 0.45
failedMethod · 0.45

Tested by

no test coverage detected