Search found 3986 matches

by tomfid
Thu May 08, 2025 8:17 pm
Forum: Vensim
Topic: Tracking stock attributes
Replies: 3
Views: 244

Re: Tracking stock attributes

Great. Another place this comes up a lot is in tracking bonds and mortgages. There's usually a mix of terms, which makes the simpler first-order version attractive for strategic models, as in your case.
by tomfid
Wed May 07, 2025 4:09 pm
Forum: Vensim
Topic: How to model delayed flows due to unmet demand
Replies: 2
Views: 176

Re: How to model delayed flows due to unmet demand

Something like this:
queue.png
queue.png (53.36 KiB) Viewed 146 times
In queuing theory there's also the concept of "balking" where arrivals decline to joint the queue, because they immediately perceive that the line is too long.
by tomfid
Tue May 06, 2025 3:47 pm
Forum: Vensim
Topic: Tracking stock attributes
Replies: 3
Views: 244

Re: Tracking stock attributes

I think the best option is to disaggregate the capacity stock into incentivized and older components. For example: capacity credit stock disagg.png There are two versions here. The top copy uses a standard first-order outflow on the stock of new incentive-eligible capacity. That may be appropriate f...
by tomfid
Tue May 06, 2025 3:22 pm
Forum: Vensim
Topic: Tracking stock attributes
Replies: 3
Views: 244

Tracking stock attributes

Reposting a question from metasd.com: How do I add a variable that tracks the “age of a stock”? I am looking at an energy system dynamics model where tax incentives are offered for the first 10 years of an installed capacity operation. I have stock representing the installed capacity but need to set...
by tomfid
Mon May 05, 2025 3:43 pm
Forum: Vensim
Topic: "Sensitivity2All" for selected constants only
Replies: 3
Views: 133

Re: "Sensitivity2All" for selected constants only

On the Advanced tab of the sens2all setup dialog, you can specify a savelist that excludes nuisance parameters:
sens2all exclude.png
sens2all exclude.png (120.18 KiB) Viewed 121 times
by tomfid
Mon May 05, 2025 3:39 pm
Forum: Vensim
Topic: Lookups in new equation editor
Replies: 5
Views: 332

Re: Lookups in new equation editor

Note that the [+] button becomes visible after you make the initial family selection:
sub plus.png
sub plus.png (22.45 KiB) Viewed 152 times
by tomfid
Mon May 05, 2025 3:35 pm
Forum: Vensim
Topic: Lookups in new equation editor
Replies: 5
Views: 332

Re: Lookups in new equation editor

It's a two-tier process. First (and only once), set the family associated with the equation: sub families.png Then, if you need distinct equations for subranges or specific elements, right-click the tab or use the dropdown on the Subscripts button to set those: sub elements.png sub element 2.png
by tomfid
Sat May 03, 2025 1:44 pm
Forum: Vensim
Topic: Lookups in new equation editor
Replies: 5
Views: 332

Re: Lookups in new equation editor

It works - example: subscript 2025-05-03_07-37-19.png Procedure: Click the Subscripts button the first time you add ranges to set the relevant families Use the [+] button to add a tab if you need an additional element Right-click the new tab to set Subranges and Elements (and Exceptions if any) ... ...
by tomfid
Mon Apr 28, 2025 1:05 pm
Forum: Vensim
Topic: Vensim: How to I add value annually
Replies: 4
Views: 450

Re: Vensim: How to I add value annually

Putting PULSE TRAIN in the Initial Value field, as in your second example, won't work because the initial value doesn't change - it just initializes the stock. In your first example, if "Input" is constant at 1.1M and "Recycled Plastic & Monomer Feedstock" is constant, that m...
by tomfid
Wed Apr 02, 2025 6:21 pm
Forum: Vensim
Topic: insert picture into Aux / Stock variable?
Replies: 8
Views: 5598

Re: insert picture into Aux / Stock variable?

Funny. I think there's probably a font that would make those unicode chars cross-platform, but it wasn't obvious which one. The model runs though.
by tomfid
Wed Apr 02, 2025 3:55 pm
Forum: Vensim
Topic: Watermark model output?
Replies: 3
Views: 686

Re: Watermark model output?

I think you can specify page header/footer info if you print to PDF?
by tomfid
Wed Apr 02, 2025 2:55 pm
Forum: Vensim
Topic: identifying contributors to large file size and slow run time
Replies: 16
Views: 7862

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

For file size, the most likely candidate is heavily-subscripted variables. We don't have a way to identify these built in, but here's a trick: - export a run to a tab or csv file, with subscripts in their own columns - to minimize the file size, you can set the time range to capture just the first 2...
by tomfid
Tue Apr 01, 2025 2:19 pm
Forum: Vensim
Topic: identifying contributors to large file size and slow run time
Replies: 16
Views: 7862

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

