quastion about Limiting Domain

Use this forum to post Vensim related questions.
Post Reply
sani
Member
Posts: 29
Joined: Tue Mar 27, 2018 4:37 am
Vensim version: PLE

quastion about Limiting Domain

Post by sani »

Hi
In my vensim model, I have a stock variable called service quantity.I want there is a value number between 0 and 1.
I used min function for this purpose but still, the answer is bigger than one.
Use min and max option in variable information window Did not make a difference.
please guide me.
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: quastion about Limiting Domain

Post by Administrator »

This has come up lots of times before
viewtopic.php?f=2&t=6094&p=21522&hilit= ... ock#p21522
search.php?keywords=desired+stock

For example, if the flow into the stock is "flow in", you need to work out what the maximum value this can be is.

max that can flow into stock = current stock - current stock upper limit

flow in = min ( max that can flow into stock / time step, desired flow into the stock)

Hope this helps.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: quastion about Limiting Domain

Post by tomfid »

The min and max setting provides warnings but doesn't change the dynamics.

There is a SINTEG function that has min/max limits, but I wouldn't recommend using it, because it potentially violates conservation laws.
Post Reply