Search found 3811 matches

by tomfid
Sat Jan 06, 2024 5:33 pm
Forum: Vensim
Topic: Vensim not correctly calculating stock from flows
Replies: 4
Views: 8607

Re: Vensim not correctly calculating stock from flows

Right. Personally I find it hard to remember the beginning/ending balance sequencing. It would be nice if we could update the table tool to make it easy to toggle display of stocks as start/end of period, though that might be tricky for some variables using functions like SAMPLE IF TRUE. It would al...
by tomfid
Sat Jan 06, 2024 3:23 pm
Forum: Vensim
Topic: Vensim not correctly calculating stock from flows
Replies: 4
Views: 8607

Re: Vensim not correctly calculating stock from flows

I think that the computation is actually correct. The Euler update in your spreadsheet is: stock(t + dt) = stock(t) + flows This is fine if the TIME STEP (dt) = 1, but in this model it's 0.25. The correct Euler update is: stock(t + dt) = stock(t) + flows*dt In this case, the value 1618 in cell F37 i...
by tomfid
Tue Jan 02, 2024 10:46 pm
Forum: Vensim
Topic: Solving for implicit functions before starting time
Replies: 7
Views: 12421

Re: Solving for implicit functions before starting time

I agree. The drawback of a lookup is that it might not be totally general (i.e. you'd have to recompute the values if some assumption changed). My guess is that the speed penalty for FIND ZERO is small. Unfortunately, you can't wrap FIND ZERO in an INITIAL statement, but you could set the error vect...
by tomfid
Fri Dec 29, 2023 4:02 pm
Forum: Vensim
Topic: Solving for implicit functions before starting time
Replies: 7
Views: 12421

Re: Solving for implicit functions before starting time

Another option would be to put a table of solutions (Moody diagram) into a lookup or fitted function.
by tomfid
Fri Dec 22, 2023 3:14 pm
Forum: Vensim
Topic: Can't view model as sketch
Replies: 12
Views: 13888

Re: Can't view model as sketch

This means there are syntax errors in the equations. Use Check Model <ctl><T> to see the error window.
by tomfid
Fri Dec 22, 2023 3:13 pm
Forum: Vensim
Topic: download stel2ven.zip and/or stel2ven.exe
Replies: 2
Views: 4921

Re: download stel2ven.zip and/or stel2ven.exe

Newer Stella models are in XMILE, which you can import via the File menu.
by tomfid
Fri Dec 22, 2023 3:12 pm
Forum: Vensim
Topic: Erased variables
Replies: 2
Views: 2988

Re: Erased variables

Whether variables remain in the model depends on user choice - when you delete a variable with the delete key, a dialog asks whether to remove them from the model or only the current view. You can find these variables by opening the Control Panel > Variables tab, and selecting the "orphans"...
by tomfid
Sat Dec 16, 2023 10:52 pm
Forum: Ventity
Topic: Very strange behavior when I edit auxiliary names
Replies: 1
Views: 8243

Re: Very strange behavior when I edit auxiliary names

I can replicate this. Ticketed for the devs to take a look.
by tomfid
Sat Dec 16, 2023 10:47 pm
Forum: Ventity
Topic: Ventity download
Replies: 1
Views: 5303

Re: Ventity download

It's working right now. There was an intermittent issue that seems to be resolved with our last web site update. Sorry for the issue.
by tomfid
Fri Dec 15, 2023 4:58 pm
Forum: Vensim
Topic: Sub-Subscripts?
Replies: 3
Views: 3596

Re: Sub-Subscripts?

Notice here that the COUNTRIES range is built up hierarchically by first defining euro and non-euro subranges. That's not necessary however - you can mix & match ranges and elements. City : Boston, Las Vegas, Denver, San Diego, Seattle, New York East Coast : Boston, New York West Coast : San Die...
by tomfid
Tue Dec 12, 2023 2:11 pm
Forum: Vensim
Topic: Level initial series
Replies: 4
Views: 4501

Re: Level initial series

It sounds like you want a population stock that's moving approximately alongside the data from 1995-2023, then reset the population stock to precisely match the data at 2023, then have the population evolve into the future by endogenous forces? If so, there are several ways to do this. The general i...
by tomfid
Tue Dec 12, 2023 2:01 pm
Forum: Vensim
Topic: Percent
Replies: 3
Views: 4292

Re: Percent

If the endpoint is fixed, you can use the approach of creating a variable.

If the endpoint is uncertain, specifically, not known at the start of the run, there isn't really a way to do this, except by postprocessing the output in some other tool (Excel, R, Python ...)
by tomfid
Wed Dec 06, 2023 3:35 pm
Forum: Vensim
Topic: Uniform data
Replies: 2
Views: 4042

Re: Uniform data

You can use these distributions either in equations, or via the sensitivity (Monte Carlo) tool.
by tomfid
Tue Dec 05, 2023 4:36 pm
Forum: Vensim
Topic: older interface PLE 10.1.3
Replies: 2
Views: 3906

Re: older interface PLE 10.1.3

Is there something specific that you need from the older interface?
by tomfid
Tue Dec 05, 2023 2:32 pm
Forum: Vensim
Topic: time schedule
Replies: 4
Views: 4574

Re: time schedule

There isn't a way to link to a spreadsheet in PLE.
by tomfid
Wed Nov 29, 2023 3:34 pm
Forum: Vensim
Topic: Output File
Replies: 6
Views: 5801

Re: Output File

Or perhaps what you're looking for is an export of the dataset to Excel? Use Model>Export Dataset.
by tomfid
Thu Nov 16, 2023 5:13 pm
Forum: Ventity
Topic: Function: choose
Replies: 4
Views: 5469

Re: Function: choose

I think there's an efficiency issue here. Because the 'identify' and 'update' triggers are in the Region entity, they're executing multiple times - i.e. every region is identifying the best region. I can think of a couple alternatives. - Move the trigger to a singleton entity like the Model. Putting...
by tomfid
Wed Nov 15, 2023 7:56 pm
Forum: Vensim
Topic: Lifecycle
Replies: 8
Views: 8084

Re: Lifecycle

1 - the PULSE TRAIN function might work

2 - you can solve this, but it may not be the best choice - https://metasd.com/2017/01/forrester-on ... ous-flows/
by tomfid
Tue Nov 14, 2023 3:27 pm
Forum: Vensim
Topic: Lifecycle
Replies: 8
Views: 8084

Re: Lifecycle

For inspiration, you might look to
C:\Users\Public\Vensim\Models\Sample\EXTRA\COMMOD.MDL
which installs with Vensim.
by tomfid
Tue Nov 14, 2023 3:26 pm
Forum: Vensim
Topic: Lifecycle
Replies: 8
Views: 8084

Re: Lifecycle

I think your first step should be to adopt standard stock-flow notation in your diagram. Currently you have no flows, so your are integrating earlier age categories directly into later age categories, like Bull= INTEG ( -Bull+"Bullock 12-18", 0) Units: number ******************************...
by tomfid
Fri Nov 10, 2023 5:40 pm
Forum: Vensim
Topic: Coustom grafics get lost
Replies: 6
Views: 4285

Re: Coustom grafics get lost

I think this is already ticketed - it's happening in other models as well. I was under the impression that 10.1 fixed it.
by tomfid
Fri Nov 03, 2023 2:10 pm
Forum: Vensim
Topic: Vensim documentation compatible with MS Word
Replies: 5
Views: 5567

Re: Vensim documentation compatible with MS Word

When I use File>Save from the Document tool window, I get the usual Save As dialog with type .txt, prompting me to name the file. The default location is the folder containing the model. Do you get a different behavior? Are you using v10 and the new gui?
by tomfid
Thu Nov 02, 2023 10:57 pm
Forum: Vensim
Topic: Bug: Very precise time settings for model
Replies: 7
Views: 6684

Re: Bug: Very precise time settings for model

I think the task here is actually a little bigger. Since .vdfx went to double precision, there's been a mismatch between the engine/output numerical precision and text precision. For example, you can read in a constant from a .cin file as a float or a double, but a constant in an equation gets trunc...
by tomfid
Thu Nov 02, 2023 6:36 pm
Forum: Vensim
Topic: inserting picture to comment failed due to permissions problem
Replies: 4
Views: 2041

Re: inserting picture to comment failed due to permissions problem

Judging by the paths, this has to be Windows, so the key question is what Vensim version?
by tomfid
Thu Nov 02, 2023 2:49 pm
Forum: Vensim
Topic: Vensim documentation compatible with MS Word
Replies: 5
Views: 5567

Re: Vensim documentation compatible with MS Word

File>Publish is unrelated to the Doc tool. You probably just want to click the Doc tool and save the resulting window.