I am replicating the sales model from Prof John Morecroft's paper of Ratoinality & structure in behavioral model in business system.
I translate the dynamo into vensim
I am not sure how to set the constant of MIO and MIP (highlight in green) under the the inital value of IMI = MIO * MIP whereas they are already set as Aux with the lookup (highlight in yellow). What values I should use for MIO and MIP as the initial?
Thank you for advice.
Dynamo equations question
Dynamo equations question
- Attachments
-
- ScreenHunter_05 Dec. 28 22.46.jpg (81.91 KiB) Viewed 3096 times
Re: Dynamo equations question
These are lookups. In Vensim, the table name is used like a function, rather than using the TABLE function.
So, first create the TMIO and TMIP lookups, which will look like:
See Chapter 8 of the User Guide https://www.vensim.com/documentation/20540.html and the lookup docs https://www.vensim.com/documentation/lookups.html
There are actually two different syntaxes for a lookup:
LOOKUP NAME([(Xmin, Ymin)-(Xmax, Ymax), ... cription |
The lookup editor normally generates the first one, but for Dynamo, it may be desirable to use the second, because it's closer to what the Dynamo listing contains.
So, for TMIO, you could write
TMIO (.8,.9,1,1.1,1.2,1.3,1.4,1.5, 1,1,1,1,.9,.7,.4,.3)
where the first half of the values are the X axis from the TABLE call (.8, 1.5, .1 are xmin, xmax and interval). The second half are the numbers from TMIO, but delimited with commas rather than slashes.
Finally, make MIO and MIP auxiliaries, like
MIO = TMIO(MOT) ~ dmnl
Hope this helps.
So, first create the TMIO and TMIP lookups, which will look like:
See Chapter 8 of the User Guide https://www.vensim.com/documentation/20540.html and the lookup docs https://www.vensim.com/documentation/lookups.html
There are actually two different syntaxes for a lookup:
LOOKUP NAME([(Xmin, Ymin)-(Xmax, Ymax), ... cription |
The lookup editor normally generates the first one, but for Dynamo, it may be desirable to use the second, because it's closer to what the Dynamo listing contains.
So, for TMIO, you could write
TMIO (.8,.9,1,1.1,1.2,1.3,1.4,1.5, 1,1,1,1,.9,.7,.4,.3)
where the first half of the values are the X axis from the TABLE call (.8, 1.5, .1 are xmin, xmax and interval). The second half are the numbers from TMIO, but delimited with commas rather than slashes.
Finally, make MIO and MIP auxiliaries, like
MIO = TMIO(MOT) ~ dmnl
Hope this helps.
/*
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
*/
Re: Dynamo equations question
Hi Tom
Thanks your gudiance about lookup.
Actually I know how to convert dynamo table functions into vensim lookup
what i do not know is how to formulate the IMI (initial motivation index), the paper said IMI=MIO * MIP, which to me is the constant. but the MIO.K and MIP.K.
For easy understanding how to fix this in the actual model, I posted the model I created and highlighted the IMI in red and see how you may formulate accordance to the paper equation.
Thanks
Thanks your gudiance about lookup.
Actually I know how to convert dynamo table functions into vensim lookup
what i do not know is how to formulate the IMI (initial motivation index), the paper said IMI=MIO * MIP, which to me is the constant. but the MIO.K and MIP.K.
For easy understanding how to fix this in the actual model, I posted the model I created and highlighted the IMI in red and see how you may formulate accordance to the paper equation.
Thanks
- Attachments
-
- Rationality and Structure.mdl
- (7.61 KiB) Downloaded 377 times
Re: Dynamo equations question
Just make IMI an INITIAL.
/*
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
*/
Re: Dynamo equations question
Tom
thanks. I have done it in the model,
realized that linking the aux to set the initial value of stock, that vensim will only capture the initial value of the aux only. ( i tested it myself)
I just share the model to other members for their reference
thanks. I have done it in the model,
realized that linking the aux to set the initial value of stock, that vensim will only capture the initial value of the aux only. ( i tested it myself)
I just share the model to other members for their reference
- Attachments
-
- Rationality and Structure.mdl
- (8.22 KiB) Downloaded 387 times
Re: Dynamo equations question
That's correct - anything in the initial value field of a stock has no effect on the dynamics.
So
y = INITIAL(x)
and
y = INTEG(0,x)
are equivalent.
So
y = INITIAL(x)
and
y = INTEG(0,x)
are equivalent.
/*
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
*/