Kalman and command script

Use this forum to post Vensim related questions.
Post Reply
aliakhavan89
Senior Member
Posts: 210
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Kalman and command script

Post 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.
Administrator
Super Administrator
Posts: 4844
Joined: Wed Mar 05, 2003 3:10 am

Re: Kalman and command script

Post by Administrator »

The commands you need are
SIMULATE>KALMANPAYOFF
SIMULATE>KALMANPARAMETER
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
aliakhavan89
Senior Member
Posts: 210
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: Kalman and command script

Post 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 76 times
Post Reply