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

Function p_cumulative_opt

gecode/flatzinc/registry.cpp:1321–1330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319 }
1320
1321 void p_cumulative_opt(FlatZincSpace& s, const ConExpr& ce,
1322 AST::Node* ann) {
1323 IntVarArgs start = s.arg2intvarargs(ce[0]);
1324 IntArgs duration = s.arg2intargs(ce[1]);
1325 IntArgs height = s.arg2intargs(ce[2]);
1326 BoolVarArgs opt = s.arg2boolvarargs(ce[3]);
1327 int bound = ce[4]->getInt();
1328 unshare(s,start);
1329 cumulative(s,bound,start,duration,height,opt,s.ann2ipl(ann));
1330 }
1331
1332 void p_cumulatives(FlatZincSpace& s, const ConExpr& ce,
1333 AST::Node* ann) {

Callers

nothing calls this directly

Calls 7

unshareFunction · 0.85
cumulativeFunction · 0.85
arg2intvarargsMethod · 0.80
arg2intargsMethod · 0.80
arg2boolvarargsMethod · 0.80
getIntMethod · 0.80
ann2iplMethod · 0.80

Tested by

no test coverage detected