Skip to main content

Adding delays to stock accumulation

Comments

1 comment

  • Martin Lycko

    Hi Victor,

    To achieve this, the most common method is using a delay function on the outflow.

    Assume you have a model containing an inflow, a stock, and an outflow. Give the outflow the equation delay(inflow, delaytime), where inflow is the name of the inflow and delaytime is the number of timesteps you want to delay the inflow by. Numbers will now stay in the stock for the specified delaytime, such as 10 in your example. There are some more details on the delay function in the documentation here.

    I hope this helps,
    Martin

    0

Please sign in to leave a comment.