Restricting output from a stock

Use this forum to post Vensim related questions.
Post Reply
Peter
Junior Member
Posts: 3
Joined: Sat Oct 04, 2003 6:45 pm

Restricting output from a stock

Post by Peter »

I want to implement the behaviour on a flow draining a stock that allows either a standard amount or the amount actually in the preceding stock, whichever is the lower.

This must be a common issue under the generic heading of "Inventory can not go below zero". I'm sure there is a well documented solution I just can't seem to find it.

Regards

Peter

[Edited on 19-2-2004 by Peter]
Owain
Junior Member
Posts: 12
Joined: Thu Feb 19, 2004 4:20 pm

Post by Owain »

Try the following:

actual outflow = min( desired outflow , stock / time step).

It should work, so long as there is just the one outflow from the stock.

Owain
Peter
Junior Member
Posts: 3
Joined: Sat Oct 04, 2003 6:45 pm

Thanks

Post by Peter »

Thanks
Post Reply