Search found 3823 matches

by tomfid
Wed Jul 17, 2024 4:34 pm
Forum: Vensim
Topic: MCMC Sampling and Boundary Penalty
Replies: 8
Views: 493

Re: MCMC Sampling and Boundary Penalty

Misspoke earlier though. For the Beta coefficients, a=b>>1 gives a centered Normalish distribution around 0.5. If you want something flattish, but avoiding extremes, you'd want 1<a=b<2.
by tomfid
Wed Jul 17, 2024 4:07 pm
Forum: Vensim
Topic: MCMC Sampling and Boundary Penalty
Replies: 8
Views: 493

Re: MCMC Sampling and Boundary Penalty

Anyway ... I can replicate this with a simpler example, so no need. Will explore a better boundary reflection approach.
by tomfid
Wed Jul 17, 2024 3:49 pm
Forum: Vensim
Topic: MCMC Sampling and Boundary Penalty
Replies: 8
Views: 493

Re: MCMC Sampling and Boundary Penalty

Oops - missing data.vdfx.
by tomfid
Wed Jul 17, 2024 3:47 pm
Forum: Vensim
Topic: MCMC Sampling and Boundary Penalty
Replies: 8
Views: 493

Re: MCMC Sampling and Boundary Penalty

What param are we looking at in the histogram?
by tomfid
Tue Jul 16, 2024 8:43 pm
Forum: Vensim
Topic: MCMC Sampling and Boundary Penalty
Replies: 8
Views: 493

Re: MCMC Sampling and Boundary Penalty

I guess the likelihood was also uniform over this experiment? Reflecting off the boundaries is tricky in multidimensions, but we could probably improve on this behavior. In the short run I don't have a good solution though. A couple possibilities would be to use the logistic transform on the paramet...
by tomfid
Fri Jul 12, 2024 8:02 pm
Forum: Vensim
Topic: ack of simulation results
Replies: 5
Views: 1009

Re: ack of simulation results

I think what you're seeing is correct.

The stock Cena is constant because the flow Zmiana ceny is 0. That happens because Cena = Cena rynkowa.

I find the table tool most useful for diagnosing problems like this.
by tomfid
Fri Jul 12, 2024 7:58 pm
Forum: Vensim
Topic: CMD script macOS problem
Replies: 15
Views: 1798

Re: CMD script macOS problem

Exclamation point works for comments.
by tomfid
Fri May 17, 2024 4:35 pm
Forum: Vensim
Topic: Adding Comments to Calibration VOC
Replies: 2
Views: 887

Re: Adding Comments to Calibration VOC

I think the rules are much like those for .cin files,
https://www.vensim.com/documentation/ci ... q=Comments

If you look at a .out file (which can be reused as a voc), you'll see comments like:
:COMSYS After 22610 simulations
Just the :C should be sufficient.

Spaces should be OK.
by tomfid
Thu May 09, 2024 7:20 pm
Forum: Vensim
Topic: Automated multiple simulations in PLE+?
Replies: 8
Views: 1399

Re: Automated multiple simulations in PLE+?

A quick way to do this would be to vary the noise seed in Synthesim, changing the run name each time. You can do this one of the following ways: A. Create a variable called NOISE SEED, with value 1 (or any other integer). Set the range to something like 1 ... 1000 and the interval to 1. In your rand...
by tomfid
Thu May 09, 2024 7:16 pm
Forum: Vensim
Topic: Sensitivity2All
Replies: 13
Views: 1487

Re: Sensitivity2All

You should be able to replicate the error manually. Just do a run with the first reported problem, manually changing additional cooling tariff kwh as shown.

When you choose "simulate 1 param +/- 10%" it creates ordinary runs that will appear in the dataset control, on plots, etc.
by tomfid
Thu May 09, 2024 7:12 pm
Forum: Vensim
Topic: Sensitivity2All
Replies: 13
Views: 1487

Re: Sensitivity2All

The thread affinity warnings are benign. It just means the operating system declined to assign requested threads. Presumably this is Windows, where thread management is not as good as Linux. It won't affect results. The crash might be related to the floating point errors in the model. Did you submit...
by tomfid
Wed May 08, 2024 3:12 pm
Forum: Vensim
Topic: Sensitivity2All
Replies: 13
Views: 1487

Re: Sensitivity2All

