Search found 4027 matches

by tomfid
Tue Aug 26, 2025 12:29 am
Forum: Vensim
Topic: Vensim error: unable to read commands from .cmd
Replies: 3
Views: 257

Re: Vensim error: unable to read commands from .cmd

Can you upload your test case?
by tomfid
Sat Aug 23, 2025 4:00 pm
Forum: Vensim
Topic: Difficulty running sensitivity analysis with GET DIRECT CONSTANTS() and MCMC samples
Replies: 1
Views: 104

Re: Difficulty running sensitivity analysis with GET DIRECT CONSTANTS() and MCMC samples

Maybe this setting is what you need?
overwriteConst.png
overwriteConst.png (105.78 KiB) Viewed 52 times
by tomfid
Fri Aug 22, 2025 3:00 pm
Forum: Vensim
Topic: Payoff values in MCMC with Stochastic option
Replies: 1
Views: 113

Re: Payoff values in MCMC with Stochastic option

It should be summed - I think SO was created with the mindset of policy optimization rather than calibration. A possible response would be to inflate the floor temperature in the MCMC settings to = the number of runs in the ensemble. I'll take a look at the code.
by tomfid
Sat Aug 16, 2025 7:42 pm
Forum: Vensim
Topic: Exporting graphics
Replies: 1
Views: 230

Re: Exporting graphics

Try View>Export as svg - that will give you a vector image in .svg format.
by tomfid
Thu Aug 07, 2025 1:49 pm
Forum: Vensim
Topic: Bulk Export to CSV
Replies: 5
Views: 5632

Re: Bulk Export to CSV

The Action Recorder generates the needed command when you do one manual export.
by tomfid
Thu Aug 07, 2025 1:49 pm
Forum: Vensim
Topic: Bulk Export to CSV
Replies: 5
Views: 5632

Re: Bulk Export to CSV

You can write a .cmd script to do it using the VDF2CSV command.
by tomfid
Mon Jul 21, 2025 4:27 pm
Forum: Vensim
Topic: Does Kalman combined with Command Script only handle 16 datasets? (BUG?)
Replies: 3
Views: 13432

Re: Does Kalman combined with Command Script only handle 16 datasets? (BUG?)

There's a 16-dataset limit for loading into the dataset control. When that's hit, there should be a warning, not a crash.

If you add a CLEARRUNS statement intermittently that should solve the problem.
by tomfid
Wed Jul 16, 2025 3:58 pm
Forum: Vensim
Topic: Why does it produce strange number?
Replies: 7
Views: 10409

Re: Why does it produce strange number?

The proximate cause of the FP error is that the real cost ratio becomes large, which causes sales to grow at an astronomical rate. The conceptualization of sales as a stock is conceptually questionable here. Consider, for example, what happens if you fix the real cost ratio at 1.1: sales would grow ...
by tomfid
Wed Jul 16, 2025 2:20 pm
Forum: Vensim
Topic: How do I narrow down the impact of filter?
Replies: 5
Views: 9188

Re: How do I narrow down the impact of filter?

I think 'S/1e-10/1e-10 is enough. The default assumption for off-diagonal covariance is 0. You only want to specify this term if there's plausible correlation between the noise affecting two states, which is not that common. I'm not fully up on the math, but one situation might be as follows: [stock...
by tomfid
Tue Jul 15, 2025 3:56 pm
Forum: Vensim
Topic: How do I narrow down the impact of filter?
Replies: 5
Views: 9188

Re: How do I narrow down the impact of filter?

You could set the driving noise for that stock to a very small value (not 0).
by tomfid
Sun Jul 13, 2025 9:20 pm
Forum: Vensim
Topic: export arrayed data with time all in one column
Replies: 2
Views: 12059

Re: export arrayed data with time all in one column

I think "data list" is what you want. You can automate with a command script if you're doing it repeatedly. https://www.vensim.com/documentation/vdf2dlist.html and if you want it to happen after every run, load the cmd script into the pre/post field https://www.vensim.com/documentation/pre...
by tomfid
Fri Jul 11, 2025 12:15 am
Forum: Vensim
Topic: Stock behaviour difficult to understand
Replies: 5
Views: 10547

Re: Stock behaviour difficult to understand

