GET DIRECT SUBSCRIPT Problem (split/moved from other thread)

Use this forum to post Vensim related questions.
Post Reply
akivoigt
Junior Member
Posts: 2
Joined: Thu Sep 27, 2012 3:50 pm
Vensim version: DSS

GET DIRECT SUBSCRIPT Problem (split/moved from other thread)

Post by akivoigt »

Yes, I tried GET DIRECT SUBSCRIPT - but the problem is that it does not seem to work when you want to increase or reduce the number of elements in the array/family.

For example, I had a family with three elements and wanted to add a fourth - I was able to add the fourth subscript with GET..., but then Vensim complained that the model parameters using this family only had 3 values and that now 4 were needed.

Am I forgetting something, can this be resolved?

Thanks!

Alex
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: GET DIRECT SUBSCRIPT Problem

Post by Administrator »

The only thing you can do here is move the constant values into a CIN file (which is good practice anyway) and then just add the new constant values.
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: 3811
Joined: Wed May 24, 2006 4:54 am

Re: GET DIRECT SUBSCRIPT Problem (split/moved from other thr

Post by tomfid »

Or put the constants in the same spreadsheet/tab file that you're using for the subscripts, and use the GET DIRECT or GET XLS function to retrieve them. For example, you might have

City|Boston|Cairo|Denver
PriceOfCheese|1|2|3.5
FractionWhoJog|.5|.7|.2

Then read the subscript elements from the first line and the matching constant vectors from the 2nd & 3rd.
Post Reply