Search found 16 matches

by sarahboyar@gmail.com
Mon Mar 31, 2025 10:53 am
Forum: Vensim
Topic: subscripted aging chain with 2 stocks
Replies: 1
Views: 445

subscripted aging chain with 2 stocks

Hello, I am trying to find an elegant way to work with an aging chain but spread it over 2 stocks, children and adults. So the stock for children[all but youngest] = +births children population[all but youngest] +children aging[previous cohort] -aging[all but youngest] +aging[previous cohort] -death...
by sarahboyar@gmail.com
Sun Mar 23, 2025 8:12 pm
Forum: Vensim
Topic: identifying contributors to large file size and slow run time
Replies: 16
Views: 7871

Re: identifying contributors to large file size and slow run time

Thank you for all of the responses. I cleared up a lot in my file structure, most of which was housekeeping and consistency, rather than operations to make the model run more efficiently. I did clear all the summing arrays to calculate in separate variables as to your comment above and the notes fro...
by sarahboyar@gmail.com
Mon Mar 10, 2025 3:26 pm
Forum: Vensim
Topic: identifying contributors to large file size and slow run time
Replies: 16
Views: 7871

Re: identifying contributors to large file size and slow run time

And do you know if there's any value in putting an arrayed initial stock value as a .cin instead of data? Again my data is imported from a text file and loaded as a vdf. Maybe I would be better off importing .dat? Does this still need to be loaded as a vdf? I couldn't work out how to do this for som...
by sarahboyar@gmail.com
Mon Mar 10, 2025 3:04 pm
Forum: Vensim
Topic: identifying contributors to large file size and slow run time
Replies: 16
Views: 7871

Re: identifying contributors to large file size and slow run time

Maybe a bottom line question: if I have a model with a lot of summed arrays, in many dimensions 2x106x9x5 etc. would it be better to sum the variables in a separate model file which simulates the sums as outputs? Given that for the most part the sums aren't used as inputs, and VECTOR SELECT doesn't ...
by sarahboyar@gmail.com
Mon Mar 10, 2025 12:16 pm
Forum: Vensim
Topic: identifying contributors to large file size and slow run time
Replies: 16
Views: 7871

Re: identifying contributors to large file size and slow run time

1.1 So, data loaded through data import >> then loaded as data.vdf for a data input type variable is not expensive? ______ 1.2 What if there are multiple data inputs? is it better to have data1.vdf, data2.vdf, ....dataN.vdf imported via a Data Model and run these in a separately in this model design...
by sarahboyar@gmail.com
Mon Mar 03, 2025 11:30 pm
Forum: Vensim
Topic: bmp image file in comments
Replies: 1
Views: 2619

bmp image file in comments

Hello, I remember there is something non-obvious in loading an image.bmp into a model comment, but can't recall specifically what. When I save a file image.bmp, and import from the comment dialogue box, an error that Vensim cannot import the image is returned. Maybe it's a file size issue? Any other...
by sarahboyar@gmail.com
Mon Sep 04, 2023 7:57 am
Forum: Vensim
Topic: data variable loading from year zero
Replies: 1
Views: 736

Re: data variable loading from year zero

I restarted Vensim and it worked fine.
by sarahboyar@gmail.com
Sun Sep 03, 2023 2:33 pm
Forum: Vensim
Topic: data variable loading from year zero
Replies: 1
Views: 736

data variable loading from year zero

Hi,

I have loaded a new data variable into the model and for some reason the charts are starting from year zero instead of 2019 as per the rest of the model. The data is formatted identically in the CSV to the other variables as far as I can tell. Any thoughts?

Thank you,
Sarah
by sarahboyar@gmail.com
Tue Jun 13, 2023 5:40 pm
Forum: Vensim
Topic: summing subscripts
Replies: 4
Views: 2690

Re: summing subscripts

OK, so there are no missing values in the data (only 0's). And I thought that, given it already flows through another equation, that the third variable (total) would be able to take the values from the second variable (flow equation), so as long as the flow equation is working, the data variable is ...
by sarahboyar@gmail.com
Tue Jun 13, 2023 2:36 pm
Forum: Vensim
Topic: summing subscripts
Replies: 4
Views: 2690

summing subscripts

Hi, I have an error in my model when I am trying to SUM a subscripted variable. The attachment model.png shows the relevant part of the model structure. The 'unscheduled procedures' variable in green is a data variable with a value for 2018 and 2022 imported via Model>>Import Dataset and it appears ...
by sarahboyar@gmail.com
Tue May 30, 2023 5:56 pm
Forum: Vensim
Topic: subscripts
Replies: 3
Views: 1602

Re: subscripts

Ok, maybe that's because the LHS is Fruit but we summed everything up.

What about this:

Total Annual Fruit[Fruit] = total annual oranges[oranges] + total annual apples[apples]

If all the elements in Fruit are accounted for in the equation, via the 2 subranges, why does it return an error?
by sarahboyar@gmail.com
Tue May 30, 2023 5:54 pm
Forum: Vensim
Topic: subscripts
Replies: 3
Views: 1602

subscripts

Subscript question: If I have a subscript of Fruit with elements: mandarins, satsumas, easy peelers, granny smith, red delicious, pink lady subrange oranges: mandarins, satsumas, easy peelers subrange apples: granny smith, red delicious, pink lady Why can't I write an equation as follows: Total Annu...
by sarahboyar@gmail.com
Tue May 30, 2023 5:46 pm
Forum: Vensim
Topic: Connecting with data
Replies: 8
Views: 4277

Re: Connecting with data

Thank you for all the advice. The biggest learning was to learn to use data import: Model>Import dataset.... - I note that the subscripts in the variable probably need to be in the same order as the column layout in the csv/excel/whatever. - Once imported, the data still needs to be set as a .vdfx (...
by sarahboyar@gmail.com
Tue May 09, 2023 1:11 pm
Forum: Vensim
Topic: Connecting with data
Replies: 8
Views: 4277

Re: Connecting with data

Is there a sample model in the documentation for this?
by sarahboyar@gmail.com
Tue May 09, 2023 1:05 pm
Forum: Vensim
Topic: Connecting with data
Replies: 8
Views: 4277

Re: Connecting with data

Thanks. So how does the import work? In an equation? Or via the sim control as a data source? In your example, is 'data' the variable name?
by sarahboyar@gmail.com
Tue May 09, 2023 11:54 am
Forum: Vensim
Topic: Connecting with data
Replies: 8
Views: 4277

Connecting with data

Hi there, I'd be grateful for links to past posts or direct advice. 1. I am working in Vensim Pro and have a model with 3 dimensions - Age, Operation, Health Trust. This comes to nearly 7000 specific dimensions in my model. Please don't comment on the appropriateness of these categories, it will eve...