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.
quastion about Limiting Domain
-
- Super Administrator
- Posts: 4573
- Joined: Wed Mar 05, 2003 3:10 am
Re: quastion about Limiting Domain
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.
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: quastion about Limiting Domain
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.
There is a SINTEG function that has min/max limits, but I wouldn't recommend using it, because it potentially violates conservation laws.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/