Page 1 of 1

Kalman and command script

Posted: Wed Jun 18, 2025 1:46 pm
by aliakhavan89
What command should I use to make sure that Kalman.prm file is used when running a Kalman optimization?

These are the commands I have that I run using terminal without opening Vensim:

SPECIAL>NOINTERACTION
SPECIAL>LOADMODEL|model.mdl
SIMULATE>DATA|Data.vdfx
SIMULATE>RUNNAME|Kalman_Powell
SIMULATE>OPTPARM|Kalman_Powell_Settings.voc
SIMULATE>PAYOFF|kalman.vpd
MENU>RUN_OPTIMIZE|o
MENU>EXIT

a shortcut I've been using is to set the .prm file inside the kalman setting and save the model, but I'm not sure if that's the correct way.

Re: Kalman and command script

Posted: Thu Jun 19, 2025 6:56 am
by Administrator
The commands you need are
SIMULATE>KALMANPAYOFF
SIMULATE>KALMANPARAMETER

Re: Kalman and command script

Posted: Thu Jun 19, 2025 1:51 pm
by aliakhavan89
I meant setting these two options highlighted. What I'm currently doing is to save the model with these settings, but when I run the script I shared I iterate over different Data.vdfx. I was just wondering if I'm doing it correctly or if there's a better way to handle this.
Screenshot 2025-06-19 at 9.48.12 AM.png
Screenshot 2025-06-19 at 9.48.12 AM.png (583.65 KiB) Viewed 470 times