Surely S2A = Sensitivity2all
by tomfid
Sun Apr 21, 2024 1:22 pm
Forum: Vensim
Topic: Integration techniques: Impacts on Stock behavior
Replies: 5
Views: 1211

Re: Integration techniques: Impacts on Stock behavior

I think Aliakhavan89 is on the right track. However, it's impossible to give a precise answer without more information than the chart provides. What are the TIME STEP and SAVEPER? Presumably 12000 hours from eyeballing the chart? What is the equation for end use efficiency? A step * exponential? Or ...
by tomfid
Sun Apr 21, 2024 1:12 pm
Forum: Vensim
Topic: Death by Subscript
Replies: 6
Views: 1276

Re: Death by Subscript

SUM is definitely the summation operator Sigma. The exclamation point is not useless; it is necessary in cases where you'd like to sum over a subset of the dimensions belonging to the right side. I would write the equation in your image with something like the following: n : n1, n2 s : <something> a...
by tomfid
Sat Apr 20, 2024 11:27 pm
Forum: Vensim
Topic: Death by Subscript
Replies: 6
Views: 1276

Re: Death by Subscript

Looking at the model may not be required, but I'm not sure an answer can be given from the material here. What you're showing seems syntactically valid, so the problem may be somewhere else. What are the definitions of h and pressure number? What is on the left side of the sum expression? Is h the e...
by tomfid
Sun Apr 14, 2024 9:49 pm
Forum: Vensim
Topic: SINTEG with vars
Replies: 4
Views: 981

Re: SINTEG with vars

Probably not, but you could modify your flow equations to do the same thing. We'd have to have a concrete example to comment on.
by tomfid
Mon Apr 01, 2024 2:23 pm
Forum: Vensim
Topic: two imodels with no significant differences behaving differently
Replies: 2
Views: 774

Re: two imodels with no significant differences behaving differently

#2 has the Simulate>Based On setting active, which might change the lookup.
by tomfid
Thu Mar 28, 2024 6:17 pm
Forum: Vensim
Topic: double-click selection
Replies: 5
Views: 3772

Re: double-click selection

Some of this will change with the new equation editor soon.
by tomfid
Thu Mar 28, 2024 6:16 pm
Forum: Vensim
Topic: How to calculate the difference in value for a variable in vensim over time?
Replies: 2
Views: 1966

Re: How to calculate the difference in value for a variable in vensim over time?

You can use DELAY FIXED for this: Previous GDP = DELAY FIXED( Current GDP, one year, Current GDP ) ~ $/year one year == 1 ~ year In continuous time, you can use the SMOOTH function, i.e. Previous GDP = SMOOTH( Current GDP, one year ) ~ $/year You can also use the TREND function to compute a fraction...
by tomfid
Thu Mar 21, 2024 1:11 am
Forum: Vensim
Topic: it is frustrating!
Replies: 25
Views: 6017

Re: it is frustrating!

Is the run "current" the first loaded dataset?
by tomfid
Thu Mar 21, 2024 1:10 am
Forum: Vensim
Topic: Continuos or discrete variables?
Replies: 4
Views: 2988

Re: Continuos or discrete variables?

On the other hand, if you're interested in stochastic extinction of a disease in a small population, integer values may matter.

It's impossible to answer these questions in general; some specifics of the question to be answered must be known.
by tomfid
Thu Mar 21, 2024 1:08 am
Forum: Vensim
Topic: Continuos or discrete variables?
Replies: 4
Views: 2988

Re: Continuos or discrete variables?

Like Forrester, I think that discrete quantities are rarely a good place to start. Things that are theoretically only available in integer quantities either don't matter, or have qualifications. For example, people are certainly available in integer quantities. But what about the work-equivalent of ...
by tomfid
Fri Mar 08, 2024 3:57 pm
Forum: Vensim
Topic: Help with PULSE TRAIN and random variable
Replies: 6
Views: 2794

Re: Help with PULSE TRAIN and random variable

Try this instead ...
PULSE_test 2.mdl
(2.16 KiB) Downloaded 1707 times
You can also use SAMPLE IF TRUE for this (though I think it's not available in all versions).
by tomfid
Tue Mar 05, 2024 2:06 pm
Forum: Vensim
Topic: it is frustrating!
Replies: 25
Views: 6017

Re: it is frustrating!

2024-03-05_07-05-12.png
2024-03-05_07-05-12.png (8.56 KiB) Viewed 4236 times