exporting the values of the subscripts

Use this forum to post Vensim related questions.
Post Reply
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

exporting the values of the subscripts

Post by LAUJJL »

Hi

When you export the constants and the lookups of a run to a .cin file, the
values of the subscripts are not exported.
Or one can keep the model the same and decide to run it with different values for the
subscripts, depending for instance on the level of aggregation you work with.
I have looked for a way to export to a file the values of the different subscripts but did not found any. Of course it is always possible to keep the different values in a spreadsheet and to
paste the values directly into the equation editor, but it would be simpler to get the values
directly from a named file.
Thank you in advance for any help.
Regards.
JJ
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

The subscripts are associated with structure, not bevharior, so they sit with the model. If you modify the Document tool to show all variables of type Subscript Range it will put out the list of definitions.

There is also an obscure mechansim to define subscripts via an include file. In the model add the line

#include subscript.txt

where subscript.txt is the name of a file including the subscript definitions (which can't be repeated in the model). This technique works for batch processing, but if you open and save the model the #include line is lost and the files content substituted so it is not of much use for development.

In general if you put all the subscripts in a group called .Subscript you can use View>as Text to modify these as a whole. This is probably the easiest thing to do for development.
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

subscritps

Post by LAUJJL »

Hi Bob

Thank you very much for your prompt reply.
Regards.
JJ
Post Reply