You might also check out this:
https://vensim.com/video/#DS1_Discrete_Events
by tomfid
Wed Jul 09, 2025 9:18 pm
Forum: Vensim
Topic: What is the exact payoff contribution of Overdispersed Poisson?
Replies: 1
Views: 21734

Re: What is the exact payoff contribution of Overdispersed Poisson?

I'm traveling so I can't share the code until the 20th unfortunately.
by tomfid
Mon Jul 07, 2025 8:06 pm
Forum: Vensim
Topic: Modelling small discrete flows
Replies: 9
Views: 29434

Re: Modelling small discrete flows

Another workaround would be to change your time unit to 1 hour - then the problem of large flows per fractional time unit goes away (assuming 1hr is enough precision).

You can then define a day as an alternate TIME BASE for display on graph axes, if needed.
by tomfid
Mon Jul 07, 2025 7:53 pm
Forum: Vensim
Topic: Modelling small discrete flows
Replies: 9
Views: 29434

Re: Modelling small discrete flows

Multiples of 16 are expected because your time step is 1/16 day. By convention, SD flows are continuous, so 16 people/day causes an accumulation of (16 people/day) * (1/16 day) = 1 person. You can see this in the Euler update for a stock: people in ER = INTEG( admitting-discharging, ...) is implemen...
by tomfid
Sat Jul 05, 2025 8:38 pm
Forum: Vensim
Topic: Modelling small discrete flows
Replies: 9
Views: 29434

Re: Modelling small discrete flows

This is an example of how I'd tend to do it:
patient xfer discrete 1.mdl
(8.21 KiB) Downloaded 65 times
by tomfid
Fri Jul 04, 2025 12:13 am
Forum: Vensim
Topic: 3rd Party Tool SDM-Doc
Replies: 2
Views: 1547

Re: 3rd Party Tool SDM-Doc

I've messaged them.
by tomfid
Thu Jul 03, 2025 10:45 pm
Forum: Vensim
Topic: Modelling small discrete flows
Replies: 9
Views: 29434

Re: Modelling small discrete flows

Can't run this without the data spreadsheet.

Could use units.
by tomfid
Thu Jul 03, 2025 10:43 pm
Forum: Vensim
Topic: Modelling small discrete flows
Replies: 9
Views: 29434

Re: Modelling small discrete flows

The downside is that Poisson/binomial processes make the model stochastic, so you need to do regular sensitivity runs to appreciate the diversity in behavior.
by tomfid
Thu Jul 03, 2025 10:40 pm
Forum: Vensim
Topic: Modelling small discrete flows
Replies: 9
Views: 29434

Re: Modelling small discrete flows

I think to do this right, you need to randomize the small flows rather than accumulating fractional people until you have a whole one.

Examples:
https://vensim.com/2017/01/discrete-stochastic/
https://metasd.com/2017/10/bernoulli-poisson-bar/
by tomfid
Wed Jul 02, 2025 2:56 pm
Forum: Vensim
Topic: Dump warning in log file
Replies: 2
Views: 9424

Re: Dump warning in log file

I think you'll find some error logs in
C:\Users\yourname\AppData\Roaming\Vensim (shorthand %AppData%\Vensim )
by tomfid
Mon Jun 30, 2025 5:06 pm
Forum: Vensim
Topic: Multiple Equations for a Subscripted Variable HELP
Replies: 1
Views: 4243

Re: Multiple Equations for a Subscripted Variable HELP

You've found a glitch that will be fixed in the upcoming release. You can't literally write, Price[sector,sector] = blabla but you can define subscript equivalents, fromSector <-> sector toSector <-> sector and then write, Price[ fromSector, toSector ] = blabla However, the equation editor glitch cu...
by tomfid
Mon Jun 30, 2025 3:49 am
Forum: Vensim
Topic: Lookup selection IF THEN ELSE()
Replies: 1
Views: 3718

Re: Lookup selection IF THEN ELSE()

IF THEN ELSE(fluid=1, fluid1 lookup(input), fluid2 lookup(input))
by tomfid
Fri Jun 27, 2025 8:46 pm
Forum: Vensim
Topic: X IF MISSING / IF THEN ELSE
Replies: 2
Views: 6577

Re: X IF MISSING / IF THEN ELSE

X IF MISSING is also more convenient if you have multiple data inputs in the equation.