Search found 4005 matches

by tomfid
Tue Jan 07, 2025 8:59 pm
Forum: Vensim
Topic: From Windows to Mac
Replies: 3
Views: 4847

Re: From Windows to Mac

Models are fully portable. With an older version like 7.3, you'll probably see some font/format/scale diferences in the diagram, but nothing that can't be adjusted quickly.
by tomfid
Mon Jan 06, 2025 11:45 pm
Forum: Vensim
Topic: Extrapolating on...
Replies: 24
Views: 35198

Re: Extrapolating on...

You can fix that by extracting the inner lookup from the outer sum, as in the attached version.
library_read_extrap.mdl
(6.51 KiB) Downloaded 612 times
by tomfid
Mon Jan 06, 2025 11:30 pm
Forum: Vensim
Topic: Suggestions for Temporal Superposition
Replies: 87
Views: 162811

Re: Suggestions for Temporal Superposition

An FEA would increase the computational time beyond reason. I know, I have run the FEAs individually. The point is that an FEA or this equation is only one small component of a much larger system. I need to keep computational time low and within reason to run sensitivity. I do not see that this is ...
by tomfid
Thu Jan 02, 2025 5:51 pm
Forum: Vensim
Topic: Suggestions for Temporal Superposition
Replies: 87
Views: 162811

Re: Suggestions for Temporal Superposition

If this can be done in Excel, it almost certainly can be done in Vensim arrays, which would be a lot less work than the xfn route.

Is this by any chance heat transfer in a ground loop? Seems like a simple FEA would be a lot easier and more transparent than the "reduced" form above.
by tomfid
Thu Jan 02, 2025 5:37 pm
Forum: Vensim
Topic: Suggestions for Temporal Superposition
Replies: 87
Views: 162811

Re: Suggestions for Temporal Superposition

