Decision Optimization

 View Only

 Need help with cpomodel cumulative functions

brent patchin's profile image
brent patchin posted Thu April 24, 2025 04:24 PM

I am working on a CP model where I have resource capacities by trades over time and I have a cumulative function to pulse down capacities as task interval variables are applied. For example Trade A has 10 resources, Trade B has 5 resources and Trade C has 2 resources. What I am struggling with is coding and applying an additional capacity that can be applied to any trade, above their capacity.

For example I have 3 additional resources, So I could have 12 (from 10) resources for A, 6 (from 5) for B and 2 for C; ... but I cant have 13 for A, 7 for B and 0 for C.

I hope this makes sense. thanks in advance for you help.

Cédric Doens's profile image
Cédric Doens

Hi Brent,
What interface language do you use ? C++, Python, OPL, Java, .Net ?
Could you please post a code sample in order to illustrate your problem and help to contextualize the answer ?