Search found 4019 matches
- Thu Jan 16, 2025 6:00 pm
- Forum: Vensim
- Topic: Export as SVG: parts not visible in result
- Replies: 5
- Views: 9307
Re: Export as SVG: parts not visible in result
Whole model outside the crop is a weird behavior I haven't seen. If you have a simple example ...
- Mon Jan 13, 2025 11:46 pm
- Forum: Vensim
- Topic: Eliminating Subscript Dependency in Subsequent Equations
- Replies: 6
- Views: 11558
Re: Eliminating Subscript Dependency in Subsequent Equations
k : k1-k10
y[k] = x[k]
y active[k] = IF THEN ELSE( k=3, 1, 0)
y out = SUM( y[k!]*y active[k!] )
Another option for picking a single value would be,
y out = VECTOR ELM MAP( y[k1], offset )
where offset is the index of the value you want as a 0-based offset from k1.
y[k] = x[k]
y active[k] = IF THEN ELSE( k=3, 1, 0)
y out = SUM( y[k!]*y active[k!] )
Another option for picking a single value would be,
y out = VECTOR ELM MAP( y[k1], offset )
where offset is the index of the value you want as a 0-based offset from k1.
- Mon Jan 13, 2025 11:42 pm
- Forum: Vensim
- Topic: Eliminating Subscript Dependency in Subsequent Equations
- Replies: 6
- Views: 11558
Re: Eliminating Subscript Dependency in Subsequent Equations
You can use VECTOR SELECT or SUM for this, combined with an indicator variable that shows which of the RHS elements to select.
- Mon Jan 13, 2025 11:39 pm
- Forum: Vensim
- Topic: Suggestions for Temporal Superposition
- Replies: 87
- Views: 164945
Re: Suggestions for Temporal Superposition
This turned out to be some pretty tricky subscripting, but I haven't thought of a nicer way to do it.
- Mon Jan 13, 2025 11:39 pm
- Forum: Vensim
- Topic: Suggestions for Temporal Superposition
- Replies: 87
- Views: 164945
Re: Suggestions for Temporal Superposition
This submodel may do what is required. There are two arbitrary input vectors that are sampled at at 10hr intervals, starting at time 10. The expected product[hN] is therefore approximately N plus some small random noise. There are a couple unit errors in the inputs from my abuse of the PINK NOISE fu...
- Mon Jan 13, 2025 11:02 pm
- Forum: Vensim
- Topic: Suggestions for Temporal Superposition
- Replies: 87
- Views: 164945
Re: Suggestions for Temporal Superposition
I think it's possible to attach the debugger to the xfn dll when the model runs, but I don't remember the details. Then you could peek inside to observe execution.
- Sun Jan 12, 2025 10:42 pm
- Forum: Vensim
- Topic: Suggestions for Temporal Superposition
- Replies: 87
- Views: 164945
Re: Suggestions for Temporal Superposition
A variant on representing the vector as a stock is using SAMPLE IF TRUE.
- Sat Jan 11, 2025 1:28 am
- Forum: Vensim
- Topic: Graphics in models and model size
- Replies: 2
- Views: 6242
Re: Graphics in models and model size
Model>Settings>Information will give you the equation count, which is the best indication of effective size.
- Sat Jan 11, 2025 1:26 am
- Forum: Vensim
- Topic: model size and data
- Replies: 3
- Views: 6244
Re: model size and data
Re 4: there are some new I/O controls for subscript selection on screen, or people can use the Subscript Control. However, there isn't a way to do aggregation (SUM etc.) on the fly - you have to create the variables in advance.
- Sat Jan 11, 2025 1:17 am
- Forum: Vensim
- Topic: model size and data
- Replies: 3
- Views: 6244
Re: model size and data
It's more parsimonious to load different data files at runtime, but you can also do something like the following:
scenario : low, mid, hi
data pop[scenario]
data pop selected = IF THEN ELSE(active scenario = low, data pop[low] ... etc.
Whether parsimonious matters is just a function of runtime.
scenario : low, mid, hi
data pop[scenario]
data pop selected = IF THEN ELSE(active scenario = low, data pop[low] ... etc.
Whether parsimonious matters is just a function of runtime.
- Sat Jan 11, 2025 12:37 am
- Forum: Vensim
- Topic: Vensim PLE Windows 10 Crash
- Replies: 8
- Views: 10709
Re: Vensim PLE Windows 10 Crash
There shouldn't really be any prereqs for PLE (other than fairly minimal machine and OS requirements). Do you get the option to submit a crash report when it crashes? Are you using the latest version 10.x?
- Thu Jan 09, 2025 6:09 pm
- Forum: Vensim
- Topic: change colors of graphs to respect color vision deficiency
- Replies: 3
- Views: 6498
Re: change colors of graphs to respect color vision deficiency
In development:
- Thu Jan 09, 2025 6:05 pm
- Forum: Vensim
- Topic: change colors of graphs to respect color vision deficiency
- Replies: 3
- Views: 6498
Re: change colors of graphs to respect color vision deficiency
I've ticketed this for improvement.
- Wed Jan 08, 2025 4:30 pm
- Forum: Vensim
- Topic: Suggestions for Temporal Superposition
- Replies: 87
- Views: 164945
Re: Suggestions for Temporal Superposition
I may be dense, but I'm still not getting it. If you can pass two vectors into a function to muliply x[k]*z[k inverted] you can do the same with VECTOR ELM MAP. I can create an example if helpful.
- Tue Jan 07, 2025 8:59 pm
- Forum: Vensim
- Topic: From Windows to Mac
- Replies: 3
- Views: 4881
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.
- Mon Jan 06, 2025 11:45 pm
- Forum: Vensim
- Topic: Extrapolating on...
- Replies: 24
- Views: 35938
Re: Extrapolating on...
You can fix that by extracting the inner lookup from the outer sum, as in the attached version.
- Mon Jan 06, 2025 11:30 pm
- Forum: Vensim
- Topic: Suggestions for Temporal Superposition
- Replies: 87
- Views: 164945
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 ...
- Thu Jan 02, 2025 5:51 pm
- Forum: Vensim
- Topic: Suggestions for Temporal Superposition
- Replies: 87
- Views: 164945
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.
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.
- Thu Jan 02, 2025 5:37 pm
- Forum: Vensim
- Topic: Suggestions for Temporal Superposition
- Replies: 87
- Views: 164945
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).
- Tue Dec 24, 2024 5:32 pm
- Forum: Vensim
- Topic: Suggestions for Temporal Superposition
- Replies: 87
- Views: 164945
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...
- Tue Dec 24, 2024 5:04 pm
- Forum: Vensim
- Topic: Extrapolating on...
- Replies: 24
- Views: 35938
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 )
- Tue Dec 24, 2024 4:37 pm
- Forum: Vensim
- Topic: Vensim-Python Random Number Generator
- Replies: 3
- Views: 6542
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...
- Tue Dec 17, 2024 4:41 pm
- Forum: Vensim
- Topic: max/min of more than two values
- Replies: 9
- Views: 8398
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.
- Tue Dec 17, 2024 3:56 pm
- Forum: Vensim
- Topic: subscripts
- Replies: 4
- Views: 4612
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.
- Tue Dec 17, 2024 12:49 am
- Forum: Vensim
- Topic: max/min of more than two values
- Replies: 9
- Views: 8398
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)).
You can always write MIN(a,MIN(b,c)).