I'm trying to add a minimization criterion of accumulated capacity usage throughout time. The capacity usage is modeled using a cumul function, consisting of a summation of pulse() functions, where each scheduled interval would contribute to the used capacity. The max/min-capacity boundaries also vary over time, so i figured i'd model these with cumul functions as well (summation of step() functions on specified times).
I want to incorporate a fraction of a penalty (also varying over time) proportional to the fraction by which the usage exceeds the maximum capacity. My problem is that the evaluation of these cumul functions happens using height_at_start(interval, function) or height_at_end(interval, function) calls, but these min/max-boundaries, or penalty values can effectively change, independent of intervals, as well. I saw in the documentation that there is a function provided called 'get_value()', however, it seems that this is only callable on CpoStepFunctions, where the stepheight cannot be defined by a decision variable. Is there a possibility to evaluate such cumul functions at specific times?
Kind regards, Jasper