Hello Everyone,
I am currently seeking some assistance with the use of the tabbed array function in Vensim Pro. I'm trying to build a simple interest rate model to evaluate the impact of varying interest rates on a bank balance. I've been attempting to utilize the array function, as shown in the attached picture, but I've been receiving error messages every time I run the model.
Model info:
I'm unsure about the proper structure of the model or the correct way to implement the array function. Moreover, I'm also wondering how to assign distinct names to different array inputs in the model.
I would truly appreciate any guidance or suggestions on this matter. Your support will greatly aid me in understanding and applying this function more effectively in Vensim Pro.
Thank you very much for your help!
Seeking Guidance on Using Tabbed Array Function in Vensim Pro
Re: Seeking Guidance on Using Tabbed Array Function in Vensim Pro
There's a sample model in the Help system.
https://www.vensim.com/documentation/fn ... array.html
Unless the array is large and needs to be pasted in from a spreadsheet, I find normal punctuation easier. You can define
The order is rows=a, columns=b.
https://www.vensim.com/documentation/fn ... array.html
Unless the array is large and needs to be pasted in from a spreadsheet, I find normal punctuation easier. You can define
Code: Select all
x[a,b]=
1,2,3;
4,5,6;
/*
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: Seeking Guidance on Using Tabbed Array Function in Vensim Pro
I'm writing to express my gratitude for your previous response and to seek further assistance in a matter related to Vensim.tomfid wrote: ↑Sat May 13, 2023 2:04 pm There's a sample model in the Help system.
https://www.vensim.com/documentation/fn ... array.html
Unless the array is large and needs to be pasted in from a spreadsheet, I find normal punctuation easier. You can defineThe order is rows=a, columns=b.Code: Select all
x[a,b]= 1,2,3; 4,5,6;
Despite referring to the Vensim help section and attempting to mirror the array example provided, I am still encountering an error message. The issue may stem from the fact that I have not input data from an Excel sheet - I am unsure of how to do so. Your expertise in this area would be incredibly appreciated. Are there any video demos I could look at?
Additionally, I'm having trouble understanding how to correctly insert normal punctuation in the function window. The instructions provided previously were a bit unclear to me, and I would be grateful for any further guidance you might be able to offer.
Thank you in advance for your time and support.
Re: Seeking Guidance on Using Tabbed Array Function in Vensim Pro
I just noticed that the equation in your screenshots doesn't have any subscripts. That's why it's not working - you're supplying multiple values for a single variable.
Click the "subscripts" button in the equation editor and add some dimensions to the variable.
Click the "subscripts" button in the equation editor and add some dimensions to the variable.
/*
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
*/