CIN Files and Sensitivity Analysis

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

CIN Files and Sensitivity Analysis

Post by aliakhavan89 »

If a model throws overflow errors during sensitivity analysis, does Vensim generate CIN files for the set of parameters responsible for the overflow?
Administrator
Super Administrator
Posts: 4826
Joined: Wed Mar 05, 2003 3:10 am

Re: CIN Files and Sensitivity Analysis

Post by Administrator »

No. I could add that in easily enough though (so will ticket it so it gets done).
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: 193
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: CIN Files and Sensitivity Analysis

Post by aliakhavan89 »

Thank you so much for your quick response! It's good to know, and it would be great to have it in the future versions. Thanks again.

Do you or anyone have any suggestions on how to find the problematic parameter settings?

Thanks a lot!
tomfid
Administrator
Posts: 3986
Joined: Wed May 24, 2006 4:54 am

Re: CIN Files and Sensitivity Analysis

Post by tomfid »

I think if you export the results at final time only, you'll find rows that have parameters but not variable values.
aliakhavan89
Senior Member
Posts: 193
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: CIN Files and Sensitivity Analysis

Post by aliakhavan89 »

Thanks a lot, Tom! This is a great suggestion. I guess I can write a script to look for those variables that don't have any data and extract the parameters in a CIN like style so that I can explore the error. Thanks again!
tomfid
Administrator
Posts: 3986
Joined: Wed May 24, 2006 4:54 am

Re: CIN Files and Sensitivity Analysis

Post by tomfid »

Hopefully my "think" is correct. In any case we can add it quickly. If you're stumped, and need an immediate result, we could take a look in the debugger.
aliakhavan89
Senior Member
Posts: 193
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: CIN Files and Sensitivity Analysis

Post by aliakhavan89 »

Thank you so much, Tom. I already had a code and just updated it further (with the help of one of these LLMs) to save the cin files. The core idea was the one you mentioned, which is keeping track of variables that don't have data at the final point of the time.

I'm sharing the code in case anyone wants to use it. The data should be printed with time going down (like the screenshot attached). Also, the model had 5 variables of interest in the save list file.
Screenshot 2025-03-07 at 1.04.31 PM.png
Screenshot 2025-03-07 at 1.04.31 PM.png (1.26 MiB) Viewed 4462 times
Attachments
Printing Interesting True Params v02.py.zip
(2.58 KiB) Downloaded 119 times
aliakhavan89
Senior Member
Posts: 193
Joined: Sun Oct 21, 2018 7:09 am
Vensim version: DSS

Re: CIN Files and Sensitivity Analysis

Post by aliakhavan89 »

It also exports all CIN files separately.
Screenshot 2025-03-07 at 1.07.31 PM.png
Screenshot 2025-03-07 at 1.07.31 PM.png (175.16 KiB) Viewed 4462 times
Post Reply