I am using a stochastic element to simulate inflows and i would like to create a vector with monthly totals. I have been successful so far with setting up my integrator element to calculate the correct monthly sum and reset the integrator at the start of the month. However, when i try to populate the vector, the value is not sent correctly.
I am using a discrete change element (populate_vector) using the equation: vector( if(row= Month_Counter, Monthly_Integrator, 0 m3))
Followed by a monthly_sum integrator element with the discrete change set to the above element. When i check this results of this element, the values are not correct.
Does anyone have any suggestions? Thank you
Comments
3 comments