Hi,
I want to sum the last 4 hours of a data set and the only solution I encounter was:
eq33(i)… sum_last_4hours(i)=e=(discharge_total(i)+discharge_total(i-1)+discharge_total(i-2)+discharge_total(i-3));
It is important for me to have the sum of the last 4 hours (i) in order to (afterwards) constraint this value.
For sure there is a simple way to do it instead of repeating the i, i-1, i-2, …
Furthermore I would like to put the 4 (hours) as a Scalar
Thanks
Regards