Right - the key (in the screenshot above) is that the Equation type is set to Initial, which which really just wraps the right side of the equation in INITIAL, i.e. var = INITIAL( GET DATA MIN( blabla ) ) INITIAL is restricted, such that it has to be the first thing on the right side of the equation...
by tomfid
Mon Mar 31, 2025 4:04 pm
Forum: Vensim
Topic: identifying contributors to large file size and slow run time
Replies: 16
Views: 7862

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

Ultimately, the model was still very slow. And I worked out why, and I had this same problem about 10 years ago. It's not obvious, so I'll post: I had a stock with a large number elements in several subscript variables, e.g. 106 age elements, 3800 geographies, gender, etc. As I was building the mod...
by tomfid
Mon Mar 31, 2025 4:00 pm
Forum: Vensim
Topic: identifying contributors to large file size and slow run time
Replies: 16
Views: 7862

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

Administrator wrote: Mon Mar 10, 2025 3:52 pm No benefit in using a CIN rather than data. Do whatever is easiest.
I'm not convinced that's true. A data equation has a little overhead at every time step. A constant does not. I only use data for things that actually have time variation.
by tomfid
Mon Mar 31, 2025 3:57 pm
Forum: Vensim
Topic: subscripted aging chain with 2 stocks
Replies: 1
Views: 443

Re: subscripted aging chain with 2 stocks

I assume the outflow is just aging[age18] ? I think we need more of the equations, or preferably a small model example.

Is the TIME STEP essentially discrete (i.e. same as the age increment in the subscript)?
by tomfid
Sun Mar 30, 2025 2:30 pm
Forum: Vensim
Topic: How to generate the cumulative variable from existing variable in vensim?
Replies: 1
Views: 481

Re: How to generate the cumulative variable from existing variable in vensim?

Accumulation implies a stock, so you could create a stock of Cumulative GDP with an inflow of Current GDP. Note that this implies a change of units (if the flow is $/year, and the stock is $ for example).
by tomfid
Sun Mar 23, 2025 7:27 pm
Forum: Vensim
Topic: Vensim Version 10.3.1 Toolbar and Menu Issue
Replies: 6
Views: 1542

Re: Vensim Version 10.3.1 Toolbar and Menu Issue

Re #2, when you say "predefined equation", are you referring to the function list? We removed that in favor of predictive typing.
function list.png
function list.png (35.81 KiB) Viewed 1307 times
However, the list is still there:
predictive.png
predictive.png (4.32 KiB) Viewed 1307 times
by tomfid
Sun Mar 23, 2025 7:24 pm
Forum: Vensim
Topic: Vensim Version 10.3.1 Toolbar and Menu Issue
Replies: 6
Views: 1542

Re: Vensim Version 10.3.1 Toolbar and Menu Issue

If the graphical lookup editor is missing, use the "switch" button:
lookup table.png
lookup table.png (25.13 KiB) Viewed 1307 times
You can delete on the graph with the red - button:
lookup delete.png
lookup delete.png (32.1 KiB) Viewed 1307 times
You can show/hide the table of values:
lookup switch.png
lookup switch.png (19.48 KiB) Viewed 1307 times
by tomfid
Sun Mar 23, 2025 7:15 pm
Forum: Vensim
Topic: transport network
Replies: 10
Views: 6363

Re: transport network

Nice!
by tomfid
Wed Mar 19, 2025 2:48 pm
Forum: Vensim
Topic: Vensim models in Jupyter notebook
Replies: 1
Views: 1872

Re: Vensim models in Jupyter notebook

You could potentially link it in via VenPy, though that wouldn't be totally standalone. https://github.com/VensimSoftware/venpy

Another option would be to translate models to PySD. https://github.com/SDXorg/pysd
by tomfid
Tue Mar 18, 2025 4:11 pm
Forum: Vensim
Topic: I've had 8 freezes in less than two hours of using Vensim 10.2.2
Replies: 16
Views: 10724

Re: I've had 8 freezes in less than two hours of using Vensim 10.2.2

Another good test would be to switch to new 10.3. When you install, you could try checking the boxes to reset settings to default.
by tomfid
Fri Mar 14, 2025 2:55 pm
Forum: Vensim
Topic: Venapp - simulation model interface
Replies: 3
Views: 3384

Re: Venapp - simulation model interface

You can also build a simple interface on the diagram, without any additional tools.
by tomfid
Wed Mar 12, 2025 5:57 pm
Forum: Vensim
Topic: Help with SVG Export
Replies: 4
Views: 3277

Re: Help with SVG Export

You might try opening them in Inkscape (open source SVG-based vector image editor) to see if there's a clipping rectangle or something that is interfering.
by tomfid
Sat Mar 08, 2025 4:11 am
Forum: Vensim
Topic: Control/Command Click inside Equation Editor
Replies: 1
Views: 2238

Re: Control/Command Click inside Equation Editor

This is already possible in the legacy equation editor - use the Jump to Hilite button.

In the new editor, it's a right-click->edit equation.