The function code might be OK, but it needs to be wrapped in the Vensim external function infrastructure (there's an example in the samples directory tree).
by tomfid
Tue Dec 24, 2024 5:32 pm
Forum: Vensim
Topic: Suggestions for Temporal Superposition
Replies: 87
Views: 162811

Re: Suggestions for Temporal Superposition

When I see something like this, I immediately think "hidden states". Unless this is something really pathological, there can't really be 262000 meaningful terms in the expression. Presumably there's some underlying system described by this equation that could be described at a more fundame...
by tomfid
Tue Dec 24, 2024 5:04 pm
Forum: Vensim
Topic: Extrapolating on...
Replies: 24
Views: 35198

Re: Extrapolating on...

This isn't extrapolating because it isn't using LOOKUP EXTRAPOLATE. gfunction lookup from Excel[borehole array size!](time to get) needs to be LOOKUP EXTRAPOLATE( gfunction[size!], time to get )
by tomfid
Tue Dec 24, 2024 4:37 pm
Forum: Vensim
Topic: Vensim-Python Random Number Generator
Replies: 3
Views: 6387

Re: Vensim-Python Random Number Generator

Even if the code were identical, it might be hard to get them to match - they'd have to be using the same Mersenne prime internally, and the number of draws has to be identical (Vensim makes an extra draw during model initialization). Also, Vensim adds an arbitrary integer offset to the seed. A more...
by tomfid
Tue Dec 17, 2024 4:41 pm
Forum: Vensim
Topic: max/min of more than two values
Replies: 9
Views: 8195

Re: max/min of more than two values

v10 is a pretty big upgrade from 7. There will be some interface changes that take getting used to, but it's worth it.
by tomfid
Tue Dec 17, 2024 3:56 pm
Forum: Vensim
Topic: subscripts
Replies: 4
Views: 4515

Re: subscripts

Sometimes it's easier to do this kind of thing in the text editor, because you can search for the offending strings and then manually delete the associated variables or elements.
by tomfid
Tue Dec 17, 2024 12:49 am
Forum: Vensim
Topic: max/min of more than two values
Replies: 9
Views: 8195

Re: max/min of more than two values

What version are you on? Recent 10.x can handle variable arguments.

You can always write MIN(a,MIN(b,c)).
by tomfid
Mon Dec 16, 2024 3:48 pm
Forum: Vensim
Topic: Suggestions for Temporal Superposition
Replies: 87
Views: 162811

Re: Suggestions for Temporal Superposition

I assume we're not talking about superposition in the quantum sense. From one point, it's not clear how the terms evolve. For example, How would this be defined at t = ts? Does addition of terms imply that Tf,5 = Ts + blabla + 1/2piks( ... ) * g( (t5-t0)/ts )? Is it recursive, so Tf,n = Tf,n-1 + one...
by tomfid
Tue Dec 10, 2024 2:58 pm
Forum: Vensim
Topic: Vensim on Linux
Replies: 4
Views: 4718

Re: Vensim on Linux

The API of the multicontext library is basically the same as the regular dll/shared library, so it would probably work. The multicontext library is a separate license though.
by tomfid
Mon Dec 09, 2024 4:12 pm
Forum: Vensim
Topic: Extrapolating on...
Replies: 24
Views: 35198

Re: Extrapolating on...

If so, admin's solution is correct, albeit a little inefficient because it does the lookup on all 5 response columns. There might be a faster way to do that with VECTOR LOOKUP, but I doubt it's worth the complexity. If you want extrapolation from the endpoints, rather than interpolation within the t...
by tomfid
Mon Dec 09, 2024 4:01 pm
Forum: Vensim
Topic: Extrapolating on...
Replies: 24
Views: 35198

Re: Extrapolating on...

The 2D vector lookup definitely has 2 dimensions, but I don't think that's what you want. It sounds like you want to interpolate over time (row) with extrapolation, but not over borehole (column), which is categorical rather than continuous?
by tomfid
Wed Dec 04, 2024 2:36 pm
Forum: Vensim
Topic: Export as SVG: parts not visible in result
Replies: 5
Views: 9020

Re: Export as SVG: parts not visible in result

This is ticketed for improvement.

If you open the svg in an editor like Inkscape and ungroup the drawing, the cropped elements are revealed (at least in some cases I've encountered).
by tomfid
Mon Dec 02, 2024 9:45 pm
Forum: Vensim
Topic: Extrapolating on...
Replies: 24
Views: 35198

Re: Extrapolating on...

Ah yes ... turns out there is one, the VECTOR LOOKUP.mdl in the examples that install with Vensim (look in users/public/vensim/models). https://vensim.com/documentation/fn_vector_lookup.html?q=vector+lookup The example uses mode 0 (regular lookup, no extrapolation) but if you change the mode switch ...
by tomfid
Mon Dec 02, 2024 5:13 pm
Forum: Vensim
Topic: units for %
Replies: 15
Views: 17759

Re: units for %

Good catch BTW. I've copied to my blog (with credit): https://metasd.com/2024/12/case-strict-unit-testing/
by tomfid
Mon Dec 02, 2024 4:47 pm
Forum: Vensim
Topic: units for %
Replies: 15
Views: 17759

Re: units for %

This is a very interesting discovery. The equations in question are: maturation 14 to 15 = ( ( Population 0 To 14 ) ) * ( 1 - mortality 0 to 14 ) / 15 Units: Person/year The fractional rate at which people aged 0-14 mature into the next age cohort (MAT1#5). ******************************************...
by tomfid
Mon Dec 02, 2024 3:57 pm
Forum: Vensim
Topic: units for %
Replies: 15
Views: 17759

Re: units for %

Also it was Thanksgiving holiday in the US.
by tomfid
Mon Nov 25, 2024 4:30 pm
Forum: Vensim
Topic: Extrapolating on...
Replies: 24
Views: 35198

Re: Extrapolating on...

If I understand, you want a 2D lookup table, with extrapolation at the edges?

I think you'd have to do it with VECTOR LOOKUP in two steps. I'll check whether I have an example.
by tomfid
Wed Nov 20, 2024 3:57 pm
Forum: Vensim
Topic: transport network
Replies: 10
Views: 10702

Re: transport network

Do the shipment paths include movement within ABC, XYZ, or do they pass through a distinct set of cities unrelated to the endpoints (StLouis, Denver, Omaha)?

(I'm just looking for a special case here.)
by tomfid
Wed Nov 20, 2024 3:37 pm
Forum: Vensim
Topic: transport network
Replies: 10
Views: 10702

Re: transport network

This is definitely an LP-type problem. I'm not sure the LPSOLVE integration is complete enough to handle this "off the shelf" but it's certainly a possibility.
by tomfid
Mon Nov 18, 2024 7:00 pm
Forum: Ventity
Topic: ABM in Ventity
Replies: 7
Views: 63924

Re: ABM in Ventity

Apologies for the broken link - now fixed. The infection series also installs with Ventity in the samples folder, so you probably already have a copy.
by tomfid
Mon Nov 18, 2024 6:24 pm
Forum: Vensim
Topic: transport network
Replies: 10
Views: 10702

Re: transport network

This is a nontrivial problem. For the commodity case, like electricity where you don't care which electron ends up where, it can be solved with FIND ZERO. However, I'm not sure that's true here.

Are ABC and XYZ the same set of cities, or do the paths include additional nodes?