Hi guys,
I'm currently working on a model for small open economy. I couldn't find a way to impose an equality or constraint to the model.
I want desired domestic money holdings and domestic money holdings to be equal. Also, if money holdings > desired money, interest rate will decrease or if money holdings < desired money, interest rate will rise. How I can integrate such things to the model?
I'd be very grateful if you help me.
How to impose a constraint or an equilibrium on Vensim?
Re: How to impose a constraint or an equilibrium on Vensim?
I think the obvious thing to do here would be to make either the interest rate of the stock of domestic money holdings a stock that adjusts in response to pressure.
For example, you might have:
Actual holdings = INTEG( change in holdings, initial holdings )
change in holdings = (Desired holdings - actual holdings)/time to change holdings
You can impose constraints via penalty functions in the optimizer, or via the SIMULTANEOUS and FIND ZERO functions, but we don't generally have constraints in the language. There's a good reason for this, which is that reality doesn't have them either. Where they exist (at least as an equilibrium tendency), it's due to feedback structure that can be specified, as above. They are sometimes an analytic convenience, but frequently people use them to build a wall of constraints to conceal bad model behavior.
For example, you might have:
Actual holdings = INTEG( change in holdings, initial holdings )
change in holdings = (Desired holdings - actual holdings)/time to change holdings
You can impose constraints via penalty functions in the optimizer, or via the SIMULTANEOUS and FIND ZERO functions, but we don't generally have constraints in the language. There's a good reason for this, which is that reality doesn't have them either. Where they exist (at least as an equilibrium tendency), it's due to feedback structure that can be specified, as above. They are sometimes an analytic convenience, but frequently people use them to build a wall of constraints to conceal bad model behavior.
/*
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
*/