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

Function linear

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

Source from the content-addressed store, hash-verified

38namespace Gecode {
39
40 void
41 linear(Home home,
42 const FloatVarArgs& x, FloatRelType frt, FloatVal c) {
43 using namespace Float;
44 GECODE_POST;
45 Region re;
46 Linear::Term* t = re.alloc<Linear::Term>(x.size());
47 for (int i = x.size(); i--; ) {
48 t[i].a=1.0; t[i].x=x[i];
49 }
50 Linear::post(home,t,x.size(),frt,c);
51 }
52
53 void
54 linear(Home home,

Callers 15

setupMethod · 0.50
setupMethod · 0.50
postMethod · 0.50
postMethod · 0.50
postMethod · 0.50
postMethod · 0.50
postMethod · 0.50
postMethod · 0.50
QCSPNimFiboMethod · 0.50
QCSPMatrixGameMethod · 0.50
mainFunction · 0.50
SteelMillMethod · 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